Datasheet
PIC18F6520/8520/6620/8620/6720/8720
DS39609C-page 256 2003-2013 Microchip Technology Inc.
FIGURE 23-6: EXTERNAL BLOCK TABLE READ (EBTRn) DISALLOWED
FIGURE 23-7: EXTERNAL BLOCK TABLE READ (EBTRn) ALLOWED
WRTB, EBTRB = 11
WRT0, EBTR0 = 10
WRT1, EBTR1 = 11
WRT2, EBTR2 = 11
WRT3, EBTR3 = 11
TBLRD *
TBLPTR = 000FFFh
PC = 004FFEh
Results: All table reads from external blocks to Block n are disabled whenever EBTRn = 0.
TABLAT register returns a value of ‘0’.
Register Values Program Memory Configuration Bit Settings
0001FFh
000200h
003FFFh
004000h
007FFFh
008000h
00BFFFh
00C000h
00FFFFh
000000h
WRTB, EBTRB = 11
WRT0, EBTR0 = 10
WRT1, EBTR1 = 11
WRT2, EBTR2 = 11
WRT3, EBTR3 = 11
TBLRD *
TBLPTR = 000FFFh
PC = 003FFEh
Register Values Program Memory Configuration Bit Settings
Results: Table reads permitted within Block n, even when EBTRBn = 0.
TABLAT register returns the value of the data at the location TBLPTR.
0001FFh
000200h
003FFFh
004000h
007FFFh
008000h
00BFFFh
00C000h
00FFFFh
000000h