09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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.

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

26.5 USART mode configuration<br />

Table 120. USART mode configuration (1)<br />

1. X = supported; NA = not applicable.<br />

26.6 USART registers<br />

USART modes USART1 USART2 USART3 UART4 UART5 USART6<br />

Asynchronous mode X X X X X X<br />

Hardware flow control X X X NA NA X<br />

Multibuffer communication (DMA) X X X X X X<br />

Multiprocessor communication X X X X X X<br />

Synchronous X X X NA NA X<br />

Smartcard X X X NA NA X<br />

Half-duplex (single-wire mode) X X X X X X<br />

IrDA X X X X X X<br />

LIN X X X X X X<br />

Refer to Section 1.1 on page 47 for a list of abbreviations used in register descriptions.<br />

The peripheral registers can be accessed by half-words (16 bits) or words (32 bits).<br />

26.6.1 Status register (USART_SR)<br />

Address offset: 0x00<br />

Reset value: 0x00C0 0000<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

Reserved<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved<br />

CTS<br />

rc_w0<br />

LBD<br />

rc_w0<br />

TXE<br />

r<br />

TC<br />

rc_w0<br />

RXNE<br />

rc_w0<br />

IDLE<br />

r<br />

ORE<br />

r<br />

NF<br />

r<br />

FE<br />

r<br />

PE<br />

r<br />

Bits 31:10 Reserved, must be kept at reset value<br />

Bit 9 CTS: CTS flag<br />

This bit is set by hardware when the nCTS input toggles, if the CTSE bit is set. It is cleared<br />

by software (by writing it to 0). An interrupt is generated if CTSIE=1 in the USART_CR3<br />

register.<br />

0: No change occurred on the nCTS status line<br />

1: A change occurred on the nCTS status line<br />

Note: This bit is not available for UART4 & UART5.<br />

Bit 8 LBD: LIN break detection flag<br />

This bit is set by hardware when the LIN break is detected. It is cleared by software (by<br />

writing it to 0). An interrupt is generated if LBDIE = 1 in the USART_CR2 register.<br />

0: LIN Break not detected<br />

1: LIN break detected<br />

Note: An interrupt is generated when LBD=1 if LBDIE=1<br />

Doc ID 018909 Rev 3 778/1416

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

Saved successfully!

Ooh no, something went wrong!