Hello guys, I'm desperately trying to write and read on the EEPROM of the PIC16F628 without any success ;-(( I use the following code : W_EEPROM MOVF ADRESSE,0 MOVWF EEADR MOVF VALEEPROM,0 MOVWF EEDATA BSF STATUS, RP0 BSF EECON1, WREN MOVLW H'55' MOVWF EECON2 MOVLW H'AA' MOVWF EECON2 BSF EECON1,WR BCF STATUS, RP0 RETURN
R_EEPROM MOVF ADRESSE,0 MOVWF EEADR BSF STATUS,RP0 BSF EECON1,RD BCF STATUS,RP0 MOVF EEDATA,0 MOVWF VALEEPROM RETURN
ADRESSE is the the data address where the VALEEPROM value should be stored . I tried the the adresses H'05' and H'06'
I tried it on a PIC16F84 and it worksIs the code wrong? How can I verify that the writing is correct? Can someone send a example wich I can use Thanks in advance for your help, Georges.
snipped-for-privacy@hotmail.com