23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Receiving data<br />

SCLK output mode<br />

Receive data<br />

write timing<br />

SCLK0 output<br />

RXD0<br />

(INTRX0 interrupt request)<br />

Receive data<br />

write timing<br />

SCLK0 output<br />

RXD0<br />

(INTRX0 Interrupt request)<br />

RBFULL<br />

Receive data<br />

write timing<br />

SCLK0 output<br />

RXD0<br />

(INTRX0 Interrupt request)<br />

RBFULL<br />

Under development<br />

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

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

In the SCLK output mode, if SC0MOD2 = “0” and receive double buffering is<br />

disabled, a synchronous clock pulse is output from the SCLK0 pin and the next data is<br />

shifted into receive buffer 1 each time the CPU reads received data. When all the 8 bits<br />

are received, the INTRX0 interrupt is generated.<br />

The first SCLK output can be started by setting the receive enable bit SC0MOD0<br />

to “1.” If the receive double buffering is enabled with SC0MOD2 set<br />

to “1,” the first frame received is moved to receive buffer 2 and receive buffer 1 can<br />

receive the next frame successively. As data is moved from receive buffer 1 to receive<br />

buffer 2, the receive buffer full flag SC0MOD2 is set to “1” and the INTRX0<br />

interrupt is generated.<br />

While data is in receive buffer 2, if CPU/DMAC cannot read data from receive buffer 2<br />

before completing reception of the next 8 bits, the INTRX0 interrupt is not generated<br />

and the SCLK0 clock stops. In this state, reading data from receive buffer 2 allows data<br />

in receive buffer 1 to move to receive buffer 2 and thus the INTRX0 interrupt is<br />

generated and data reception resumes.<br />

bit7<br />

bit 0 bit 1<br />

bit 6 bit 7<br />

=“0” (if double buffering is disabled)<br />

bit 0 bit 1<br />

bit 6 bit 7<br />

=“1” (if double buffering is enabled and data is read from buffer 2)<br />

bit7<br />

bit 0 bit 1<br />

bit 6 bit 7<br />

=“1” (if double buffering is enabled and data cannot be read from buffer 2)<br />

Fig. 9-12 Receive Operation in the I/O Interface Mode (SCLK0 Output Mode)<br />

bit 0<br />

bit 0<br />

Serial Channel (SIO)

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

Saved successfully!

Ooh no, something went wrong!