I need help with internal eeprom of 16f628
i've tried the original write procidure of Microchip's datasheet but it didnt write to eeprom
here is the code i've tried:
Code:
;movlw 0x01
;movwf EEADR
;movlw 0x06
;movwf EEDATA
;BSF STATUS, RP0 ; Bank1
;BCF INTCON, GIE ; Disable INTs.
;BSF EECON1, WREN ; Enable Write
;MOVLW 55h ;
;MOVWF EECON2 ; 55h must be written to EECON2
;MOVLW 0xAA ; to start write sequence
;MOVWF EECON2 ; Write AAh
;BSF EECON1,WR ; Set WR bit begin write
;BSF INTCON, GIE ; Enable INTs.
When i've tried to write AAh to EECON my assembler writes an error i've write 0xAA instead maybe it's the problem
Your help will be appriciated