SPE-abe-85
Name:
Mr. Sicris Rey Paco Embay
Web Site:
Questions:
i have a eeprom read problem for 16f877. the code seems to be correct but it can not read the correct data, it only read 0x00.
i attached my read subroutine.
;****************************************************************;* EEPROM READ SUBROUTINE
;****************************************************************EEREAD
BCF STATUS, RP1
BCF STATUS, RP0 ;BANK0 SELECT
MOVF ADDEE, W
BSF STATUS, RP1 ;BANK2 SELECT
MOVWF EEADR
BSF STATUS, RP0 ;BANK3 SELECT
BCF EECON1, EEPGD
BSF EECON1, RD
BCF STATUS, RP0 ;BANK2 SELECT
MOVF EEDATA, W
BCF STATUS, RP1 ;BANK0 SELECT
BCF STATUS, RP0
MOVWF DATAEE
RETURN
help me shed light on this
sicris rey embay