Product Info

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 466 of 1852
Nov 30, 2020
RX23W Group 22. Multi-Function Pin Controller (MPC)
22.2.2 P0n Pin Function Control Register (P0nPFS) (n = 3, 5, 7)
The Pmn pin function control register (PmnPFS) selects the pin function.
Bits PSEL[4:0] select the peripheral function assigned to each port pin.
The ISEL bit is set when a pin is used as an IRQ input pin. This setting can be used with the combination of the
peripheral function, though IRQn (external pin interrupt) of the same number should not be enabled by two or more pins.
The ASEL bit is set when a pin is used as an analog pin. When switching a pin to analog using the ASEL bit, set the
corresponding port mode register bit (PORTm.PMR) to “general I/O port” and the port direction register bit
(PORTm.PDR) to “input”. The pin state cannot be read at this point. The PmnPFS register is protected by the write-
protect register (PWPR). Modify the register after releasing the protection.
The ISEL bit to which IRQn is not specified is reserved. The ASEL bit to which analog input/output is not specified is
reserved.
—: Do not specify this value.
Address(es): P03PFS 0008 C143h, P05PFS 0008 C145h, P07PFS 0008 C147h
b7 b6 b5 b4 b3 b2 b1 b0
ASEL PSEL[4:0]
Value after reset:
00000000
Bit Symbol Bit Name Description R/W
b4 to b0 PSEL[4:0] Pin Function Select These bits select the peripheral function. For individual pin functions,
see the tables below.
R/W
b6, b5 Reserved These bits are read as 0. The write value should be 0. R/W
b7 ASEL Analog Function Select 0: Used other than as analog pin
1: Used as analog pin
P03: DA0 (85/83 pins)
P05: DA1 (85/83/56 pins)
R/W
Table 22.2 Register Settings for Input/Output Pin Function in 85-Pin and 83-Pin
PSEL[4:0]
Settings
Pin
P03 P05 P07
00000b
(initial value)
Hi-Z
01001b ADTRG0#