Keil Logo

STM32 USART (interrupt mode) Example

The STM32 USART_Irq example program shows how to configure and use the USART1 of STMicroelectronics STM32F103xx microcontroller in interrupt driven 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. A buffer handling is implemented for transmit / receive data.

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_IRQ.ZIP (32K)
Thursday, February 12, 2009
  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.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.