EasyManua.ls Logo

ST STM32F31xx

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
Loading...
Universal synchronous asynchronous receiver
transmitter (USART)
UM1581
544/584
DocID023800 Rev 1
The receiver set up time should be managed by software. The IrDA physical layer
specification specifies a minimum of 10 ms delay between transmission and
reception (IrDA is a half duplex protocol).
In IrDA mode, the following bits must be kept cleared:
LINEN, STOP and CLKEN bits in the USART_CR2 register.
SCEN and HDSEL bits in the USART_CR3 register.
USART_IrDAConfig()
USART_IrDACmd()
23.2.14 Initialization and Configuration functions
23.2.14.1 USART_DeInit
Function Name
void USART_DeInit ( USART_TypeDef * USARTx)
Function Description
Deinitializes the USARTx peripheral registers to their default reset
values.
Parameters
USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
Return values
None.
Notes
None.
23.2.14.2 USART_Init
Function Name
void USART_Init ( USART_TypeDef * USARTx,
USART_InitTypeDef * USART_InitStruct)
Function Description
Initializes the USARTx peripheral according to the specified
parameters in the USART_InitStruct .
Parameters
USARTx : Select the USART peripheral. This parameter can
be one of the following values: USART1 or USART2 or
USART3 or UART4 or UART5.
USART_InitStruct : pointer to a USART_InitTypeDef
structure that contains the configuration information for the
specified USART peripheral.
Return values
None.

Table of Contents

Related product manuals