Searching \ for '[PIC]: Writing 16F84 EEPROM' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/memory.htm?key=eeprom
Search entire site for: 'Writing 16F84 EEPROM'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Writing 16F84 EEPROM'
2000\06\07@195135 by Sebastian Garcia

flavicon
face
Hi spam_OUTlu01tsTakeThisOuTspamGMX.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.-

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...