piclist 1996\04\29\134858a >
Thread: EEprom write and read on a 16C84
face BY : John Payson email (remove spam text)

>          movlw 0x89      ;yes, EEcon2 address.
>          movwf 04        ;into FSR.
>          movlw 0x55
>          movwf 00
>          movlw 0xAA
>          movwf 00
>          decf  04,1
>          bsf   00,1      ;wr=1.
> Eccomp:  btfsc 00,1      ;writing complete?
>          goto  Eccomp    ;no.

You have too much time between the writes to EEcon2 and EEcon1.  You need
to set bit RP0 and use direct addressing to achieve the correct timing [a
pain, to be sure, but necessary].

In reply to: <31851F2A.1B9F@rouyn-ogc.hydro.qc.ca> from "Rene Barbeau" at Apr 29, 96 12:57:30 pm
See also: www.piclist.com/techref/microchip/memory.htm?key=eeprom
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) EEprom write and read on a 16C84

month overview.

new search...