English
Language : 

PD17012_15 Datasheet, PDF (76/320 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCONTROLLERS WITH DIGITAL TUNING SYSTEM HARDWARE
µPD17012, 17P012
10. GENERAL-PURPOSE PORTS
The general-purpose ports output a high-level, low-level, or floating signal to an external circuit, and read
a high-level or low-level signal from the external circuit.
10.1 Configuration and Classification of General-Purpose Ports
Figure 10-1 shows the block diagram of the general-purpose ports.
Table 10-1 classifies the general-purpose ports.
As shown in Figure 10-1, the general-purpose ports include ports 0A (P0A) to 1D (P1D) to which are set by
addresses 70H to 73H (port registers) of each bank of the data memory, ports 2E (P2E) to 2H (P2H) to which
data are set by addresses 5CH to 5FH of bank 2 of the data memory, and port YA (PYA) to which data is set
via a data buffer (DBF).
Each port consists of general-purpose port pins (e.g., port 0A consists of the P0A2 to P0A0 pins).
As shown in Table 10-1, the general-purpose ports are classified into input/output ports (I/O ports), input-
only ports (input ports), and output-only ports (output ports).
The I/O ports are further subdivided into bit I/O ports that can be set in the input or output mode in 1-bit units
(1-pin units) and group I/O ports that can be set in the input or output mode in 4-bit units (4-pin units).
Figure 10-1. Block Diagram of General-Purpose Port
Column address
0123456789ABCDEF
0
DBF
1
2
3
4 Port register
Data memory
5
6
BANK0
7
BANK1
BANK2
Peripheral address 42H
5C 5D 5E 5F
Data
setting
Bit Bit
I/O I/O Out In
Bit
Group
I/O In Out I/O
System register
Out Out Out Out Out
P PP P
0 00 0
ABCD
PPPP
1111
ABCD
−−− −
Control register
PPPP P
2222 Y
EFGH A
I/O setting
PPP
000
−AAA
210
pin pin pin
Pin configuration
example of P0A
74
Data Sheet U10101EJ4V0DS