Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
You don't say what kind of EEPROM you are trying to write, but I'm presuming it's an I2C one?. A 20MHz PIC can certainly write out faster than an I2C EEPROM can receive it, your code should be written accordingly, bearing in mind the speed limitations of the EEPROM - you can get those details from the datasheet.
You could also have a problem with your I2C routines, have a look at my I2C tutorial for software I2C code which I know works. If you're trying to use the I2C hardware in the 16F877, I have heard it's very difficult to get working, and that the application notes from MicroChip don't work.
Try to put longer delay. PIC at 20Mhz is much faster then EEPROM .
I now face a problem on I2C.
I have written code for Atmel 24C64 i2c EEPROM, it works just fine.
Now i use Microchip 24LC64, but that just wont work.
I've checked the timing spec, both are almost identical.
I'd appreciate it if anyone could tell me the reason.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.