29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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.

RM0008<br />

Universal synchronous asynchronous receiver transmitter (USART)<br />

3 It is advised that TE <strong>and</strong> RE are set in the same instruction in order to minimize the setup<br />

<strong>and</strong> the hold time of the receiver.<br />

4 The USART supports master mode only: it cannot receive or send data related to an input<br />

clock (SCLK is always an output).<br />

Figure 248. USART example of synchronous transmission<br />

RX<br />

TX<br />

Data out<br />

Data in<br />

USART<br />

Synchronous device<br />

(e.g. slave SPI)<br />

SCLK<br />

Clock<br />

Figure 249. USART data clock timing diagram (M=0)<br />

Idle or preceding<br />

transmission<br />

Start<br />

M=0 (8 data bits)<br />

Stop<br />

Idle or next<br />

transmission<br />

Clock (CPOL=0, CPHA=0)<br />

*<br />

Clock (CPOL=0, CPHA=1)<br />

*<br />

Clock (CPOL=1, CPHA=0)<br />

*<br />

Clock (CPOL=1, CPHA=1)<br />

*<br />

Data on TX<br />

(from master)<br />

0 1 2 3 4 5 6 7<br />

Start LSB MSB Stop<br />

Data on RX 0 1 2 3 4 5 6 7<br />

(from slave)<br />

LSB<br />

MSB<br />

*<br />

Capture Strobe<br />

* LBCL bit controls last data clock pulse<br />

Doc ID 13902 Rev 9 673/995

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

Saved successfully!

Ooh no, something went wrong!