Username:     
Password:     
             

Projects
Simple USART Example 1.0
 
This is a simple example project showing the use of USART2 on the extension connector with interrupts for sending and receiving

Code size: Author:mikepo
Source files included:yes Version:1.0
Use circleOS:yes (4.61) Creation date:2011-01-03 16:01:50
Hardware modification:no Modification date:2013-12-12 10:46:46
Based on the STM32 Primer:EvoPrimer
   
Downloads:2307 Views:26247
   
Vote:
Average ratings:0/5 (0 rates)

Download:    Simple-USART-Example-1.0.zip (157 KB)

Description:

USART Example project

- Serial communication is implemented fully interrupt-driven with a circular buffer for receive and transmit

- uses USART2 on the EvoPrimer Extension connector, Pin 16 (Tx) and Pin 18 (Rx)

- to test, simply connect Pin 16 and Pin 18 on the extension connector of the EvoPrimer

- when the program runs, move the joystick up or down to send text data through the serial port

- when moving the joystick up or down, the built-in red or green LEDs are lit up too

- received text is displayed at the top of the screen, using some wrap-around functionality from the FullScreen example project

- the project should be compatible with the Primer2 by making minimal code changes as indicated in the source comments

- the project uses the STM library 3.5 (same as the CircleOS 4.61)

 

Version History

* Version 1.0

- Project upgraded for use of the STM Library 3.5 with CicleOS4.61

* Version 0.8

  - initial release