RL78/G1H CHAPTER 18 RF TRANSCEIVER
R01UH0575EJ0120 Rev. 1.20 Page 642 of 920
Dec 22, 2016
(81) Port direction register (GPIODIR)
This register is used to set the I/O of the respective ports of GPIO.
GPIODIR register is set via serial interface in 8-bit units.
Reset signal generation clears this register to 00H.
Figure 18 - 94 Port Direction Register (GPIODIR) Format
Caution Be sure to clear bits 5 to 7 to “0”.
Address: 0082H After reset: 00H R/W
Symbol76543210
GPIODIR 0 0 0 GPIO4DIR GPIO3DIR GPIO2DIR GPIO1DIR GPIO0DIR
GPIO4DIR GPIO4 direction bit
0 Input port
1 Output port
GPIO3DIR GPIO3 direction bit
0 Input port
1 Output port
GPIO2DIR GPIO2 direction bit
0 Input port
1 Output port
GPIO1DIR GPIO1 direction bit
0 Input port
1 Output port
GPIO0DIR GPIO0 direction bit
0 Input port
1 Output port