belinda_sg
New Member
Code:
movlw 008008h ;
movwf EEADR ; Data Memory Address to write
movlw 46h ;
movwf EEDATA ; Data Memory Value to write
bcf EECON1, EEPGD ; Point to DATA memory
bsf EECON1, WREN ; Enable writes
bcf INTCON, GIE ; Disable Interrupts
movlw 55h ;
movwf EECON2 ; Write 55h
movlw 12h
movwf EECON2 ; Write AAh
bsf EECON1, WR ; Set WR bit to begin write
bsf INTCON, GIE ; Enable Interrupts
sleep ; Wait for interrupt to signal write complete
bcf EECON1, WREN ; Disable writes
after i compile and program this into my device, when i check the EEPROM value, why still not change?
and for "Data Memory Address to write" is it correct to move the address specified in my program?
thx for your help