Toshiba TLCS-900/H1 Series Manual page 467

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:
Table of Contents

Advertisement

(3) Interrupts
The SPIC generates two types of interrupt requests to the Interrupt Controller (INTC),
which are the transmit interrupt (INTSPITX) and receive interrupt (INTSPIRX) requests.
Also, the SPIC has four types of interrupts; two for transmission and two for reception.
(a) Transmit interrupts
TEMP (Transmit FIFO Empty interrupt) and TEND (Transmit End interrupt)
As for the TEMP interrupt, the timing of the interrupt generation differs depending on
the transmission mode, which is UNIT or Sequential.
In the Sequencial-mode transmission, the data writes to the transmit FIFO must be
performed in 16–byte units. Otherwise, the TEMP interrupt is not properly generated.
UNIT–mode transmission
Since the transmit FIFO is disabled in this mode, the TEMP interrupt is generated
when the data written in the transmit data register (SPITD) is loaded into the
transmit shift register.
The TEND interrupt is generated when the transmission of the last UNIT data is
completed with the FIFO being empty (i.e., after the falling edge of the last bit clock
where SPIMD<TCPOL> = "0").
Sequential–mode transmission
The TEMP interrupt is generated by the following two conditions: One is when the
empty space size of the transmit FIFO reaches 16 bytes, and the other is when it
reaches 32 bytes.
The TEND interrupt is generated when the transmission of the last UNIT data is
completed with the FIFO being empty (i.e., after the falling edge of the last bit clock
where SPIMD<TCPOL> = "0").
(b) Receive interrupts
RFUL (Receive FIFO interrupt) and REND (Receive End interrupt).
As for the RFUL interrupt, the timing of the interrupt generation differs depending
on the reception mode; which is UNIT or Sequential.
In the Sequencial-mode transmission, the data reads from the receive FIFO must be
performed in 16-byte units. Otherwise, the RFUL interrupt is not properly generated.
UNIT-mode reception
Since the receive FIFO is disabled in this mode, the RFUL interrupt is generated at
the same timing as the REND interrupt is generated.
The RFUL and REND interrupts are generated when the data is loaded from the
receive shift register into the receive data register (SPIRD).
Sequential-mode reception
The RFUL interrupt is generated by the following two conditions: One is when the
size of data stored into the receive FIFO reaches 16 bytes, and the other is when it
reaches 32 bytes.
The REND interrupt is generated when the 32-byte receive FIFO becomes full.
92CF30-465
TMP92CF30
2009-06-12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmp92cf30fg

Table of Contents