EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #538 background imageLoading...
Page #538 background image
Universal synchronous asynchronous receiver
transmitter (USART)
UM1581
538/584
DocID023800 Rev 1
In this Mode it is advised to use the following function:
ï‚· void USART_DMACmd(USART_TypeDef* USARTx, uint16_t USART_DMAReq,
FunctionalState NewState).
ï‚· USART_DMACmd()
ï‚· USART_DMAReceptionErrorConfig()
23.2.5 Interrupts and flags management functions
This subsection provides a set of functions allowing to configure the USART Interrupts
sources, Requests and check or clear the flags or pending bits status. The user should
identify which mode will be used in his application to manage the communication: Polling
mode, Interrupt mode.
Polling Mode
In Polling Mode, the SPI communication can be managed by these flags:
1. USART_FLAG_REACK: to indicate the status of the Receive Enable acknowledge
flag
2. USART_FLAG_TEACK: to indicate the status of the Transmit Enable acknowledge
flag.
3. USART_FLAG_WUF: to indicate the status of the Wake up flag.
4. USART_FLAG_RWU: to indicate the status of the Receive Wake up flag.
5. USART_FLAG_SBK: to indicate the status of the Send Break flag.
6. USART_FLAG_CMF: to indicate the status of the Character match flag.
7. USART_FLAG_BUSY: to indicate the status of the Busy flag.
8. USART_FLAG_ABRF: to indicate the status of the Auto baud rate flag.
9. USART_FLAG_ABRE: to indicate the status of the Auto baud rate error flag.
10. USART_FLAG_EOBF: to indicate the status of the End of block flag.
11. USART_FLAG_RTOF: to indicate the status of the Receive time out flag.
12. USART_FLAG_nCTSS: to indicate the status of the Inverted nCTS input bit status.
13. USART_FLAG_TXE: to indicate the status of the transmit buffer register.
14. USART_FLAG_RXNE: to indicate the status of the receive buffer register.
15. USART_FLAG_TC: to indicate the status of the transmit operation.
16. USART_FLAG_IDLE: to indicate the status of the Idle Line.
17. USART_FLAG_CTS: to indicate the status of the nCTS input.
18. USART_FLAG_LBD: to indicate the status of the LIN break detection.
19. USART_FLAG_NE: to indicate if a noise error occur.
20. USART_FLAG_FE: to indicate if a frame error occur.
21. USART_FLAG_PE: to indicate if a parity error occur.
22. USART_FLAG_ORE: to indicate if an Overrun error occur.
In this Mode it is advised to use the following functions:
ï‚· FlagStatus USART_GetFlagStatus(USART_TypeDef* USARTx, uint16_t
USART_FLAG).
ï‚· void USART_ClearFlag(USART_TypeDef* USARTx, uint16_t USART_FLAG).
Interrupt Mode
In Interrupt Mode, the USART communication can be managed by 8 interrupt sources and
10 pending bits:
ï‚· Pending Bits:
a. USART_IT_WU: to indicate the status of the Wake up interrupt.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals