CMS32L051 User Manual |Chapter 14 Serial interface IICA
www.mcu.com.cn 494 / 703
Figure 14-8 Format of IICA flag register n(IICFn)
Address: 0x40041B52 After reset: 00HR/W
Note
symbol
IICFn
Release start conditions.
The STTn flag could not be cleared while the start condition could be issued.
Clear condition (STCFn=0).
due to STTn bit being 1
the IICEn bit is 0 (stop running).
When the STTn bit is cleared to 0 when the start
condition cannot be issued when the
communication reservation is disabled
(IICRSVn=1) state cannot be issued
The bus release state (the initial state of communication at STCENn=1).
Bus communication state (initial state of communication at STCENn=0).
Clear condition (IICBSYn=0).
Set condition (IICBSYn=1).
condition is detected
the IICEn bit is 0 (stop running).
Set the IICEn bit when the STCENn bit is 0
Initial start allows triggering
After the allow run (IICEn=1), the start condition is allowed to be generated by detecting the
stop condition.
After the allow run (IICEn=1), the start condition is allowed to be generated without detecting
the stop condition.
Clear condition (STCENn=0).
Set condition (STCENn=1).
Communication reservation function disable bit
Allow communication reservation.
Communication reservation is prohibited.
Clear condition (IICRSVn=0).
Set condition (IICRSVn=1).
Note Bit6 and bit7 are read-only bits.
Notice 1 The STCENn bit can only be written when it is stopped (IICEn=0).
2. If the STCENn bit is 1, the bus is considered to be a release state (IICBSYn=0) regardless of the actual bus state,
so in order to avoid the first start condition (STTn=) in the release 1) When destroying other communications, it is necessary
to confirm that there is no third party that is communicating.
3. IICRSVn can only be written when it is stopped (IICEn=0).
Remark 1. STTn: Bit1 of IICA control register n0 (IICCTLn0).
2. IICEn: bit7 of the IICA control register n0 (IICCTLn0).