![](http://datasheet.mmic.net.cn/390000/TC9324F_datasheet_16837284/TC9324F_62.png)
TC9324F
2002-02-08
62
The serial interface pins can also function as I/O port 4 pins P4-1, P4-2, and P4-3. Setting the SIO ON bit
to 1 sets these I/O port 4 pins as the SI1/SI2, SO1/SO2, and SCK1/SCK2 pins, respectively.
Note: All the serial interface inputs incorporate Schmitt trigger circuits.
Note: Even when the serial interface is selected, the SI pin (P4-1) can still be used as an I/O port and therefore
can be used for such purposes as inputting/outputting SIO strobe signals.
When setting this pin as a serial input pin, set the P4-1 output data to 1 to set the pin as an input.
1)
EDGE, SCK-INV, SCKO Bits
The EDGE bit sets the shift edge. The SCK-INV bit sets the shift clock input/output waveform.
When the EDGE bit is set to 0, serial clock (SCK1) shift operations are performed on the rising edge
of the clock. When the EDGE bit is set to 1, serial clock (SCK1) shift operations are performed on the
falling edge of the clock. The SCK-INV bit sets whether to start shift operations from the serial clock’s
H level output or L level output. When SCK-INV is set to 0, shift operations start from the H output.
When SCK-INV is set to 1, shift operations start from the L output. These bits can be used to allow
the kind of serial operations shown in the following table. Set those serial operations in accordance
with the controlling serial format.
The SCKO bit sets the serial clock input/output. When using the TC9324F as the master controller,
set SCKO to 1 to output the serial clock. When the TC9324F is the slave, set SCKO to 0 to input the
serial clock.
Y1
SO1
B
SO4
SO5
SO6
SO7
φ
L2C
Y2
Y4
Y8
Serial interface output data 1
A
SO0
SO2
SO3
Y1
Y2
Y4
Y8
φ
K16P3
BUSY
COUNT
SIO
F/F
0
SIO1 start flag
0: Performs SIO operations.
1: Performs no SIO operations.
Detect number of SCK clocks
0: Number of clocks normal (the number of SCK clocks is a multiple of 4)
1: Number of clocks abnormal (the number of SCK clocks is not a multiple of 4)
SIO1 operation monitor
0: SIO operation complete
1: SIO operation in progress
φ
L2B
Y1
Y2
Y4
Y8
SEL1 SEL2 SEL4 SEL8
Serial output data: The data set in this port are output to the serial interface.
φ
K19P3
Y1
Y2
Y4
Y8
SI0
SI1
SI2
SI3
φ
K1AP3
Y1
Y2
Y4
Y8
SI4
SI5
SI6
SI7
Serial input data: The data input to the serial interface are loaded to data memory.
Data selection
Note: The serial interface input data are
accessed directly from the shift register.