UART demo

<< Click to Display Table of Contents >>

Navigation:  STM32F0 Target > Demos > UART >

UART demo

Previous pageReturn to chapter overviewNext page

Demo File: stm32f0_uart_demo.mdl

Location: waijung_<version>\targets\stm32f0_target\stm32f0\demo\uart_demo\

stm32f0_demo_uart_demo_model

Description

 

Hardware Setup

Hardware setup as below picture,

stm32f0_demo_uart_demo_hwsetup

Software Setup (Host PC)

Note: This software must be close during build the simulink model, due to it use the same COM port.

Run "Tera Term VT" program at host PC

1. At start-up menu, select "Serial" and port to communicate to the board.

stm32f0_demo_uart_demo_software_setup1

2. Select menu "Setup->Terminal...", configure as below picture.

stm32f0_demo_uart_demo_software_setup2

2. Select menu "Setup->Serial port...", configure as below picture.

stm32f0_demo_uart_demo_software_setup3

Testing

1. LED Green, blinking at 1Hz rate.

2. LED Yellow, depending on control command from UART, as following:

Key input "led1=1" then key Enter => turn on LED

Key input "led1=0" then key Enter => turn off LED

The target MCU board return "Ok" if success.

stm32f0_demo_uart_demo_software_test