??? 05/29/07 15:34 Read: times |
#139979 - I thought that I should try your code Responding to: ???'s previous message |
Philippe,
I have compiled and run your code on my hardware, which is a 24C256 EEPROM (slave address 0xA0) with cpu AT89C5131 @ 24MHz. It works fine, although I would code it differently. If you can read your 24C04 ok then it is responding to your SLAVE address of 0xAE. I assume that you do not have WP on. (pin7 on a PDIP8 package) The other point is that a Page Write will wrap around. e.g. if you have a page size of 16 (AT24C04 datasheet) then writing "Philippe" to address 9 will put "Phili" at 9..15 and "ppe\0" at address 0..3. David. |
Topic | Author | Date |
I2C eeprom 24c02 byte write stuck in ack | 01/01/70 00:00 | |
timing | 01/01/70 00:00 | |
timing | 01/01/70 00:00 | |
what\'s the problem, exactly? | 01/01/70 00:00 | |
timing | 01/01/70 00:00 | |
how do you know that? | 01/01/70 00:00 | |
How do you know that? | 01/01/70 00:00 | |
do you have some other version of code? | 01/01/70 00:00 | |
do you have some other version of code? | 01/01/70 00:00 | |
A work around For That | 01/01/70 00:00 | |
work around For That | 01/01/70 00:00 | |
Well in my guess, you have same problem:-) as mine | 01/01/70 00:00 | |
Polling the 24C02 EEPROM for ready | 01/01/70 00:00 | |
OOPS wrong logic | 01/01/70 00:00 | |
I thought that I should try your code | 01/01/70 00:00 | |
Polling the 24C02 EEPROM for ready | 01/01/70 00:00 | |
great, but do not forget to mention | 01/01/70 00:00 | |
The Clock | 01/01/70 00:00 | |
addition - show the full picture - 'edit' to above![]() | 01/01/70 00:00 | |
i2c function signatures | 01/01/70 00:00 | |
hello friend | 01/01/70 00:00 |