CMS32L051 User Manual |Chapter 14 Serial interface IICA
www.mcu.com.cn 507 / 703
Figure 14-19 Wait (2/2)
(2) The case where both the master and slave devices are waiting for 9 clocks
(Master device: send, slave device: receive, ACKEn=1).
Note ACKEn: bit2 of IICA control register n0
(IICCTLn0).
WRELn: Bit5 of IICA control register n0
(IICCTLn0).
The wait state is automatically generated by setting bit3 (WTIMn) of IICA control register n0 (IICCTLn0).
Typically, on the receiver, if bit5 (WRELn) of the IICCTLn0 register is 1 or if the IICA shift register is given n
(IICAn) writes FFH and releases the wait; On the sender, if data is written to the IICAn register, the wait is
released. The master device can also unwait in the following ways:
•
Set bit1 (STTn) of the IICCTLn0 register to 1.
•
Set bit0 (SPTn) of the IICCTLn0 register to 1.
Note n=0