Datasheet
2010 Microchip Technology Inc. DS39635C-page 97
PIC18F6310/6410/8310/8410
When the device is executing out of internal memory
(EBDIS = 0) in Microprocessor with Boot Block mode or
Extended Microcontroller mode, the control signals will
NOT be active. They will go to a state where the
AD<15:0> and A<19:16> are tri-state; the CE
, OE, WRH,
WRL
, UB and LB signals are ‘1’; ALE and BA0 are ‘0’.
Note that only those pins associated with the current
address width are forced to tri-state; the other pins con-
tinue to function as I/O. In the case of a 16-bit address
width, for example, only AD<15:0> (PORTD and
PORTE) are affected; A<19:16> (PORTH<3:0>) con-
tinue to function as I/O. In all external memory modes,
the bus takes priority over any other peripherals that
may share pins with it. This includes the Parallel Slave
Port and serial communications modules which would
otherwise take priorityover the I/O port.
8.2 16-Bit Mode
In 16-bit mode, the external memory interface can be
connected to external memories in three different
configurations:
• 16-Bit Byte Write
• 16-Bit Word Write
• 16-Bit Byte Select
The configuration to be used is determined by the
WM<1:0> bits in the MEMCON register
(MEMCON<1:0>). These three different configurations
allow the designer maximum flexibility in using both
8-bit and 16-bit devices with 16-bit data.
For all 16-bit modes, the Address Latch Enable (ALE)
pin indicates that the address bits, A<15:0>, are avail-
able on the external memory interface bus. Following the
address latch, the Output Enable signal (OE
) will enable
both bytes of program memory at once to form a 16-bit
instruction word. The Chip Enable signal (CE) is active
at any time that the microcontroller accesses external
memory, whether reading or writing; it is inactive
(asserted high) whenever the device is in Sleep mode.
In Byte Select mode, JEDEC standard Flash memories
will require BA0 for the byte address line and one I/O line
to select between Byte and Word mode. The other 16-bit
modes do not need BA0. JEDEC standard static RAM
memories will use the UB
or LB signals for byte selection.
8.2.1 16-BIT BYTE WRITE MODE
Figure 8-1 shows an example of 16-Bit Byte Write
mode for PIC18F8310/8410 devices. This mode is
used for two separate 8-bit memories connected for
16-bit operation. This generally includes basic EPROM
and Flash devices. It allows table writes to byte-wide
external memories.
During a TBLWT instruction cycle, the TABLAT data is
presented on the upper and lower bytes of the
AD<15:0> bus. The appropriate WRH
or WRL control
line is strobed on the LSb of the TBLPTR.
FIGURE 8-1: 16-BIT BYTE WRITE MODE EXAMPLE
AD<7:0>
A<19:16>
ALE
D<15:8>
373
A<x:0>
D<7:0>
A<19:0>
A<x:0>
D<7:0>
373
OE
WRH
OE OEWR
(1)
WR
(1)
CE
CE
Note 1: This signal only applies to table writes. See Section 7.1 “Table Reads and Table Writes”.
WRL
D<7:0>
(LSB)
(MSB)
PIC18F8410
D<7:0>
AD<15:8>
Address Bus
Data Bus
Control Lines
CE