23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.3.10 Transmit FIFO Buffer<br />

Under development<br />

<strong>TMPM330</strong> (rev 0.4) 9-21<br />

<strong>TMPM330</strong><br />

In addition to the double buffer function already described, data may be stored using the<br />

transmit FIFO buffer. By setting of the SC0FCNF register and of the<br />

SC0MOD1 register, the 4-byte transmit buffer can be enabled. In the UART mode or I/O<br />

interface mode, up to 4 bytes of data may be stored.<br />

If data is to be transmitted with a parity bit in the UART mode, parity check must be performed<br />

on the receive side each time a data frame is received.<br />

9.3.11 Transmit FIFO Operation<br />

I/O interface mode with SCLK output (normal mode):<br />

TX FIFO<br />

Transmit buffer 2<br />

Transmit buffer 1<br />

The following example describes the case a 4-byte data stream is transmitted:<br />

SC0TFC = 01: Clears transmit FIFO and sets the condition of interrupt generation<br />

SC0TFC = 00: Sets the interrupt to be generated at fill level 0.<br />

SC0FCNF = 01011: Inhibits continued transmission after reaching the fill level.<br />

In this condition, data transmission can be initiated by setting the transfer mode to half<br />

duplex, writing 4 bytes of data to the transmit FIFO, and setting the bit to “1.”<br />

When the last transmit data is moved to the transmit buffer, the transmit FIFO interrupt is<br />

generated. When transmission of the last data is completed, the clock is stopped and the<br />

transmission sequence is terminated.<br />

TBEMP<br />

INTTX0<br />

TXE<br />

Data 6<br />

Data 5<br />

Data 4<br />

Data 3<br />

Data 2<br />

Data 1<br />

Data 6<br />

Data 5 Data 6<br />

Data 4 Data 5 Data 6<br />

Data 3 Data 4 Data 5 Data 5<br />

Data 2 Data 3 Data 4<br />

Fig. 9-8 Transmit FIFO Operation<br />

Data 6<br />

Serial Channel (SIO)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!