/******************** (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自带adc实现低频示波器及FFT频谱显示 (130个子文件)
USART.axf 180KB
USART_uvopt.bak 154KB
USART_uvproj.bak 17KB
stm32f10x_tim.c 128KB
stm32f10x_adc.c 57KB
stm32f10x_i2c.c 46KB
stm32f10x_rcc.c 43KB
stm32f10x_usart.c 42KB
stm32f10x_fsmc.c 41KB
stm32f10x_sdio.c 38KB
stm32f10x_spi.c 34KB
stm32f10x_dma.c 33KB
stm32f10x_flash.c 32KB
stm32f10x_can.c 31KB
stm32f10x_it.c 29KB
stm32f10x_nvic.c 28KB
stm32f10x_gpio.c 22KB
ILI93xx.c 17KB
stm32f10x_dac.c 17KB
main.c 14KB
stm32f10x_rtc.c 12KB
stm32f10x_pwr.c 11KB
stm32f10x_bkp.c 11KB
stm32f10x_lib.c 9KB
stm32f10x_exti.c 9KB
stm32f10x_wwdg.c 8KB
stm32f10x_systick.c 7KB
stm32f10x_iwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_crc.c 5KB
uart.c 3KB
main.crf 173KB
ili93xx.crf 159KB
stm32f10x_it.crf 147KB
uart.crf 146KB
stm32f10x_adc.crf 49KB
stm32f10x_usart.crf 45KB
stm32f10x_dma.crf 42KB
stm32f10x_gpio.crf 42KB
stm32f10x_rcc.crf 40KB
stm32f10x_flash.crf 38KB
stm32f10x_nvic.crf 36KB
main.d 2KB
stm32f10x_it.d 2KB
ili93xx.d 2KB
uart.d 2KB
stm32f10x_usart.d 575B
stm32f10x_gpio.d 566B
stm32f10x_adc.d 557B
stm32f10x_dma.d 557B
stm32f10x_flash.d 489B
stm32f10x_nvic.d 481B
stm32f10x_rcc.d 473B
stm32f10x_vector.d 54B
cr4_fft_64_stm32.d 50B
cortexm3_macro.d 50B
USART_Target 1.dep 16KB
font 0B
stm32f10x_tim.h 46KB
stm32f10x_map.h 28KB
fonts.h 24KB
fonts.h 24KB
table_fft.h 23KB
stm32f10x_nvic.h 19KB
stm32f10x_fsmc.h 19KB
stm32f10x_adc.h 18KB
stm32f10x_sdio.h 18KB
stm32f10x_dma.h 18KB
stm32f10x_i2c.h 16KB
font.h 16KB
stm32f10x_gpio.h 14KB
stm32f10x_rcc.h 14KB
stm32f10x_usart.h 14KB
stm32f10x_flash.h 14KB
stm32f10x_spi.h 13KB
stm32f10x_can.h 12KB
stm32f10x_dac.h 9KB
stm32f10x_bkp.h 7KB
stm32f10x_conf.h 6KB
stm32f10x_exti.h 6KB
LCD.h 5KB
platform_config.h 4KB
stm32f10x_pwr.h 4KB
stm32f10x_it.h 4KB
stm32f10x_rtc.h 4KB
stm32f10x_iwdg.h 3KB
stm32f10x_type.h 3KB
stm32f10x_systick.h 3KB
stm32f10x_lib.h 3KB
stm32f10x_dbgmcu.h 3KB
stm32_dsp.h 3KB
stm32f10x_wwdg.h 3KB
cortexm3_macro.h 2KB
stm32f10x_crc.h 2KB
uartGetPut.h 524B
uart.h 358B
USART.hex 51KB
USART.htm 94KB
ExtDll.iex 19B
USART.lnp 566B
共 130 条
- 1
- 2
astwyg
- 粉丝: 3
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页