EasyManua.ls Logo

Cmsemicon CMS32L051 - IICA Flag Register N (Iicfn)

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 14 Serial interface IICA
www.mcu.com.cn 493 / 703
Figure 14-7 Format of IICA status register n (IICSn) (3/3)
ACKDn
Detection of ACK
0
No reply detected.
1
An answer is detected.
Clear condition (ACKDn=0).
Set condition (ACKDn=1).
When a stop condition is detected
 goes up
 LRELn bit being 1 (exit
communication).
 IICEn bit changes from 1 to 0 (stop
running).

 9th clock rising
edge of the SCLAn line
STDn
Start detection of conditions
0
No start condition detected.
1
A start condition was detected, indicating that it was during address transfer.
Clear condition (STDn=0).
Set condition (STDn=1).
condition is detected

address is transferred
 LRELn bit being 1 (exit
communication).
 IICEn bit changes from 1 to 0 (stop
running).

etected
SPDn
Detection of stop conditions
0
No stop condition detected.
1
A stop condition is detected, the master device ends communication and the bus is released.
Clear condition (SPDn=0).
Set condition (SPDn=1).
set this bit, when the 1st clock of the address
transfer byte after detecting the start condition is
detected
 WUPn bit changes from 1 to 0
 IICEn bit changes from 1 to 0 (stop
running).


Note 1. LRELn: Bit6 of the IICA control register n0 (IICCTLn0).
IICEn: Bit7 of the IICA control register n0 (IICCTLn0).
2.n=0
14.3.4 IICA flag register n (IICFn)
This is the register that sets the I2C operating mode and represents the status of the I2C-bus.
The IICFn register is set via an 8-bit memory operation command. However, only the STTn clear flag
(STCFn) and the I2C-bus status flag (IICBSYn) can be read.
The communication reservation function is allowed or disallowed by the IICRSVn bit setting, and the initial
value of the IICBSYn bit is set by the STCENn bit. Only at bit7 (IICEn)=0) can only write IICRSVn bits and
STCENn bits. Only IICFn registers can be read after they are allowed to operate. After the reset signal is
generated, the value of this register becomes 00H.

Table of Contents

Related product manuals