Contents RM0090
28/1731 DocID018909 Rev 11
29.17 SAI registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943
29.17.1 SAI xConfiguration register 1 (SAI_xCR1) where x is A or B . . . . . . . 943
29.17.2 SAI xConfiguration register 2 (SAI_xCR2) where x is A or B . . . . . . . 946
29.17.3 SAI xFrame configuration register (SAI_XFRCR) where x is A or B . . 948
29.17.4 SAI xSlot register (SAI_xSLOTR) where x is A or B . . . . . . . . . . . . . . 950
29.17.5 SAI xInterrupt mask register2(SAI_xIM) where x is A or B . . . . . . . . . 951
29.17.6 SAI xStatus register (SAI_xSR) where x is A or B . . . . . . . . . . . . . . . . 953
29.17.7 SAI xClear flag register (SAI_xCLRFR) where X is A or B . . . . . . . . . 955
29.17.8 SAI xData register (SAI_xDR) where x is A or B . . . . . . . . . . . . . . . . . 956
29.17.9 SAI register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 956
30 Universal synchronous asynchronous receiver
transmitter (USART) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 958
30.1 USART introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 958
30.2 USART main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 958
30.3 USART functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959
30.3.1 USART character description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 962
30.3.2 Transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 963
30.3.3 Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 966
30.3.4 Fractional baud rate generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 971
30.3.5 USART receiver tolerance to clock deviation . . . . . . . . . . . . . . . . . . . . 981
30.3.6 Multiprocessor communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 982
30.3.7 Parity control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 984
30.3.8 LIN (local interconnection network) mode . . . . . . . . . . . . . . . . . . . . . . 985
30.3.9 USART synchronous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 987
30.3.10 Single-wire half-duplex communication . . . . . . . . . . . . . . . . . . . . . . . . 989
30.3.11 Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 990
30.3.12 IrDA SIR ENDEC block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 992
30.3.13 Continuous communication using DMA . . . . . . . . . . . . . . . . . . . . . . . . 994
30.3.14 Hardware flow control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 996
30.4 USART interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 998
30.5 USART mode configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 999
30.6 USART registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 999
30.6.1 Status register (USART_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 999
30.6.2 Data register (USART_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002
30.6.3 Baud rate register (USART_BRR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002
30.6.4 Control register 1 (USART_CR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002