EasyManua.ls Logo

Cmsemicon CMS32L051 - Page 567

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 567 / 703
The description of ~ of "(3) Data - Data - Stop condition" in Fig. 16-32 is as follows:
. The master enters a waiting state (SCLAn=0) on the falling edge of the 8th clock and generates an
interrupt (INTIICAn: End of Transmission Neutral). Since the ACKEn bit of the master is 0, the
ACK is sent to the slave through the hardware.
. The master receiver reads the received data and unwaits (WRELn=1).
. The slave detected an ACK (ACKDn=1) on the rising edge of the 9th clock.
. The slave enters a waiting state (SCLAn=0) on the falling edge of the 9th clock and generates an
interrupt (INTIICAn: transmit end interrupt).
. If the slave writes the send data to the IICA shift register n (IICAn), the slave is relieved of the wait
and the data transfer from the slave to the master controller begins.
. The master generates an interrupt on the falling edge of the 8th clock (INTIICAn: transmit end
interrupt) and enters a waiting state (SCLAn=0). Because of the ACK control (ACKEn=1), the bus
data line at this stage becomes low (SDAAn=0).
. The master sets the NACK Acknolwdge (ACKEn=0) and changes the wait sequence to the 9th
clock (WTIMn=1). If the master relieshes the wait (WRELn=1), the slave detects THEACK
(ACKDn=0) on the rising edge of the 9th clock.
. Both the master and slave enter a waiting state (SCLAn=0) on the falling edge of the 9th clock and
both generate interrupts (INTIICAn: End of Transmission Interrupt).
. If the master issues a stop condition (SPTn=1), the bus data cable (SDAAn=0) is cleared and the
master's wait is released. Thereafter, the master is in standby until the bus clock line is asserted
(SCLAn=1).
. The slave stops sending after acknowledging the NACK, and in order to end the communication,
the wait is released (WRELn=1). If the slave is relieved of waiting, the bus clock line is set
(SCLAn=1).
. If the master confirms that the bus clock line is being set (SCLAn=1), the bus data line is set after
the stop condition preparation time has elapsed
. (SDAAn=1), and then issue a stop condition (change SDAAn from 0 to 1 by SCLAn=1). If a stop
condition is generated, the slave detects the stop condition and generates an interrupt (INTIICAn:
Stop condition interrupt).

Table of Contents

Related product manuals