TMP92CF30
2009-06-12
92CF30-459
Important Note:
When in UNIT mode (TXMOD = “0”), the following restriction is imposed on the
system operation.
When the SPICT<TEX> bit is set to “1”, the state of any bits must not be changed
until the data transmission is completed.
Sample Program 1:
LD
(SPITDx), A
; Load the transmit data
DI
; Disable the interrupt
SET 3,
(SPICT)
; Start transmission by setting the TXE bit to “1”
Wait:
BIT 1,
(SPIST)
; Wait for the completion of the transmission
JPZ, Wait
RES 3,
(SPICT)
; Disable the transmission by clearing the TXE bit to “0”
EI
; Enable the interrupt
Sample Program 2 (Recommend):
Check the transmission end flag. (SPIST<TEND> = “1”)
LD
(SPITDx), A
; Load “A” the transmit data
DI
; Disable the interrupt
SET 3,
(SPICT)
; Start transmission be setting the TXE bit to “1”
RES 3,
(SPICT)
; Disable the transmission by clearing the TXE bit to “0”
EI
; Enable the interrupt
(j)
RXMOD
This bit selects the data reception mode from UNIT and Sequential modes. During
reception, it is prohibited to change the reception mode from Sequential to UNIT, or
vice versa.
For UNIT-mode reception, the receive FIFO buffer is disabled and the RFUL
interrupt is generated when the received data is loaded from the receive shift register
to the receive data register (SPIRD).
For sequential-mode reception, the 32-byte receive FIFO is enabled and the RFUL
interrupt is generated when the size of received data stored in the receive FIFO
reaches 16 or 32 bytes.
Summary of Contents for TLCS-900/H1 Series
Page 652: ...TMP92CF30 2009 06 12 92CF30 650 ...