Datasheet

PIC18F87J11 FAMILY
DS39778E-page 70 2007-2012 Microchip Technology Inc.
6.1.4 EXTENDED MICROCONTROLLER
MODE AND ADDRESS SHIFTING
By default, devices in Extended Microcontroller mode
directly present the Program Counter value on the
external address bus for those addresses in the range
of the external memory space. In practical terms, this
means addresses in the external memory device below
the top of on-chip memory are unavailable.
To avoid this, the Extended Microcontroller mode
implements an address shifting option to enable auto-
matic address translation. In this mode, addresses
presented on the external bus are shifted down by the
size of the on-chip program memory and are remapped
to start at 0000h. This allows the complete use of the
external memory device’s memory space as an
extension of the device’s on-chip program memory.
FIGURE 6-3: MEMORY MAPS FOR PIC18F87J11 FAMILY PROGRAM MEMORY MODES
TABLE 6-2: MEMORY ACCESS FOR PIC18F8X11/8616 PROGRAM MEMORY MODES
Operating Mode
Internal Program Memory External Program Memory
Execution
From
Table Read
From
Table Write
To
Execution
From
Table Read
From
Table Write
To
Microcontroller Yes Yes Yes No Access No Access No Access
Extended Microcontroller Yes Yes Yes Yes Yes Yes
External
Memory
On-Chip
Program
Memory
Microcontroller Mode
(1)
000000h
On-Chip
Program
Memory
1FFFFFh
Reads
as ‘0’s
External
On-Chip
Memory
Memory
(Top of Memory)
(Top of Memory) + 1
Legend: (Top of Memory) represents upper boundary of on-chip program memory space (see Figure 6-1 for device-specific
values). Shaded areas represent unimplemented, or inaccessible areas, depending on the mode.
Note 1: This mode is the only available mode on 64-pin devices and the default mode on 80-pin devices.
2: These modes are only available on 80-pin devices.
3: Addresses starting at the top of the program memory are translated to start at 0000h of the external device whenever
the EASHFT Configuration bit is set.
Extended Microcontroller Mode
(2)
000000h
1FFFFFh
(Top of Memory)
(Top of Memory) + 1
External
Memory
On-Chip
Program
Memory
000000h
1FFFFFh
(Top of Memory)
(Top of Memory) + 1
(3)
No
Access
Space
On-Chip
Memory
Space
External
On-Chip
Memory
Memory
Space
Mapped
to
External
Memory
Space
Space
Space
Mapped
to
External
Memory
Space
(Top of Memory)
Extended Microcontroller Mode
with Address Shifting
(2)
1FFFFFh –