eeprom (AT24C02D) via i2c2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eeprom (AT24C02D) via i2c2

440 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by madhu kumar on Thu Dec 03 04:41:09 MST 2015

hi ,


AT24C02D device detected, 0x50 indicated eeprom slave address and 0x49 indicated lm75a, digital temperature senor read ok but EEPROM device write and read not ok is not matching as shows below following test result

what i did mistake please tell me

Select I2C device [0 or 1 or 2] : 1

**************** I2C Demo Menu ****************
0: Exit Demo
1: Select I2C peripheral [I2C2]
2: Toggle mode POLLING/INTERRUPT [INTERRUPT]
3: Probe for Slave devices
4: Read slave data
5: Write slave data
6: Write/Read slave data


Select an option [0 - 6] :3
Probing available I2C devices...

     00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
====================================================
00                           -- -- -- -- -- -- -- --
01   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
02   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
03   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
04   -- -- -- -- -- -- -- -- -- 49 -- -- -- -- -- --
05   50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
06   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
07   -- -- -- -- -- -- -- -- --               


Select an option [0 - 6] :5
Enter 7-Bit Slave address : 0x50
Enter number of bytes to write : 10
1:Enter Data: 0x10
2:Enter Data: 0x20
3:Enter Data: 0x30
4:Enter Data: 0x40
5:Enter Data: 0x50
6:Enter Data: 0x60
7:Enter Data: 0x70
8:Enter Data: 0x80
9:Enter Data: 0x99
10:Enter Data: 0xaa
Written 10 bytes of data to slave 0x50.

**************** I2C Demo Menu ****************
0: Exit Demo
1: Select I2C peripheral [I2C2]
2: Toggle mode POLLING/INTERRUPT [INTERRUPT]
3: Probe for Slave devices
4: Read slave data
5: Write slave data
6: Write/Read slave data

Select an option [0 - 6] :4
Enter 7-Bit Slave address : 0x50
Enter number of bytes to read : 10
Read 10 bytes of data from slave 0x50.

*xfer.rxBuff : 30
*xfer.rxBuff : 40
*xfer.rxBuff : 50
*xfer.rxBuff : 60
*xfer.rxBuff : 70
*xfer.rxBuff : 80
*xfer.rxBuff : 90
*xfer.rxBuff : 44
*xfer.rxBuff : ff
*xfer.rxBuff : 1b

00:  30 40 50 60 70 80 90 44 FF 1B

**************** I2C Demo Menu ****************
0: Exit Demo
1: Select I2C peripheral [I2C2]
2: Toggle mode POLLING/INTERRUPT [INTERRUPT]
3: Probe for Slave devices
4: Read slave data
5: Write slave data
6: Write/Read slave data


Select an option [0 - 6] :

Original Attachment has been moved to: EEPROM.txt.zip

Labels (1)
0 Kudos
0 Replies