Dave Turner wrote : > I just finished making a program to use EEPROM. After the read and > write is complete, I execute this: > > movwf TXREG ; send it > > > sleep ; die off > > > bsf porta,2 > > > Now, when I run the program, the LED on porta,2 comes on!!. Am I just > misinterpeting the sleep instruction (it sort of turns off the PIC, > right?). I double checked that the watchdog timer is off. Hi. The deta sheet says : "Note, executing a SLEEP instruction does not necessarily place the device into SLEEP mode..." But you *have* read the data sheet, right ? In particular the parts thet deals with "power managed modes"... Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist