RZ/G1E
5. Pin Function Controller (PFC)
R01UH0544EJ0100 Rev.1.00
5-68
Sep 30,2016
(3)
Procedure 1 for changing pin function from one peripheral function to another peripheral function
Set the LSI multiplexed pin setting mask register
Set the LSI multiplexed pin setting mask register
Set the GPIO/peripheral function select register
(GP) to GPIO
Set the peripheral function select register (IP)
Clock (CP
φ
)
Pin
GP
0
GPIO
Peripheral function
after change
Peripheral function
before change
Set value
after change
Set value
before change
1
IP
Set the LSI multiplexed pin setting mask register
Set the GPIO/peripheral function select register
(GP) to peripheral function
[Legend]
GP: GPIO/peripheral function select register bit
IP: Peripheral function select register bit
1
Figure 5.3 Procedure for Changing Pin Function from One Peripheral Function to Another Peripheral
Function (with GPIO Setting)
5.4.2
Setting Pull-Up/Down Resistors
The LSI pin pull-up control registers 0 to 6 (PUPR0 to PUPR6) are used to switch the pull-up/down resistors on and off.