After you get it writing & Reading, you need to be aware that there are cases where the EEROM data seems to drop out on the PIC nanoWatt devices after a few days. I've had to write several copies of the data (plus checksum) and then check the checksum before using the data, finding a GOOD copy of the data, then overwite the bad copies. Not sure what that is all about; only occurs on NanoWatt series parts... --Bob Jinx wrote: >> movfw al ;my ptr counter >> movwf EEADR >> call rrs232 >> bank1 >> movwf EEDATA >> bank0 >> call wr_ee > > > EEADR (9B) and EEDATA (9A) are both in Bank1. If you're > in Bank0 at "movwf EEADR" then you'll be writing to 1B > > You try this for writing > > write bsf eecon1,wren > movlw 0x55 > movwf eecon2 > movlw 0xaa > movwf eecon2 > bsf eecon1,wr > nop > > wrend btfsc eecon1,wr > goto wrend > bank0 > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- Replier: Most attachments rejected -------------- Bob Axtell PIC Hardware & Firmware Dev http://beam.to/baxtell 1-520-219-2363 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu