R-IN32M3-EC User's Manual
8.
Port Function
8.1
Features
⚫
Number of I/O ports: 96
⚫
Can function alternately as the I/O pins of other peripheral functions.
⚫
Input or output can be specified by bit unit.
Cautions 1. Switching from a signal for a peripheral module that is multiplexed with a port pin to port
mode by changing the PMCn register setting might lead to a spike, depending on the
state of the pin at the time.
The following general countermeasure for spikes should therefore be implemented in
software.
⚫
Switch the pin function while the peripheral function is stopped.
⚫
If the multiplexed pin function in use is an interrupt signal, clear the interrupt
request flag and then remove masking of the interrupt.
⚫
Only switch the mode after the output value is fixed.
2. Do not externally apply an intermediate voltage to input buffers because these buffers do
not implement through-current countermeasures.
R18UZ0003EJ0501
Jan. 12, 2021
8. Port Function
Page 182 of 224