![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 806](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609806.webp)
BAT32G1x9 user manual | Chapter 20 Serial interface IICA
806 / 1149
Rev.1.02
FIG 20-30of "(2) address ~ data ~ data" of (3) ~ (10) is described as follows:
(3) On the slave, if the receiving address and the local station address (the value of the SVAn) are the
same
note
, the ACK is sent to the master through the hardware. The master detects ACK on the rising
edge of the 9th clock (ACKDn=1).
(4) The master generates an interrupt on the falling edge of the 9th clock (INTIICAn: address send end
interrupt). Slaves with the same address enter a waiting state (SCLAn=0,1) and an interrupt (INTIICAn:
address matching interrupt)
note
.
(5) The master writes and sends data to the IICA shift register n (IICAn) to remove the wait of the main
controller.
(6) If the slave lifts the wait (WRELn=1), the master party begins to transmit data to the slave.
(7) After the data transfer is completed, because the ACKEn bit of the slave is "1", the ACK is sent to the
master control through hardware. The master detects ACK on the rising edge of the 9th clock
(ACKDn=1).
(8) Both the master and the slave enter a waiting state (SCLAn= 0,1) on the falling edge of the 9th clock,
and both produce interrupts (INTIICAn: Transmit End Interrupt).
(9) The master controller writes and sends data to the IICAn register to remove the waiting of the main
controller.
(10) If the slave reads and receives the data and cancels the wait (WRELn=1), the master party begins
to transmit data to the slave.
Note: If the sent address and the slave address are different, the slave does not return an ACK
(NACK:
SDAAn=1
) to the
master
and does not generate an
INTIICAn
interrupt
(address matching interrupt) or enter a waiting state.
However, the master generates ANTIICAn
interrupts
(address send end interrupts) for
both
ACK
and
NAK.
Note 1
FIG 20-30A series of operational steps for data communication via
the I2C
bus.
of the
"(1)
start condition ~ address ~ data"
illustrates steps (1) ~ (6).
of the "(2)
address ~ data ~ data"
illustrates steps (3) ~ (10).
of the
"(3)
data ~ data ~ stop condition"
illustrates step (7) ~ .
○
15
2.n=0,1