Hello,
I have programmed a uC MC9S08QG8. I try to communicate with a EEPROM 24LC04B/P, but I can write and Read only when I'm on step by step (sure). When i let the program going to his own speed, something don't work. I have look after the speed of transmission, but nothing hapened. No errata, what else?
And It works in step by step!!!
Any idea?
I2C should only run at 400kHz. is your micro generating the I2C bus too fast? Also have you allowed 10ms for the EEPROM to program? Most people (including me) forget this step and when you go to read back the EE memory it comes out as FFs
I2C should only run at 400kHz. is your micro generating the I2C bus too fast?Also have you allowed 10ms for the EEPROM to program? Most people (including me) forget this step and when you go to read back the EE memory it comes out as FFs
The datasheet should tell you the minimum write time for the E2. Normally you give it your address then your data, then you have to wait at least 6ms for the internals of the E2 to actually program the memory location, so you need to implement a delay after each write cycle