piclist 2000\06\07\195135a >
Thread: Writing 16F84 EEPROM
www.piclist.com/techref/microchip/memory.htm?key=eeprom
flavicon
face BY : Sebastian Garcia email (remove spam text)



Hi .....lu01tsspamSTOPspamGMX.NET ,

I suggest the following:

(assuming You're in bank0)

    movlw   0x00
    movwf   EEDATA
    movwf   EEADR

This is why your code don't work, when You did it was in bank1.

|        bsf     STATUS,RP0


    bcf INTCON,GIE    ;to disable interrupts meanwhile the write is in
process

|        bsf     EECON1,WREN
|        movlw   0x55
|        movwf   EECON2
|        movlw   0xAA
|        movwf   EECON2
|        bsf     EECON1,WR

    bsf INTCON,GIE;         ;to enable the interrupts.



Remember that the write time is aprox. 10 ms.

Best Regards,

S.-

<001e01bfd0da$d0652240$f7315c9d@jamesmax> 7bit

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) Writing 16F84 EEPROM

month overview.

new search...