RL78/G13 CHAPTER 4 PORT FUNCTIONS
R01UH0146EJ0100 Rev.1.00 272
Sep 22, 2011
(b) Use as 1.8 V, 2.5 V, 3 V output port
<1> Pull up externally the pin to be used (on-chip pull-up resistor cannot be used).
In case of UART0: P12
In case of UART1: P02 (P82)
In case of UART2: P13
In case of UART3: P144
In case of CSI00: P10, P12
In case of CSI01: P43, P45
In case of CSI10: P02, P04 (P80, P82)
In case of CSI20: P13, P15
In case of CSI30: P142, P144
In case of CSI31: P52, P54
<2> After reset release, the port mode changes to the input mode (Hi-Z).
<3> Set the output latch of the corresponding port to 1.
<4> Set the corresponding bit of the POM0, POM1, POM4, POM5, POM8, and POM14 registers to 1 to set
the N-ch open drain output (V
DD withstand voltage) mode.
<5> Set the output mode by manipulating the PM0, PM1, PM4, PM5, PM8, and PM14 registers.
At this time, the output data is high level, so the pin is in the Hi-Z state.
<6> Can be communication by setting the serial array unit.
(2) Setting procedure when using I/O pins of IIC00, IIC01, IIC10, IIC20, IIC30, and IIC31 functions
<1> Externally pull up the pin to be used (on-chip pull-up resistor cannot be used).
In case of IIC00: P10, P11
In case of IIC01: P43, P44
In case of IIC10: P03, P04
In case of IIC20: P14, P15
In case of IIC30: P142, P143
In case of IIC31: P53, P54
<2> After reset release, the port mode is the input mode (Hi-Z).
<3> Set the output latch of the corresponding port to 1.
<4> Set the corresponding bit of the POM0, POM1, POM4, POM5, and POM14 registers to 1 to set the N-ch
open drain output (V
DD withstand voltage) mode.
<5> Set the corresponding bit of the PM0, PM1, PM4, PM5, and PM14 registers to the output mode (data I/O
is possible in the output mode).
At this time, the output data is high level, so the pin is in the Hi-Z state.
<6> Enable the operation of the serial array unit and set the mode to the simplified I
2
C mode.
<R>
<R>