> bsf EECON1,WR >EELOOP: > btfsc EECON1,WR ; wait for WR to go low You should be checking the flag, not the write enable bit. Try btfss EECON1, EEIF > 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 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu