TMP92CZ26A

92CZ26A-489

(3) Interrupt
In INTC (interrupt controller), interrupt is divided roughly into 2 kinds; transmit interrupt
(INTSPITX) and rec e iv e interrupt (INTSP IRX ). B e sides in this SPI circuit, there are 4 kinds of
interrupts; 2 transmit interrupts 2 rec eive interrupts.
Transmit interrupt
TEMP (Empty interrupt of transmit FIFO) and TEND (End int errupt of transmit).
As for TEMP interrupt, the timing of generation differs according to transmit mode;
UNIT/sequential.
If transmit is sequencial, writ ing the data to trans m it F IF O ev ery 16 bytes is always need ed. If
writing other than 16 bytes, TEMP interrupt does not generat e n ormally.
UNIT transmit mode
TEMP interrupt generates when the data is shift from transmit data register (SPITD) to
transmit buffer since tra nsm it F IF O i s invalid.
TEND interrupt generates when the last UNIT transmit is finished (the falling edge of the
last bit clock) with the F IFO empty.
Sequential transmit mode
TEMP interrupt generates from 2 phenomenon. One is when the space of FIFO becomes 16
bytes size and the other 32 bytes size.
TEND interrupt generates when the last UNIT transmit is finished (the falling edge of the
last bit clock) with the F IFO empty.
Receive interrupt
RFUL (Receive FIFO interrupt) and REND (Receive finish interrupt).
As for RFUL interrupt, the timing of generation differs according to receive mode;
UNIT/sequential.
If transmit is sequencial, read ing the data from receive FIFO eve ry 16 bytes is always needed.
If reading other than 16 bytes, RFUL interrupt does not generate n ormally.
UNIT receive
RFUL interrupt generates the same timing as REND since the receive FIF O becomes invalid.
RFUL and REND interrupt genera te when the data is shifted from receive buffer to recei ve data
register (SPIRD).
Sequential receive
RFUL interrupt gener ates from 2 phenom enon. One is wh en 16 bytes size of data is loa ded to
receive FIFO and the other 32 bytes size of data.
REND interrupt gener ates when the receive F I F O becomes full (32bytes).