Datasheet
© 2007 Microchip Technology Inc. DS39629C-page 89
PIC18F6390/6490/8390/8490
EXAMPLE 6-1: READING A FLASH PROGRAM MEMORY WORD
TABLE 6-2: REGISTERS ASSOCIATED WITH READING PROGRAM FLASH MEMORY
MOVLW CODE_ADDR_UPPER ; Load TBLPTR with the base
MOVWF TBLPTRU ; address of the word
MOVLW CODE_ADDR_HIGH
MOVWF TBLPTRH
MOVLW CODE_ADDR_LOW
MOVWF TBLPTRL
READ_WORD
TBLRD*+ ; read into TABLAT and increment
MOVF TABLAT, W ; get data
MOVWF WORD_EVEN
TBLRD*+ ; read into TABLAT and increment
MOVF TABLAT, W ; get data
MOVWF WORD_ODD
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reset
Values on
Page
TBLPTRU — — bit 21 Program Memory Table Pointer Upper Byte
(TBLPTR<20:16>)
59
TBLPTRH Program Memory Table Pointer High Byte (TBLPTR<15:8>) 59
TBLPTRL Program Memory Table Pointer Low Byte (TBLPTR<7:0>) 59
TABLAT Program Memory Table Latch 59
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used during Flash access.