Down to the LAST major problem I can't seem to solve on my own... When I do the EEPROM wrote routine, the thing hangs during the 'waiting f= or the write to finish' = I replaced the wait loop with just a simple delay call, and then it wont = hang but also won't write (I am assuming since the read always returns zeros WRITEEE: bsf STATUS,RP0 ; set up EEADR and EEDATA first clrf EECON1 = bsf EECON1,WREN ; enable write movlw H'55' ; magic sequence movwf EECON2 = movlw H'AA' = movwf EECON2 = bsf EECON1,WR = EELOOP: btfsc EECON1,WR ; wait for WR to go low call LDC ; just a long delay thing ; goto EELOOP ; not yet bsf EECON1,WREN = bcf EECON1,EEIF ; clear the interrupt flag bcf STATUS,RP0 ; return to page 0 return = ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu