General-Purpose I/O Ports (P0A, P0B, P1B, P1C) - NEC PD17062 Datasheet

Mos integrated circuit 4-bit single-chip microcontroller containing pll frequency synthesizer and image display controller
Table of Contents

Advertisement

15.3 GENERAL-PURPOSE I/O PORTS (P0A, P0B, P1B, P1C)

15.3.1 Configuration of I/O Ports
In the following, (1) to (3) explain the configuration of the I/O ports.
(1) P0A (P0A
, P0A
pins)
3
2
P0B (P0B
, P0B
, P0B
3
2
1
P1B (P1B
, P1B
, P1B
3
2
1
P1C (P1C
, P1C
, P1C
3
2
1
(2) P0A (P0A
, P0A
pins)
1
0
15.3.2 How to Use I/O Ports
An I/O port is set as an input or output port according to the contents of each I/O selection register of P0A,
P0B, P1B, and P1C of the control register.
I/O of the bit I/O port (P0A, P0B, P1B) can be set in 1-bit (1-pin) units. I/O of the group I/O port (P0C) can
be set in 3-bit (3-pin) units.
Output data is set and input data is read when a data write instruction or data read instruction is executed
in the corresponding port register.
Section 15.3.3 describes the I/O selection register of each port.
Sections 15.3.4 and 15.3.5 explain the use of an input port and output port.
194
, P0B
pins)
0
, P1B
pins)
0
pins)
I/O switching flag
V
DD
OR
AND
V
DD
RESET (except P1C)
Read instruction (P1C only)
I/O switching flag
AND
V
DD
RESET
Output
Write
latch
instruction
Port register
(1 bit)
Read
instruction
1
0
Output
Write
latch
instruction
Port register
(1 bit)
Read
instruction
PD17062

Advertisement

Table of Contents
loading

Table of Contents