At 01:51 PM 6/18/02 +0300, Andreas Nyholm wrote: >Hello, >I'm having problem writing or reading to the eeprom on my PIC16F874. I >have a loop that's writing data to the eeprom and another loop later that >is reading from EEPROM and comparing with other data. >The strange thing here is that everything is working fine with the >debugger, EEPROM is updated and readed properly. >But on the PIC it seams that just the first byte is readed from EEPROM >(I've been using a LED to see how far I get in the program), atleast the >first one is compared properly, but not the second. > >Any ideas why it works with the debugger and not with the PIC? >Common things to do wrong? I've been using the EEPROM read/write code from >Microchip. Do you allow enough time for each write to finish? dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 18 years of Engineering Innovation (1984 - 2002) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.