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.

SCLK input mode<br />

Under development<br />

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

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

In the SCLK input mode, if SC0MOD2 is set to “0” and the transmit double<br />

buffers are disabled, 8-bit data that has been written in the transmit buffer is output<br />

from the TXD0 pin when the SCLK0 input becomes active. When all 8 bits are sent, the<br />

INTTX0 interrupt is generated. The next transmit data must be written before the<br />

timing point “A” as shown in Fig. 9-11.<br />

If SC0MOD2 is set to “1” and the transmit double buffers are enabled, data is<br />

moved from Transmit Buffer 2 to Transmit Buffer 1 when the CPU writes data to<br />

Transmit Buffer 2 before the SCLK0 becomes active or when data transmission from<br />

Transmit Buffer 1 (shift register) is completed. As data is moved from Transmit Buffer 2<br />

to Transmit Buffer 1, the transmit buffer empty flag SC0MOD2 is set to “1”<br />

and the INTTX0 interrupt is generated. If the SCLK0 input becomes active while no<br />

data is in Transmit Buffer 2, although the internal bit counter is started, an under-run<br />

error occurs and 8-bit dummy data (FFh) is sent.<br />

Serial Channel (SIO)

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

Saved successfully!

Ooh no, something went wrong!