Toshiba TC9349AFG Manual page 80

Cmos digital integrated circuit silicon monolithic
Table of Contents

Advertisement

Serial counter, Serial data
(STA0 to 3, STP0 to 3, OCT0 to 3 and ICT0 to 3 bits, SO0 to SO9/SOE/SOF, SI0~SI9/SIE/SIF)
The serial counter consists of the serial input counter (ICT0 to 3) that counts the serial input clock and the serial
output counter (OCT0 to 3) that counts the serial output clock. When stop is executed (STP = "1"), these serial
counters are preset to the stop data (STP0 to 3). When start is executed (TSTA1 = "1", TSTA2 = "1") or the external
serial clock is started, these serial counters are preset to serial counter start data (STA0 to 3) and counted by the serial
clock. When the serial counter coincides with the serial stop data (STP0 to 3), the serial counter is stopped and an
interruption is issued.
The operating state can be checked on the serial counter monitor (ICT0 to 3, OCT0 to 3).
Serial counter start data (STA0 to 3 bits)
→ When the serial operation is started, the start data is set to the serial counter.
Serial counter stop data (STP0 to 3 bits)
→ When a stop is executed (STP = "1"), the stop data is set to the serial counter. After the serial
counter operation, the serial operation is stopped in the stop data position, and an interruption issued.
Operation monitor for serial output counter (OCT0 to 3 bits)
→ The operating state of the serial output counter can be detected.
Operation monitor for serial input counter (ICT0 to 3 bits)
→ The operating state of the serial input counter can be detected.
Serial data consists of 12 bits each of serial output data (SO0 to SO9/SOE/SOF) and serial input data (SI0 to
SI9/SIE/SIF). For serial output data, the serial data corresponding to the serial output counter number is outputted to
the serial output pin. For serial input data, the state of the serial data input pin is read at the edge of the serial clock
corresponding to the serial input counter number.
When the 2-wire mode is selected, the SOE/SOF bits in the serial output data are automatically set to "1" when the
serial operation is started or when stop is executed (STP = "1") with the master setting. usually, the bits of SO0/SI1 to
SO7/SI7 are used for serial input/output data. The SOE bit is used as the output bit of the serial stop state,while the
SOF/SIF bits are used as input/output data of ACK.
When UART is selected, the bits of SO0/SI1 to SO7/SI7 are used for UART input/output data, while the SO8/SI8
bits are used as parity bits. The SO9 bit is used for the output of the stop output data.
When the 3-wire mode is selected, up to 14 bits of serial data can be inputted and outputted. Set the serial data start
and stop data according to the number of bits, and specify this number.
Example of serial operation timing when the 3-wire mode is selected (when MSB= "0", POL= "0" and STPS= "1")
線式設定時のシリアル動作タイミング例 MSB="0" POL="0" STPS="1"設定時
STP0 3="0"
Serial clock
シリアルクロック
(SCK)
( SCK)
シリアル出力
Serial output
カウンタ
counter
OTC0 OTC3)
(OTC0 to OTC3)
Serial input
シリアル入力
counter
カウンタ
(ITC0 to ITC3)
ITC0 ITC3)
Serial input/output
SO0
シリアル入出力
(SDIO)
( SDIO)
TSTA1= "1" execution
TSTA1="1"実行
Execution of
命令の実行
instruction
STP="1"実行
STP= "1" execution
STA0 3="7"
SO7
SO6
SO1
Issue of interruption
80
シリアルカウンタが一致すると停止する
Stop when the serial counters match.
SO1
SO0
SO7
SO6
TSTA1= "1" execution
TSTA1="1"実行
割り込み発行
TC9349AFG
SO1
SO0
割り込み発行
Issue of interruption
(Note) Shown in HEX notation
(注)上記はHEX表記
2006-02-24

Advertisement

Table of Contents
loading

Table of Contents