/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V2.0.1
* Date : 06/13/2008
* Description : Description of the USART Printf Example.
********************************************************************************
* THE PRESENT FIRMWARE 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 FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
Example description
===================
This example shows how to retarget the C library printf function to the USART.
This implementation output the printf message on the Hyperterminal using USARTx.
USARTx can be USART1, USART2, USART3, UART4 or UART5; to select the USART
interface to be used uncomment the '#define USE_USARTx' line in 'platform_config.h'
file.
The USARTx is configured as follow:
- BaudRate = 115200 baud
- Word Length = 8 Bits
- One Stop Bit
- No parity
- Hardware flow control disabled (RTS and CTS signals)
- Receive and transmit enabled
Directory contents
==================
platform_config.h Evaluation board specific configuration file
stm32f10x_conf.h Library Configuration file
stm32f10x_it.h Interrupt handlers header file
stm32f10x_it.c Interrupt handlers
main.c Main program
Hardware environment
====================
This example runs on STMicroelectronics STM3210B-EVAL and STM3210E-EVAL evaluation
boards and can be easily tailored to any other hardware.
To select the STMicroelectronics evaluation board used to run the example, uncomment
the corresponding line in platform_config.h file.
+ The USARTx signals (Rx, Tx) must be connected to a DB9 connector using a RS232
transceiver.
+ Connect a null-modem female/female RS232 cable between the DB9 connector
and PC serial port.
+ STM3210B-EVAL
- Connect a null-modem female/female RS232 cable between the DB9 connector
(CN6 for USART1, CN5 for USART2 in the STM3210B-EVAL board)
and PC serial port.
+ STM3210E-EVAL
- Connect a null-modem female/female RS232 cable between the DB9 connector
(CN12 for USART1, CN8 for USART2 in the STM3210E-EVAL board)
and PC serial port.
- Hyperterminal configuration:
- Word Length = 8 Bits
- One Stop Bit
- No parity
- BaudRate = 115200 baud
- flow control: None
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_usart.c
+ stm32f10x_gpio.c
+ stm32f10x_rcc.c
+ stm32f10x_nvic.c
+ stm32f10x_flash.c
- Link all compiled files and load your image into target memory
- Run the example
******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32 + 24L01 + OV6620含库 (164个子文件)
stm32f10x_vector._ia 178B
stm32f10x_vector._ia 178B
STM3210E-EVAL.axf 303KB
STM3210E-EVAL.axf 119KB
Project_Opt.Bak 6KB
Project_Opt.Bak 6KB
Project_Uv2.Bak 6KB
Project_Uv2.Bak 5KB
stm32f10x_tim.c 102KB
stm32f10x_rcc.c 48KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 37KB
stm32f10x_fsmc.c 34KB
stm32f10x_usart.c 34KB
stm32f10x_can.c 31KB
system_stm32f10x.c 30KB
stm32f10x_spi.c 29KB
stm32f10x_it.c 29KB
stm32f10x_it.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_dma.c 27KB
stm32f10x_flash.c 26KB
stm32f10x_gpio.c 19KB
core_cm3.c 17KB
PTR6000.c 14KB
stm32f10x_dac.c 14KB
PTR6000.c 13KB
main.c 11KB
main.c 10KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
misc.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_wwdg.c 6KB
stm32f10x_iwdg.c 5KB
stm32f10x_dbgmcu.c 4KB
ov6620.c 4KB
ov6620.c 4KB
stm32f10x_crc.c 3KB
main.cpp 4KB
OpenGL.cpp 4KB
未命名2.cpp 0B
main.crf 151KB
main.crf 150KB
ptr6000.crf 150KB
ptr6000.crf 149KB
stm32f10x_it.crf 147KB
stm32f10x_it.crf 147KB
ov6620.crf 145KB
ov6620.crf 145KB
stm32f10x_it.d 2KB
stm32f10x_it.d 2KB
ptr6000.d 2KB
main.d 2KB
main.d 2KB
ptr6000.d 2KB
ov6620.d 2KB
ov6620.d 2KB
Project_STM3210E-EVAL.dep 10KB
Project_STM3210E-EVAL.dep 7KB
Project_STM3210B-EVAL.dep 5KB
Project_STM3210B-EVAL.dep 5KB
Project_STM3210B-EVAL RAM.dep 5KB
Project_STM3210B-EVAL RAM.dep 5KB
OpenGL2.dev 846B
OpenGL1.dev 835B
OpenGL.dev 829B
OpenGL.exe 1.23MB
OpenGL2.exe 710KB
stm32f10x.h 579KB
core_cm3.h 45KB
stm32f10x_tim.h 44KB
stm32f10x_rcc.h 28KB
STM32F10X_reg.h 28KB
stm32f10x_fsmc.h 26KB
stm32f10x_sdio.h 21KB
stm32f10x_adc.h 21KB
stm32f10x_dma.h 20KB
stm32f10x_can.h 20KB
stm32f10x_flash.h 19KB
stm32f10x_spi.h 18KB
stm32f10x_i2c.h 18KB
stm32f10x_gpio.h 17KB
stm32f10x_usart.h 16KB
stm32f10x_dac.h 13KB
misc.h 9KB
stm32f10x_bkp.h 7KB
stm32f10x_exti.h 7KB
stm32f10x_conf.h 6KB
stm32f10x_conf.h 6KB
stm32f10x_pwr.h 4KB
platform_config.h 4KB
platform_config.h 4KB
stm32f10x_it.h 4KB
stm32f10x_it.h 4KB
stm32f10x_rtc.h 4KB
stm32f10x_iwdg.h 4KB
stm32f10x_dbgmcu.h 3KB
stm32f10x_wwdg.h 3KB
共 164 条
- 1
- 2
资源评论
青葱洋溢
- 粉丝: 0
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功