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.

Protocol<br />

Under development<br />

Select the 9-bit UART mode for the master and slave controllers.<br />

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

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

Set SC0MOD to “1” for the slave controllers to make them ready to receive data.<br />

The master controller is to transmit a single frame of data that includes the slave controller<br />

select code (8 bits). In this, the most significant bit (bit 8) must be set to “1”.<br />

start bit 0 1 2 3 4 5 6 7 8 stop<br />

Slave controller select code<br />

Each slave controller receives the above data frame; if the code received matches with the<br />

controller's own select code, it clears the WU bit to “0”.<br />

The master controller transmits data to the designated slave controller (the controller of<br />

which SC0MOD bit is cleared to “0”). In this, the most significant bit (bit 8) <br />

must be set to “0”.<br />

start bit 0 1 2 3 4 5 6 7 bit 8 stop<br />

“1”<br />

Data “0”<br />

The slave controllers with the bit set to “1” ignore the receive data because the most<br />

significant bit (bit 8) is set to “0” and thus no interrupt (INTRX0) is generated.<br />

Also, the slave controller with the bit set to “0” can transmit data to the master<br />

controller to inform that the data has been successfully received.<br />

An example: Using the internal clock fSYS as the transfer clock, two slave controllers are<br />

serially linked as follows.<br />

TXD<br />

RXD TXD RXD TXD RXD<br />

Master Slave 1 Slave 2<br />

Select code<br />

00000001<br />

Select code<br />

00001010<br />

Serial Channel (SIO)

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

Saved successfully!

Ooh no, something went wrong!