Good-o...
FYI, the only bit of the write sequence that is order critical is this bit: (From the pic16F876A datasheet)
MOVLW 55h
MOVWF EECON2 ; Write 55h
MOVLW AAh ;
MOVWF EECON2 ; Write AAh
BSF EECON1, WR ; Set WR bit to
The order, and method of setting the data and address registers before that point is totally up to you, assuming you get the values you want in there that is!
Cheers, Chris H. |