
TC9325F
2002-05-14
77
15) ACK Bit
The ACK bit is the acknowledge bit. This bit is valid when 2-line serial interface is set. After
inputting/outputting 8-bit serial data, the status of the SO4 pin is input to the ACK bit on the next
rising edge. When 0 is input to ACK with STA already set to 1, the next serial operation begins. When
1 is input to ACK, any serial operations for which the STA bit is already set to 1 are cancelled.
ACK is reset to 0 whenever the F/F reset bit is set to 1.
16) STA F/F, STP F/F, BUSY4 Bits
These bits are used to detect the 2-line serial interface start and stop conditions and are valid when
2-line serial interface is set. When the 2-line serial interface start conditions are detected, the STA
F/F and BUSY4 bits are set to 1. When the 2-line serial interface stop conditions are detected, the
STP F/F bit is set to 1 and the BUSY4 bit is reset to 0. The STA F/F and STP F/F bits are reset to 0
whenever the F/F reset bit is set to 1.
The 2-line serial interface operation status can be detected by checking these bits.
17) STP Bit
The STP bit is used to forcibly terminate serial operations still in progress and to cancel the start of
a serial operation. At this time the bit is set to 1.
With 2-line serial interface set, when STP is set to 1 to terminate a serial operation in progress, the
serial operation terminates at the time the setting is executed.
With 3-line serial interface set, when STP is set to 1 to terminate a serial operation in progress, the
serial operation is terminated on the falling edge of the serial clock. Also, STP can be used to cancel
the commencement of a serial operation where STA is already set to 1.
Example of Two-Line Serial Interface Operation
STP F/F bit
SO4 pin
STA F/F bit
SCK4 pin
SCK3/SCK4 bits are automatically cleared to 0 on completion of a serial operation
Stop conditions
BUSY4 bit
BUSY bit
Instruction
(when master)
ENA bit
Acknowledgement from external device
Start conditions
ACK
Setting STA to 1 again resumes serial operation.
Software control
Software control
SO3/SO4
=
1
STA
=
1
(STA
=
1)
SCK3/SCK4
=
0
SO3/
SO4
=
1
SCK3/
SCK4
=
1
SCK3/
SCK4
=
1
SCK3/
SCK4
=
0
SO3/SO4
=
0
SO3/
SO4
=
1
STA is set to 1 at transfer of data equal to or
larger than 2 bytes.
Serial operation (hardware control)