![](http://datasheet.mmic.net.cn/390000/TC9324F_datasheet_16837284/TC9324F_64.png)
TC9324F
2002-02-08
64
2)
8BIT Bit
The 8BIT bit selects the length of the serial data. Setting this bit to 0 selects 4-bit data; setting the
bit to 1 selects 8-bit data. When the serial clock is set to the internal clock and SIO operations start, a
4-bit or 8-bit clock is continuously output depending on the setting of this bit.
3)
SOI Bit
The SOI bit sets the SOI pin as either a serial data input or output.
Setting the SOI bit to 0 sets the SOI pin as a serial data output. Setting 1 sets the pin as a serial
data input. This control can be used in serial bus operations where serial data input/output is
controlled with a single pin.
4)
Monitoring Serial Interface 1 Operation
Use the BUSY, COUNT, and SIO F/F bits to check the operating state of the serial interface.
The BUSY bit is set to 1 during SIO operations. Therefore, set the control data and access the serial
data when the BUSY bit is 0. Interrupt requests are generated on the falling edge of the BUSY bit.
Use the COUNT bit to determine whether a 4-bit unit of data has been sent or received. When the
number of shift operations is a multiple of 4, the COUNT bit outputs 0. When not a multiple of 4, the
bit outputs 1.
The SIO F/F bit is set to 1 when the SCK pin starts a shift operation.
Setting the STA bit to 1 clears both the COUNT bit and SIO F/F bit to 0. These two bits are mainly
used when the SCK pin is set as the external clock (slave). The bits can be used to check whether the
external clock was input, whether serial data was sent or received, and whether operations were
normal.
Because an interrupt normally occurs on completion of a serial interface operation, use interrupt
handling for checking whether a serial operation was successful.
5)
STA Bit
This bit is used to start serial interface operations. Each setting of the STA bit to 1 starts a serial
operation. Setting STA to 1 transfers serial output data to the shift register and resets the COUNT bit
and the SIO F/F bit. When the SCK clock is set to an internal clock, a serial clock is output. When the
SCK clock is set to an external clock, the interface stands by for serial clock input.
Example of Serial Data Input/Output Operation
SCK1 pin
Edge switching
SO1 pin
1
2
3
4
SO0
SO1
SO2
SI0
SO3
1
2
3
SI1
SI2
SI3
4
STA bit set to 1
SOI bit set to 1
STA bit set to 1
SOI bit set to 0
(Note)
SCK1 pin
STA bit set to 1
SO1 pin
SI1 pin
BUSY
Interrupt
1
2
3
4
SO0
SO1
SO2
SO3
SI0
SI1
SI2
SI3
5
6
7
8
SI4
SI5
SI6
SO4
SO5
SO6
SO7
SI7