R01UH0823EJ0100 Rev.1.00
Page 470 of 1823
Jul 31, 2019
RX23W Group
22. Multi-Function Pin Controller (MPC)
x: Setting not required.
0/1: Setting the PmnPFS.ISEL bit to 0 makes the pin incapable of functioning as an IRQ pin.
Setting the PmnPFS.ISEL bit to 1 makes the pin capable of functioning as an IRQ pin (if the IRQ is selected from the multiplexed
functions).
Note 1. The pin does not function as the IRQn input pin even if the PmnPFS.ISEL bit is set to 1.
Note:
The pin state is readable when the PmnPFS.ASEL bit is 0.
• If the value of the PmnPFS.PSEL[4:0] bits is to be changed, do so while the PMR.Bn bit is 0.
• If an RIIC function is assigned to a port pin, clear the PCR.Bn (to 0); pulling up is automatically turned off for
outputs from peripheral modules other than the RIIC.
• If an input pin for time-capture events is not in use, clear the time capture event input pin enable bit (TCEN) in
time capture control register y (RTCCRy) to 0 (disabled).
22.3.3
Note on Using Analog Functions
When an analog function is in use, configure the pin as a general-purpose input by setting the given bits of the port mode
register (PMR) and of the port direction register (PDR) to 0, and then set the ASEL bit in the Pmn pin function control
register (PmnPFS) to 1.
22.3.4
Notes on Using the CTSU Function of the Capacitive Touch Sensing Unit
When using the CTSU function (TSCAP, TSm: m = 2 to 4, 7, 8, 12, 13, 22, 23, 27, 30, 35) of the capacitive touch sensing
unit, set the given bits of the port mode register (PMR), the port direction register (PDR), and the pull-up control register
to 0. Then, use the PmnPFS.PSEL[4:0] bits to select the CTSU function and set the PMR register to 1. When a pin
function of the capacitive touch sensing unit, do not use the pin as the IRQ input pin regardless of the ISEL setting of the
corresponding bit.
Table 22.14
Register Settings
Item
PMR.Bn
PDR.Bn
PmnPFS
Point to Note
ASEL
ISEL
PSEL[4:0]
After a reset
0
0
0
0
00000b
Pins function as general input port pins after release from the reset state.
General input
ports
0
0
0
0/1
x
Set the ISEL bit to 1 if these are multiplexed with interrupt inputs.
General output
ports
0
1
0
0
x
Peripheral
functions
1
x
0
0/1
Peripheral
functions (see
Table 22.2 to
Set the ISEL bit to 1 if these are multiplexed with interrupt inputs.
Interrupt inputs
0
0
0
1
x
NMI
x
x
x
x
Register settings are not required.
Analog inputs
and outputs
0
0
1
x
Set these as general input port pins so that the output buffers are turned off.
RTC
time-capture
event-input pins
0
0
x
0/1
x
Set these as general input port pins so that the output buffers are turned off.
EXTAL/XTAL
0
0
x
x
Set these as general input port pins so that the output buffers are turned off.
XCIN/XCOUT
0
0
x
x
Set these as general input port pins so that the output buffers are turned off.