Hi Friends, I can write a data to EEPROM in PIC 16F877 but I can't read this data from EEPROM using similiar routine who can help me about this subject?
The Code As Follows.
REEPROM ;EEPROMDAN OKU
BSF STATUS,6
BCF STATUS,5 ;BANK2
MOVLW d'250'
MOVWF EEADR
BSF STATUS,5 ;BANK3
BCF EECON1,7
BSF EECON1,0 ;
BCF STATUS,5 ;BANK2
MOVF EEDATA,0
BCF STATUS,6
BCF STATUS,5 ;BANK0
BCF PCLATH,4
BCF PCLATH,3
RETURN
I have a similiar routine which provide writing to EEPROM
Urgent Answer Please :shock:
The Code As Follows.
REEPROM ;EEPROMDAN OKU
BSF STATUS,6
BCF STATUS,5 ;BANK2
MOVLW d'250'
MOVWF EEADR
BSF STATUS,5 ;BANK3
BCF EECON1,7
BSF EECON1,0 ;
BCF STATUS,5 ;BANK2
MOVF EEDATA,0
BCF STATUS,6
BCF STATUS,5 ;BANK0
BCF PCLATH,4
BCF PCLATH,3
RETURN
I have a similiar routine which provide writing to EEPROM
Urgent Answer Please :shock: