RL78/G10 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 388
Dec 22, 2016
12.7 Operation of Simplified I
2
C (IIC00) Communication
This is a clocked communication function to communicate with two or more devices by using two lines: serial clock
(SCL) and serial data (SDA). This communication function is designed to execute single communication with devices such
as EEPROM, flash memory, and A/D converter, and therefore, can be used only by the master.
Operate the control registers by software for setting the start and stop conditions while observing the specifications of
the I
2
C bus line.
[Data transmission/reception]
• Master transmission, master reception (only master function with a single master)
• ACK output function
Note
and ACK detection function
• Data length of 8 bits
(When an address is transmitted, the address is specified by the higher 7 bits, and the least significant bit is
used for R/W control.)
• Generation of start condition and stop condition for software
[Interrupt function]
• Transfer end interrupt
[Error detection flag]
• Overrun error
• ACK error
* [Functions not supported by simplified I
2
C]
• Slave transmission, slave reception
• Multi master function (Arbitration loss detection function)
• Wait detection function
Note When receiving the last data, ACK will not be output if 0 is written to the SOE00 bit in the SOE0 register and
serial communication data output is stopped. See 12.7.3 (2) Processing flow for details.
Remark Full I
2
C functions are described in CHAPTER 13 SERIAL INTERFACE IICA (16-pin products only).
The channels supporting simplified I
2
C (IIC00) are channel 0 of SAU0.
Unit Channel Used as CSI Used as UART
Used as Simplified I
2
C
0 0 CSI00 UART0 IIC00
1 CSI01
−
Simplified I
2
C (IIC00) performs the following four types of communication operations.
• Address field transmission (See 12.7.1.)
• Data transmission (See 12.7.2.)
• Data reception (See 12.7.3.)
• Stop condition generation (See 12.7.4.)