What doesn't work about it? It looks like you're reading EEPROM values and putting them out to PORTB if they are not zero, if they are zero you have an infinite loop it would appear, unless you have an interrupt modifying EEPROM values elsewhere. Nick Veys / nick@veys.com / www.veys.com ] -----Original Message----- ] From: pic microcontroller discussion list ] [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Royce Simmons ] Sent: Wednesday, November 20, 2002 1:47 PM ] To: PICLIST@MITVMA.MIT.EDU ] Subject: [PIC]: Reading EEPROM ] ] ] Hello All, ] ] I am trying without any success to read data from EEPROM in a ] 16F628, attached is a fragment that I am using that does not ] work. Prehaps someone can point out the error of my ways. ] Or show me a better bit of code to use. ] ] Sure would appreciate it, Royce ] -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.