English
Language : 

PIC18F2221_1 Datasheet, PDF (276/402 Pages) Microchip Technology – Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2221/2321/4221/4321 FAMILY
FIGURE 24-7:
EXTERNAL BLOCK TABLE READ (EBTRn) DISALLOWED
Register Values
Program Memory(1) Configuration Bit Settings
Boot Block
WRTB, EBTRB = 11
TBLPTR = 0008FFh
Block 0
WRT0, EBTR0 = 10
PC = 007FFEh
Block 1
TBLRD*
WRT1, EBTR1 = 11
Results: All table reads from external blocks to Blockn are disabled whenever EBTRn = 0.
TABLAT register returns a value of ‘0’.
Note 1: See Figure 24-5 for block boundaries.
FIGURE 24-8:
EXTERNAL BLOCK TABLE READ (EBTRn) ALLOWED
Register Values
Program Memory(1)
Configuration Bit Settings
Boot Block
WRTB, EBTRB = 11
TBLPTR = 0008FFh
PC = 003FFEh
Block 0
TBLRD*
Block 1
WRT0, EBTR0 = 10
WRT1, EBTR1 = 11
Results: Table reads permitted within Blockn, even when EBTRBn = 0.
TABLAT register returns the value of the data at the location TBLPTR.
Note 1: See Figure 24-5 for block boundaries.
DS39689F-page 276
© 2009 Microchip Technology Inc.