English
Language : 

TMP92CZ26AXBG Datasheet, PDF (492/767 Pages) Toshiba Semiconductor – CMOS 32-Bit Microcontroller
TMP92CZ26A
Differences Between the UNIT-mode and Sequential-mode transmissions
The UNIT mode for the data transmission can be selected by writing a 0 to the
SPICT<TXMOD> bit.
The transmit FIFO buffer is disabled in UNIT mode. The UNIT-mode transmission starts
when the UNIT-size data is loaded into the SPITD register where SPICT<TXE> = 1, or
when the SPICT<TXE> is set to 1 after loading one UNIT-size data into the SPITD register.
During the data transmission, it is prohibited to change the transmission mode from
Sequential to UNIT, or vice versa.
In the UNIT-mode transmisison, the TEMP interrupt is generated when the transmit
data is loaded from the transmit data register (SPITD) to the transmit shift register. Also,
the TEND interrupt is generated upon completion of the transmission of the last UNIT
data.
Important Note:
In case of using UNIT mode: TXMOD=0, there is one restriction.
Don’t touch to all other SFRs, TXE=1 and UNIT transmission will finish completely.
Program Sample1:
LD
DI
SET 3,
(SPITDx), A
(SPICT)
; “A” is tranmission data
; Disable Interrupt
; TXE=1: Enable and Start
Wait:
BIT 1,
JPZ,
RES 3,
EI
(SPIST)
Wait
(SPICT)
; Wait to finish transmission。
; TXE=0: Disable
; Enable Interrupt
Program Sample2 (Recommend):
Check to transmission end flag! (SPIST<TEND>=1)
LD
DI
SET 3,
RES 3,
EI
(SPITDx), A
(SPICT)
(SPICT)
; “A” is tranmission data
; Disable Interrupt
; TXE=1: Enable and Start
; TXE=0: Disable
; Enable Interrupt
The Sequential mode for the data transmission can be selected by writing a 1 to the
SPICT<TXMOD> bit. The 32-byte FIFO is enabled in Sequential mode.
In this mode, the data writes to the transmit FIFO must be performed in 16-byte units.
Otherwise, the TEMP interrupt is not properly generated.
In the Sequential-mode transmission, transmit data written into the SPITD is loaded
sequentially when SPICT<TXE> = 1. The transmission in this mode can also be started by
setting the SPICT<TXE> bit to 1 after writing the transmit data into the transmit FIFO.
The transmit data is transmitted in the same order as they were written into the FIFO.
This mode of transmission keeps transmitting data as long as the transmit data exists.
Therefore, the Sequential-mode transmission continues as long as the transmit FIFO (32
bytes) has any valid data. During the data transmission, it is prohibited to change the
transmission mode from Sequential to UNIT, or vice versa.
92CZ26A-491
2007-11-13