CHAPTER 12 SERIAL INTERFACE FUNCTION
Preliminary User’s Manual U15905EJ1V0UD
363
(4) Acknowledge signal (ACK)
The acknowledge signal (ACK) is used by the transmitting and receiving devices to confirm serial data
reception.
The receiving device returns one ACK signal for each 8 bits of data it receives. The transmitting device
normally receives an ACK signal after transmitting 8 bits of data. However, when the master device is the
receiving device, it does not output an ACK signal after receiving the final data to be transmitted. The
transmitting device detects whether or not an ACK signal is returned after it transmits 8 bits of data. When an
ACK signal is returned, the reception is judged as normal and processing continues. If the slave device does
not return an ACK signal, the master device outputs either a stop condition or a restart condition and then
stops the current transmission. Failure to return an ACK signal may be caused by the following two factors.
<1> Reception was not correctly performed.
<2> The final data was received.
When the receiving device sets the SDA line to low level during the ninth clock, the ACK signal becomes active
(normal receive response).
When bit 2 (ACKE) of the IIC control register (IICC) is set to 1, automatic ACK signal generation is enabled.
Transmission of the eighth bit following the 7 address data bits causes bit 3 (TRC) of the IIC status register
(IICS) to be set. When the TRC bit’s value is 0, it indicates receive mode. Therefore, ACKE should be set to
1.
When the slave device is receiving (when TRC = 0), if the slave device does not need to receive any more
data after receiving several bytes, setting ACKE to 0 will prevent the master device from starting transmission
of the subsequent data.
Similarly, when the master device is receiving (when TRC = 0) and the subsequent data is not needed and
when either a restart condition or a stop condition should therefore be output, setting ACKE to 0 will prevent
the ACK signal from being returned. This prevents the MSB data from being output via the SDA line (i.e.,
stops transmission) during transmission from the slave device.
Figure 12-29. ACK Signal
SCL
1
SDA
2
3
4
5
6
7
8
9
AD6
AD5
AD4
AD3
AD2
AD1
AD0
R/W ACK
When the local address is received, an ACK signal is automatically output in synchronization with the falling
edge of the eighth clock of SCL regardless of the ACKE bit value. No ACK signal is output if the received
address is not a local address.
The ACK signal output method during data reception is based on the wait timing setting, as described below.
When 8-clock wait is selected: The ACK signal is output at the falling edge of the eighth clock of SCL if ACKE
is set to 1 before wait cancellation.
When 9-clock wait is selected: The ACK signal is automatically output at the falling edge of the eighth clock of
SCL if ACKE has already been set to 1.
Содержание V850ES/SA2 UPD703201
Страница 2: ...Preliminary User s Manual U15905EJ1V0UD 2 MEMO ...
Страница 284: ... 4 6 7 6 7 8 9 9 6 Note 1 Note 2 0 0 9 9 6 1 1 0 1 9 0 0 0 6 7 0 0 0 0 0 0 0 1 1 1 0 0 0 0 3 1 6 7 6 7 ...
Страница 285: ... 6 7 ...
Страница 516: ...Preliminary User s Manual U15905EJ1V0UD 516 MEMO ...