R01UH0823EJ0100 Rev.1.00
Page 430 of 1823
Jul 31, 2019
RX23W Group
21. I/O Ports
21.
I/O Ports
21.1
Overview
The I/O ports function as a general I/O port, an I/O pin of a peripheral module, an input pin for an interrupt, or a bus
control pin.
Some of the pins are also configurable as an I/O pin of a peripheral module or an input pin for an interrupt. All pins
function as input pins immediately after a reset, and pin functions are switched by register settings. The setting of each
pin is specified by the registers for the corresponding I/O port and on-chip peripheral modules.
Each port has the port direction register (PDR) that selects input or output direction, the port output data register (PODR)
that holds data for output, the port input data register (PIDR) that indicates the pin states, the open drain control register
y (ODRy, y = 0, 1) that selects the output type of each pin, the pull-up control register (PCR) that controls on/off of the
input pull-up MOS, the drive capacity control register (DSCR) that selects the drive capacity, and the port mode register
(PMR) that specifies the pin function of each port.
For details on the PMR register, see
section 22, Multi-Function Pin Controller (MPC)
.
The configuration of the I/O ports differs depending on the package.
lists the specifications of I/O ports, and
list the port functions.
Table 21.1
Specifications of I/O Ports
Port
Package
Package
85 Pins
Number
of Pin
56 Pins
Number
of Pin
PORT0
P03, P05, P07
3
P05
1
PORT1
P14 to P17
4
P14 to P17
4
PORT2
P21, P22, P25 to P27
5
P26, P27
2
PORT3
P30, P31, P35 to P37
5
P30, P31, P35 to P37
5
PORT4
P40 to P47
8
P41, P45 to P47
4
PORTB
PB0, PB1, PB3, PB5, PB7
5
PB0, PB1, PB7
3
PORTC
PC0, PC2 to PC7
7
PC0, PC2 to PC7
7
PORTD
PD3
1
PD3
1
PORTE
PE0 to PE4
5
PE2 to PE4
3
PORTJ
PJ3
1
Not provided
0
Total of Pins
44
Total of Pins
30