Keil Logo Arm Logo

STM32 USART (polling mode) Example

The STM32 USART_Pol example program shows how to configure and use the USART1 of STMicroelectronics STM32F103xx microcontroller in polling mode.

The configuration of USART1 is 9600 Baud, 8 data bits, 1 stop bit, no parity and no flow control. Retargetting is used to read a character over the serial input and to print out a string to the serial output.

The configuration of the clocks and USART is done using the Configuration Wizard in file STM32_Init.c.

Two µVision targets are available:

  • Simulator where the program runs in the software simulator.
  • MCBSTM32 where the program runs from internal Flash located on the microcontroller.

The example is tested with the Keil Evaluation Board MCBSTM32.

STM32_USART_POL.ZIP (31K)
Thursday, February 12, 2009

Estimated File Download Time:
< 10 Seconds: 56Kb Modem
< 10 Seconds: 128Kb ISDN
< 10 Seconds: T1/Broadband

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.