English
Language : 

PIC18LF4610T-I Datasheet, PDF (77/376 Pages) Microchip Technology – 28/40/44-Pin Flash Microcontrollers
PIC18F2X1X/4X1X
EXAMPLE 6-1: READING A FLASH PROGRAM MEMORY WORD
READ_WORD
MOVLW
MOVWF
MOVLW
MOVWF
MOVLW
MOVWF
TBLRD*+
MOVF
MOVWF
TBLRD*+
MOVF
MOVF
CODE_ADDR_UPPER
TBLPTRU
CODE_ADDR_HIGH
TBLPTRH
CODE_ADDR_LOW
TBLPTRL
TABLAT, W
WORD_EVEN
TABLAT, W
WORD_ODD
; Load TBLPTR with the base
; address of the word
; read into TABLAT and increment
; get data
; read into TABLAT and increment
; get data
TABLE 6-2: REGISTERS ASSOCIATED WITH READING PROGRAM FLASH MEMORY
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
51
(TBLPTR<20:16>)
TBPLTRH Program Memory Table Pointer High Byte (TBLPTR<15:8>)
51
TBLPTRL Program Memory Table Pointer Low Byte (TBLPTR<7:0>)
51
TABLAT
Program Memory Table Latch
51
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used during Flash access.
© 2009 Microchip Technology Inc.
DS39636D-page 79