RL78/G1A CHAPTER 12 SERIAL ARRAY UNIT
R01UH0305EJ0200 Rev.2.00 544
Jul 04, 2013
12.8 Operation of Simplified I
2
C (IIC00, IIC01, IIC10, IIC11, IIC20, IIC21) 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 SOEmn (SOEm register) bit and serial
communication data output is stopped. See the processing flow in 12.8.3 (2) for details.
Remark m: Unit number (m = 0, 1), n: Channel number (n = 0 to 3), mn = 00 to 03, 10, 11