BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
712 / 1149
Rev.1.02
19.9 Simple I
2
C (IIC00, IIC01, IIC10, IIC11, IIC20, Operation of IIC21, IIC30, IIC31)
communication
This is the function of clock synchronization communication with multiple devices through two lines of
serial clock (SCL) and serial data (SDA). Because this simple I
2
C is designed for single communication with
devices such as EEPROM, flash memory, A/D converters, etc., it is only used as a master device.
For start and stop conditions, AC specifications must be adhered to and processed by software while
operating the control registers.
[Sending and receiving data].
• Master send, master receive (limited to single master master function).
• ACK output function
note
, ACK detection function
• 8 bits data length (when sending an address, specify the address with a high 7 bits, and R/W control
with the lowest bit).
• Generate start and stop conditions via software.
[Interrupt function].
• End of transfer interrupted
[Error Detection Flag].
•
ACK error
※
[Function not supported by Simple
I2
C].
• Slave sending, Slave receiving
• Multi-master function (quorum failure detection function).
• Wait for detection feature
Note When receiving the last data, if you write "0"
to
the SDOEmn
bit (SDOEm
register)
to stop the output of the serial
communication data, the ACK is not output. For details, please refer to
Process".
Note m: Unit number (m=0~2)n: Channel number (n=0~3)mn=00~
03, 10
~
11, 20
~
21
Channels 0 to 3 for SCI0, channels 0 to 1 for SCI1, and channels for SCI2 0~1 is to support simple I2C
(IIC00, IIC01, IIC10, IIC11, IIC20, IIC21, IIC30, IIC31) channels.
Simple I
2
C (IIC00, IIC01, IIC10, IIC11, IIC20, IIC21, IIC30, IIC31) has the following 4 types of
communication operation:
• Address segment sending (cf19.9.1).
• Data transmission (see 19.9.2).
• Data reception (cf19.9.3).
• Generation of stop conditions (cf19.9.4).