R01UH0822EJ0100 Rev.1.00
Page 321 of 1041
Jul 31, 2019
RX13T Group
18. 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:
- 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.
Note 1. The pin does not function as the IRQn input pin even if the PmnPFS.ISEL bit is set to 1.
Note 2. Setting PORT4 is not required.
18.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.
18.3.4
Note on PB1 Pin Input Level
PB1 input level is specified to TTL when SCL is selected in the PB1PFS.PSEL bit and SMBus is selected in the
ICMR3.SMBS bit in RIIC. At this time, input levels of the PB1 port read and the IRQ2 also become TTL.
Table 18.10
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 18.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
x
Register settings are not required.
Analog inputs
0
1
x
Set these as general input port pins so that the output buffers are turned off.