Port 5; Hardware Configuration; Setting The I/O Mode And Control Mode; Block Diagram Of Port 5 - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

µ PD78214 Sub-Series

5.6 PORT 5

Port 5 is an 8-bit I/O port with an output latch. The port 5 mode register (PM5) can put each bit of this port in either
the input or output mode, independently of the other bits. Each pin has a software-programmable built-in pull-
up resistor, and can drive an LED directly.
When an external memory or I/O device is expanded, P50 through P57 function as an address bus (AD8 through
AD15). For the µ PD78213, P50 through P57 function only as an address bus (AD8 through AD15).
When the RESET signal is input, port 5 becomes an input port (high output impedance), and the contents of the
output latch become undefined.

5.6.1 Hardware Configuration

Fig. 5-27 shows the hardware configuration of port 5.

5.6.2 Setting the I/O Mode and Control Mode

The port 5 mode register (PM5) can put each pin of port 5 in either the input or output mode independently of the
other pins, as shown in Fig. 5-28. The PM5 register is loaded with data using an 8-bit data transfer instruction; it
cannot be bit-manipulated or read-accessed.
The memory expansion mode register (MM, see Fig. 13-1) can specify the control mode of port 5, as listed in Table
5-6.
80
Fig. 5-27 Block Diagram of Port 5
WR
Pull-up resistor option register
PUO
PUO5
RD
PUO
WR
PM5n
Port 5 mode register
PM5n
WR
P5n
Output latch
P5n
RD
P5n
MM0-MM2 EA
V
DD
P5n
n = 0 to 7

Advertisement

Table of Contents
loading

Table of Contents