cancel
Showing results for 
Search instead for 
Did you mean: 

External MCU Communication by I2C

liliyansh6060
Associate II
Posted on March 07, 2014 at 13:34

The original post was too long to process during our migration. Please click on the attachment to read the original post.
7 REPLIES 7
Anais GALLIGANI
Senior II
Posted on March 10, 2014 at 18:04

Hi,

There is some information on table 2.device select code from the DS (page 18)

http://www.st.com/web/en/resource/technical/document/datasheet/DM00038059.pdf

Try this may be

#define EEPROM_ID    0xA0        //  EEPROM Device Identifier

 

#define EEPROM_ADDR  0x03        //  EEPROM Device Address And also, make sure to externally supply 

M24LR-DISCOVERY board.

thanks a lot,

Have a nice day,

best Regards,

ST NFC/RFID Dynamic tag e2e support

liliyansh6060
Associate II
Posted on March 10, 2014 at 22:30

HELLO

really thanks it is working now

horaaaaa

thanks

leili :))))))

liliyansh6060
Associate II
Anais GALLIGANI
Senior II
Posted on March 18, 2014 at 16:21

Nice video, thanks;:

thao
Associate II
Posted on March 19, 2014 at 09:58

Hello Leili

I also do a project by using atmega8 and NFC chip. But I am new for the I2C. So I want to ask if the code, which you posted, is all of your software to connect the atmega with NFC chip. Or do you have to write anything more? Can you you explain me what your software makes. Thank you a lot for your supporting!

Best regards

liliyansh6060
Associate II
Posted on April 01, 2014 at 01:04

hello,

sorry for late answer. i was in a trip. 🙂

for atmega 48 it is all the code to connect mcu and nfc with i2c but use this eeprom address :

#define EEPROM_ID    0xA0        //  EEPROM Device Identifier

 

#define EEPROM_ADDR  0x03        //  EEPROM Device Address

for atmega 8 it should have little differences which i am not aware about.

my application and project which is shown in the video is how to sense a sensor ( i used accelerometer sensor ) by mcu and monitoring that base on saved time by using nfc technology on the mobile phone which here is a pc..!

using i2c is simple but tricky .

best regards

liliyansh6060
Associate II
Posted on May 03, 2014 at 00:15

another video for light controlling

https://www.youtube.com/watch?v=XWIHsGzYLGY&google_comment_id=z124vvdipuu1hd2ey23kcdyiawelwp4m3