On Tuesday 24 February 2004 12:24 am, Ken Pergola scribbled: > I don't see anywhere in your code where you are clearing bit 7 of EEADR= -- > it should be set to zero for the device you are using. It defaults to this when I set the address into the W before calling the=20 EEPROM-write routine. > Are you ANDing the W register (EEPROM address) with 0x7F before calling > your write routine? Not specifically, but I just tried that, and no change. > Also, it might be better to re-enable interrupts only if they were > previously enabled when you entered the EEPROM write routine instead of > unconditionally enabling them. It might not matter in this specific > application of yours, but this might be something that will bite you in= the > future. Good idea. Unfortunately for this app, they must always be enabled, > Perhaps you could toggle an I/O pin in your write routine and 'scope to= see > if you are actually getting stuck there. Holding off on this for now, since all pins are in use, and the circuit i= s on=20 a PCB already. Luckily I socketed the chip. Much thanks, -Neil. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu