[REQUEST] 18F4431 how to read internal EPROM?

1 needed
GLOBAL
Slubica Dobra, Mazowieckie, Poland
StripesAvailable to one stripe members or higher

Where do I have error or what should I declare/configure to read internal 18F4431 EEPROM?

eeprom_loop
movf EE_count, W; move EEPROM address to W

;next lines copied from Microchip 18F44321 data sheet
MOVWF EEADR ; Data Memory Address to read
BCF EECON1, EEPGD ; Point to DATA memory
BSF EECON1, RD ; EEPROM Read
MOVF EEDATA, W ; W = EEDATA

;my code continued
movwf EE00; move EEPROM data to my EE00 variable
call display_EEPROM; my working LCD display routine
incf EE_count; next EEPROM address to read
call 1second_delay
goto eeprom_loop

18F4431 runs @ 40MHz with 10 MHz crystal and 4x pll

Michael [email protected] central Poland (1 needed)

Requested by:

Where do I have error or what should I declare/configure to read internal 18F4431 EEPROM?

eeprom_loop
movf EE_count, W; move EEPROM address to W

;next lines copied from Microchip 18F44321 data sheet
MOVWF EEADR ; Data Memory Address to read
BCF EECON1, EEPGD ; Point to DATA memory
BSF EECON1, RD ; EEPROM Read
MOVF EEDATA, W ; W = EEDATA

;my code continued
movwf EE00; move EEPROM data to my EE00 variable
call display_EEPROM; my working LCD display routine
incf EE_count; next EEPROM address to read
call 1second_delay
goto eeprom_loop

18F4431 runs @ 40MHz with 10 MHz crystal and 4x pll

Michael [email protected] central Poland (1 needed)

Posted in Programming more than two years ago. Tags: · microchip · pic · microprocessor · electronics · passion · basic skills

Sharebay.org is a trade-free site