How to write datas in lpc1769 i2c eeprom which is above page boundary

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

How to write datas in lpc1769 i2c eeprom which is above page boundary

2,225 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by aarthi on Thu Aug 04 06:13:24 MST 2011
Hi,
   i am not able to write databytes in lpc1769 i2c-eeprom(at24c08) which is above the pageboundary of the at24c08.i also used the stop condition after every page write but still i am confusing why i am not able to write:confused:
0 Kudos
4 Replies

1,739 Views
kalpeshbalar
Contributor II

Can I get a working sample code of I2C eeprom with lpc176X?

0 Kudos

1,739 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by aarthi on Fri Aug 05 05:39:18 MST 2011
Thank you so much for the suggestions and i got clear with the I2C_EEPROM and also now i am able to write and read in the I2C_EEPROM(at2408).:)
0 Kudos

1,739 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Thu Aug 04 11:02:36 MST 2011
What do you call " page boundary" ?

The microchip datasheet talks about 'blocks'.
There are 4 blocks of 256 words (bytes). The 'word address' is the first byte you send after the 'control byte' (mostly this is just called the 'slave address'). The contron byte contains the slave address, the R/W bit and the 'block select bits'.
To write to a different block you need to adjust your control byte. to contain the block select bits.
If you are used to use 0xA0 to address your 24lc08, then you need to use 0xA2, 0xA4 or 0xA6 to address any of the other 3 blocks.

If this still not works, please provide us with more detailed information.

Regards,

Rob
0 Kudos

1,739 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Thu Aug 04 07:22:28 MST 2011
Hi,
Perhaps we this link can help you out:
http://mbed.org/users/Yann/notebook/simplified-access-to-microchip-24lcxx-serial-eepro/

Just keep the addresses etc. in mind

Kind regards,
0 Kudos