English
Language : 

PIC18F47J53 Datasheet, PDF (188/586 Pages) Microchip Technology – 28/44-Pin, High-Performance USB Microcontrollers with nanoWatt XLP Technology
PIC18F47J53 FAMILY
11.2 Slave Port Modes
The primary mode of operation for the module is
configured using the MODE<1:0> bits in the
PMMODEH register. The setting affects whether the
module acts as a slave or a master, and it determines
the usage of the control pins.
11.2.1 LEGACY MODE (PSP)
In Legacy mode (PMMODEH<1:0> = 00 and
PMPEN = 1), the module is configured as a Parallel
Slave Port (PSP) with the associated enabled module
pins dedicated to the module. In this mode, an external
device, such as another microcontroller or micro-
processor, can asynchronously read and write data
using the 8-bit data bus (PMD<7:0>), the read (PMRD),
write (PMWR) and chip select (PMCS1) inputs. It acts
as a slave on the bus and responds to the
read/write-control signals.
Figure 11-2 displays the connection of the PSP.
When chip select is active and a write strobe occurs
(PMCSx = 1 and PMWR = 1), the data from
PMD<7:0> is captured into the PMDIN1L register.
FIGURE 11-2:
LEGACY PARALLEL SLAVE PORT EXAMPLE
Master
PMD<7:0>
PIC18 Slave
PMD<7:0>
PMCS1
PMRD
PMWR
PMCS1
PMRD
PMWR
Address Bus
Data Bus
Control Lines
DS39964B-page 188
Preliminary
 2010 Microchip Technology Inc.