R01UH0823EJ0100 Rev.1.00 Page 441 of 1823
Jul 31, 2019
RX23W Group 21. I/O Ports
21.3 Register Descriptions
21.3.1 Port Direction Register (PDR)
m = 0 to 4, B to E, J
PDR is used to select the input or output direction for individual pins of the corresponding port m when the pins are
configured as the general I/O pins.
Each bit of PORTm.PDR corresponds to each pin of port m; I/O direction can be specified in 1-bit units.
Each bit of PDR corresponding to port m that does not exist is reserved. Make settings according to the description in
section 21.4, Initialization of the Port Direction Register (PDR).
The B2 and B3 bits of PORT1.PDR, B0 bit of PORT2.PDR, and B2, B3, and B4 bits of PORT3.PDR register are also
reserved. Values read from reserved bits are undefined. When writing, read the register and then rewrite the values that
were read to the reserved bit or bits.
The PORT3.PDR.B5 bit is reserved, because the P35 pin is input only. A reserved bit is read as 0. The write value should
be 0.
Address(es): PORT0.PDR 0008 C000h, PORT1.PDR 0008 C001h, PORT2.PDR 0008 C002h, PORT3.PDR 0008 C003h,
PORT4.PDR 0008 C004h, PORTB.PDR 0008 C00Bh, PORTC.PDR 0008 C00Ch, PORTD.PDR 0008 C00Dh,
PORTE.PDR 0008 C00Eh, PORTJ.PDR 0008 C012h
b7 b6 b5 b4 b3 b2 b1 b0
B7 B6 B5 B4 B3 B2 B1 B0
Value after reset:
00000000
Bit Symbol Bit Name Description R/W
b0 B0 Pm0 I/O Select 0: Input (Functions as an input pin.)
1: Output (Functions as an output pin.)
R/W
b1 B1 Pm1 I/O Select R/W
b2 B2 Pm2 I/O Select R/W
b3 B3 Pm3 I/O Select R/W
b4 B4 Pm4 I/O Select R/W
b5 B5 Pm5 I/O Select R/W
b6 B6 Pm6 I/O Select R/W
b7 B7 Pm7 I/O Select R/W