EasyManua.ls Logo

Cmsemicon CMS32L051 - 12.9 Simplified I2 C (IIC00, IIC01, IIC10, IIC11, IIC20, IIC21) communication operation

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 12 Universal Serial Communication Unit
www.mcu.com.cn 442 / 703
12.9 Simplified I
2
C (IIC00, IIC01, IIC10, IIC11, IIC20, IIC21) communication operation
This is a function that synchronizes clock communication with multiple devices through a total of 2 lines of
serial clock (SCL) and serial data (SDA). Because this simplified I
2
C is designed for single communication with
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.
[Transmit and receive data]
Master sending, master receiving (limited to single master control functions).
ACK output function
Note
, ACK detection function
 8 bits of data length (when sending the address, specify the address with a high 7 bits, and use the
lowest bit for R/W control).
 Generate start conditions and stop conditions through the software.
[Interrupt function]
End of transfer interruption
[Error detection flag]
ACK error
[Features not supported by Simplified I
2
C]
Slave transmission, slave reception
Multi-master function (arbitration failure detection function).
 Wait for detection function
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
12.9.3(2) Processing Flow.
Remark m: Unit number (m=0, 1) n: Channel number (n=0~3)mn=00~ 03, 10~11
Channels 0 to 3 of SCI0 and channels 0 to 1 of SCI1 support Simplified I
2
C (IIC00, IIC01, IIC10, IIC11,
IIC20, IIC21) channels.
Simplified I
2
C (IIC00, IIC01, IIC10, IIC11, IIC20, IIC21, IIC30, IIC31) have the following four types of
communication operations:
 Address segment transmission (see 12.9.1).
 Datat transmission (see 12.9.2).
 Data reception (see 12.9.3).
 Generation of stop conditions (see12.9.4).

Table of Contents

Related product manuals