/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Date First Issued :02/05/2007
* Description : Description of the USART Example 1.
********************************************************************************
* History:
* 05/21/2007: V0.3
* 04/02/2007: V0.2
* 02/05/2007: V0.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.
*******************************************************************************/
Example description
===================
This example provides a description of how to use the USART with hardware flow
control and communicate with the Hyperterminal.
First, the USART2 sends the TxBuffer to the hyperterminal and still waiting for
a string from the hyperterminal that you must enter which must end by '\r'
character (keypad ENTER button). Each byte received is retransmitted to the
Hyperterminal.
The string that you have entered is stored in the RxBuffer array. The receive
buffer have a RxBufferSize bytes as maximum.
The USART2 is configured as follow:
- BaudRate = 115200 baud
- Word Length = 8 Bits
- One Stop Bit
- No parity
- Hardware flow control enabled (RTS and CTS signals)
- Receive and transmit enabled
- USART Clock disabled
- USART CPOL: Clock is active low
- USART CPHA: Data is captured on the second edge
- USART LastBit: The clock pulse of the last data bit is not output to
the SCLK pin
Directory contents
==================
stm32f10x_conf.h Library Configuration file
stm32f10x_it.h Interrupt handlers header file
stm32f10x_it.c Interrupt handlers source file
main.c Main program
Hardware environment
====================
- All the USART2 signals (Rx, Tx, RTS and CTS) must be connected to a DB9
connector using a RS232 transceiver.
- Connect a null-modem female/female RS232 cable between the DB9 connector
(CN5 on STM32F10x-EVAL board) and PC serial port.
- Hyperterminal configuration:
- Word Length = 8 Bits
- One Stop Bit
- No parity
- BaudRate = 115200 baud
- flow control: Hardware
How to use it
=============
In order to make the program work, you must do the following :
- Create a project and setup all your toolchain's start-up files
- Compile the directory content files and required Library files :
+ stm32f10x_lib.c
+ stm32f10x_gpio.c
+ stm32f10x_rcc.c
+ stm32f10x_nvic.c
+ stm32f10x_flash.c
+ stm32f10x_usart.c
- Link all compiled files and load your image into either RAM or Flash
- Run the example
******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE******
没有合适的资源?快使用搜索试试~ 我知道了~
基于(英蓓特)STM32V100的串口程序
共104个文件
h:27个
c:26个
o:10个
需积分: 9 6 下载量 181 浏览量
2009-01-17
10:06:39
上传
评论
收藏 395KB RAR 举报
温馨提示
基于(英蓓特)STM32V100的串口程序,学习STM32的例程
资源推荐
资源详情
资源评论
收起资源包目录
基于(英蓓特)STM32V100的串口程序 (104个子文件)
USART.axf 99KB
USART_Opt.Bak 4KB
USART_Uv2.Bak 3KB
stm32f10x_tim1.c 111KB
stm32f10x_tim.c 97KB
stm32f10x_adc.c 54KB
stm32f10x_i2c.c 44KB
stm32f10x_rcc.c 42KB
stm32f10x_usart.c 33KB
stm32f10x_can.c 32KB
stm32f10x_flash.c 31KB
stm32f10x_nvic.c 28KB
stm32f10x_spi.c 25KB
stm32f10x_dma.c 23KB
stm32f10x_it.c 22KB
stm32f10x_it.c 22KB
stm32f10x_gpio.c 21KB
stm32f10x_rtc.c 13KB
stm32f10x_pwr.c 11KB
stm32f10x_bkp.c 10KB
main.c 9KB
stm32f10x_exti.c 8KB
stm32f10x_wwdg.c 8KB
stm32f10x_systick.c 7KB
stm32f10x_lib.c 7KB
stm32f10x_iwdg.c 6KB
stm32f10x_vector.c 3KB
stm32f10x_vector.c 3KB
main.c 3KB
main.crf 47KB
stm32f10x_it.crf 44KB
stm32f10x_lib.crf 42KB
stm32f10x_usart.crf 36KB
stm32f10x_gpio.crf 33KB
stm32f10x_rcc.crf 32KB
stm32f10x_nvic.crf 28KB
stm32f10x_flash.crf 19KB
stm32f10x_it.d 659B
stm32f10x_lib.d 650B
main.d 569B
stm32f10x_usart.d 426B
stm32f10x_gpio.d 417B
stm32f10x_flash.d 365B
stm32f10x_nvic.d 357B
stm32f10x_rcc.d 349B
USART_Target 1.dep 6KB
stm32f10x_tim1.h 34KB
stm32f10x_tim.h 28KB
stm32f10x_map.h 20KB
stm32f10x_adc.h 16KB
stm32f10x_nvic.h 16KB
stm32f10x_i2c.h 15KB
stm32f10x_rcc.h 14KB
stm32f10x_gpio.h 12KB
stm32f10x_dma.h 12KB
stm32f10x_can.h 12KB
stm32f10x_usart.h 12KB
stm32f10x_flash.h 10KB
stm32f10x_spi.h 9KB
stm32f10x_exti.h 6KB
stm32f10x_conf.h 6KB
stm32f10x_conf.h 5KB
stm32f10x_pwr.h 4KB
stm32f10x_rtc.h 4KB
stm32f10x_iwdg.h 3KB
stm32f10x_bkp.h 3KB
stm32f10x_it.h 3KB
stm32f10x_it.h 3KB
stm32f10x_systick.h 3KB
stm32f10x_type.h 3KB
stm32f10x_lib.h 3KB
stm32f10x_wwdg.h 3KB
cortexm3_macro.h 2KB
USART.htm 62KB
USART.lnp 500B
stm32f10x_vector.lst 30KB
cortexm3_macro.lst 24KB
USART.map 68KB
stm32f10x_it.o 59KB
main.o 54KB
stm32f10x_lib.o 48KB
stm32f10x_usart.o 44KB
stm32f10x_gpio.o 41KB
stm32f10x_rcc.o 40KB
stm32f10x_nvic.o 39KB
stm32f10x_flash.o 24KB
stm32f10x_vector.o 5KB
cortexm3_macro.o 2KB
USART.Opt 4KB
USART.plg 576B
USART.plg 184B
cortexm3_macro.s 9KB
stm32f10x_vector.s 8KB
cortexm3_macro.s 7KB
cortexm3_macro.s 7KB
stm32f10x_startup.s 7KB
scat_flash.scat 2KB
scat_ram.scat 2KB
USART.sct 479B
USART.tra 2KB
共 104 条
- 1
- 2
资源评论
lnasdxx
- 粉丝: 0
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功