R01UH0822EJ0100 Rev.1.00
Page 297 of 1041
Jul 31, 2019
RX13T Group
17. I/O Ports
17.3
Register Descriptions
17.3.1
Port Direction Register (PDR)
m = 1 to 4, 7, 9, A, B, D
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.
Write 1 (output) to each bit of PDR corresponding to port m that does not exist.
Each bit of PDR corresponding to port m that does not exist is reserved. Make settings according to the description in
section 17.4, Initialization of the Port Direction Register (PDR)
Address(es): PORT1.PDR 0008 C001h, PORT2.PDR 0008 C002h, PORT3.PDR 0008 C003h, PORT4.PDR 0008 C004h,
PORT7.PDR 0008 C007h, PORT9.PDR 0008 C009h, PORTA.PDR 0008 C00Ah, PORTB.PDR 0008 C00Bh,
PORTD.PDR 0008 C00Dh
b7
b6
b5
b4
b3
b2
b1
b0
B7
B6
B5
B4
B3
B2
B1
B0
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
Pm0 I/O Select
0: Input (Functions as an input pin.)
1: Output (Functions as an output pin.)
R/W
b1
Pm1 I/O Select
R/W
b2
Pm2 I/O Select
R/W
b3
Pm3 I/O Select
R/W
b4
Pm4 I/O Select
R/W
b5
Pm5 I/O Select
R/W
b6
Pm6 I/O Select
R/W
b7
Pm7 I/O Select
R/W