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.

• Handshake function<br />

Data write timing to transmit<br />

buffer or shift register<br />

(Note 1)<br />

(Note 2)<br />

Under development<br />

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

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

The CTS pin enables frame by frame data transmission so that overrun errors can be<br />

prevented. This function can be enabled or disabled by SC0MOD0 .<br />

When the CTS 0 pin is set to the “H” level, the current data transmission can be completed<br />

but the next data transmission is suspended until the CTS 0 pin returns to the “L” level.<br />

However in this case, the INTTX0 interrupt is generated, the next transmit data is requested<br />

to the CPU, data is written to the transmit buffer, and it waits until it is ready to transmit data.<br />

Although no RTS pin is provided, a handshake control function can be easily implemented<br />

by assigning a port for the RTS function. By setting the port to “H” level upon completion of<br />

data reception (in the receive interrupt routine), the transmit side can be requested to<br />

suspend data transmission.<br />

CTS<br />

SIOCLK<br />

TXDCLK<br />

TXD<br />

CTS<br />

Transmit side<br />

Fig. 9-6 Handshake Function<br />

Fig. 9-7 CTS (Clear to Transmit) Signal Timing<br />

If the CTS signal is set to “H” during transmission, the next data transmission is<br />

suspended after the current transmission is completed.<br />

Data transmission starts on the first falling edge of the TXDCLK clock after CTS is set to<br />

“L.”<br />

RXD<br />

RTS (Any port)<br />

Receive side<br />

Transmission is<br />

suspended during<br />

this period ②<br />

①<br />

13 14 15 16 1 2 3 14 15 16 1 2 3<br />

TXD bit 0<br />

start bit<br />

Serial Channel (SIO)

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

Saved successfully!

Ooh no, something went wrong!