文件名称:USART
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 25kb
- 下载次数:
- 0次
- 提 供 者:
- Huan****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本示例程序主要测试UART1的功能
当程序运行时,LCD屏显示:
STM32F10x DEMO
USART TEST
使用串口连接线将开发板和PC连接起来,打开PC上的串口调试软件并开启开发板连接对应的串口,
此时串口调试软件会收到:USART Example: USART-HyperTerminal communication。如果用串口
调试软件发送一个字符,开发板的LCD上显示接收到的字符串,接收满8个字符之后停止接收。
注意:波特率:9600;数据位:8(位);结束位:1(位)。
-* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
当程序运行时,LCD屏显示:
STM32F10x DEMO
USART TEST
使用串口连接线将开发板和PC连接起来,打开PC上的串口调试软件并开启开发板连接对应的串口,
此时串口调试软件会收到:USART Example: USART-HyperTerminal communication。如果用串口
调试软件发送一个字符,开发板的LCD上显示接收到的字符串,接收满8个字符之后停止接收。
注意:波特率:9600;数据位:8(位);结束位:1(位)。
-* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
USART\LCD.c
.....\LCD.h
.....\main.c
.....\readme.txt
.....\stm32f10x_conf.h
.....\stm32f10x_it.c
.....\stm32f10x_it.h
.....\USART.uvopt
.....\USART.uvproj
.....\USART_uvopt.bak
.....\USART_uvproj.bak
.....\output\release.plg
.....\......\release.sct
.....\......\release.tra
.....\output
USART
.....\LCD.h
.....\main.c
.....\readme.txt
.....\stm32f10x_conf.h
.....\stm32f10x_it.c
.....\stm32f10x_it.h
.....\USART.uvopt
.....\USART.uvproj
.....\USART_uvopt.bak
.....\USART_uvproj.bak
.....\output\release.plg
.....\......\release.sct
.....\......\release.tra
.....\output
USART