×
Please be aware that we use cookies to improve your browsing experience according to our privacy policy.

[REQUEST] 18F4431 how to read internal EPROM?

1 needed
Slubica Dobra, Mazowieckie, Poland
BadgeAvailable to any member

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:

Michael Gluszczak
Michael Gluszczak

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 over a year ago. Tags: · microchip · pic · microprocessor · electronics · passion · basic skills . Viewed 176 times.

Designed by Wildhost 🌳 Powered by nature
Sharebay.org is a trade-free site