R01UH0823EJ0100 Rev.1.00
Page 444 of 1823
Jul 31, 2019
RX23W Group
21. I/O Ports
21.3.4
Port Mode Register (PMR)
m = 0 to 4, B to E, J
Each bit of PORTm.PMR corresponds to each pin of port m; pin function can be specified in 1-bit units.
Bits corresponding to port m on the 85 pin-product but which do not exist on a product with fewer than 85 pins are
reserved. Write 0 to these bits.
The bit corresponding to a pin that does not exist is reserved. A reserved bit is read as 0. The write value should be 0.
The B2 and B3 bits of PORT1.PMR, B0 bit of PORT2.PMR, and B2, B3, and B4 bits of PORT3.PMR register are
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.
Address(es): PORT0.PMR 0008 C060h, PORT1.PMR 0008 C061h, PORT2.PMR 0008 C062h, PORT3.PMR 0008 C063h,
PORT4.PMR 0008 C064h, PORTB.PMR 0008 C06Bh, PORTC.PMR 0008 C06Ch, PORTD.PMR 0008 C06Dh,
PORTE.PMR 0008 C06Eh, PORTJ.PMR 0008 C072h
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 Pin Mode Control
0: Use pin as general I/O port.
1: Use pin as I/O port for peripheral
functions.
R/W
b1
Pm1 Pin Mode Control
R/W
b2
Pm2 Pin Mode Control
R/W
b3
Pm3 Pin Mode Control
R/W
b4
Pm4 Pin Mode Control
R/W
b5
Pm5 Pin Mode Control
R/W
b6
Pm6 Pin Mode Control
R/W
b7
Pm7 Pin Mode Control
R/W