BAT32G1x9 user manual | Chapter 20 Serial interface IICA
759 / 1149
Rev.1.02
Figure 20-19 Wait (2/2).
(2) A situation where both the master and slave devices are waiting for 9 clocks
(Master: Transmit, Slave: Receive, ACKEn=1).
master device and
slave device all enter
into wait state after
output 9th clock.
write data into IICAn (release
from wait).
IICAn
FFH or WRELn
1
slave device waits
master device
and slave
device both wait
H
IICAn
SCLAn
SCLAn
IICAn
ACKEn
SCLAn
SDAAn
transmis
sion line
slave
device
master
device
generates according to pre-configured ACKEn.
Note: ACKEn:
Bit2
of
IICA
control register
n0
(IICCTLn0
).
WRELn:
Bit5
of
the IICA
control register
n0
(IICCTLn0
).
A wait state is automatically generated by bit3 (WTIMn) by setting the IICA control register n0 (IICCTLn0).
Typically, on the receiver side, if the bit5 (WRELn) of the IICCTLn0 register is "1" or give the IICA a shift register n
(IICAn) write "FFH", the wait is lifted; On the sender, if data is written to the IICAn register, the wait is lifted. The
master can also lift the wait by:
•
Set bit1 (STTn) of the IICCTLn0 register to "1".
•
Set bit0 (SPTn) of the IICCTLn0 register to "1".
Note: n=0,1