> Are you always branching to wrend2 or wrend? Is that a typo or are you > trying to go somewhere else? > > wrend btfsc eecon1,wr ;wait for WR bit to clear > > bra wrend2 > > bcf eecon1,wren > > return yes it was a typo.. It's supposed to sit there until it is clear.. andrew -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads