RL78/G10 CHAPTER 13 SERIAL INTERFACE IICA
R01UH0384EJ0311 Rev. 3.11 427
Dec 22, 2016
13.3.8 Registers controlling port functions of IICA serial input/output pins
Using port pins for the IICA requires setting of the corresponding bits in registers that control the port functions
multiplexed on the IICA serial I/O pins (SCLA0 and SDAA0 pins): port mode register (PM0), port register (P0), port output
mode register (POM0), and port mode control register (PMC0).
For details on the registers that control the port functions, see 4.3.1 Port mode registers 0, 4 (PM0, PM4), 4.3.2 Port
registers 0, 4, 12, 13 (P0, P4, P12, P13), 4.3.4 Port output mode register 0 (POM0), and 4.3.5 Port mode control
register 0 (PMC0).
When you intend to use the clock I/O pin (SCLA0) and serial data I/O pin (SDAA0) of the IICA0, set the corresponding
bits in the port mode register (PM0) and port mode control register (PMC0) to 0 and the corresponding bits in the port
register (P0) and port output mode register (POM0) to 1.
For details, see 4.5.3 Example of register settings for port and alternate functions used.
Since these pins are used as n-channel open-drain outputs (with a withstand voltage of V
DD), use a resistor to pull them
up to the power-supply voltage of the external device.