产品详情
说明: 实验器材:
战舰STM32F103开发板V3版本
实验目的:
学习串口的使用(接收与发送)
硬件资源:
1,DS0(连接在PB5)
2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面)
实验现象:
本实验,STM32通过串口1和上位机对话,STM32在收到上位机发过来的字符串(以回车换
行结束)后, 原原本本的返回给上位机。下载后,DS0闪烁,提示程序在运行,同时每
隔一定时间,通过串口1输出一段信息到电脑。
注意事项:
1,电脑端串口调试助手波特率必须是115200.
2,请使用XCOM/SSCOM串口调试助手,其他串口助手可能控制DTR/RTS导致MCU复位/程序不运行
3,串口输入字符串以回车换行结束.
4,请用USB线连接在USB_232,找到USB转串口后测试本例程.
5,P4的PA9/PA10必须通过跳线帽连接在RXD/TXD上.
(Experimental equipment: Battleship STM32F103 Development Board V3 version Purpose: Learning to use the serial port (receive and transmit) hardware resources: 1, DS0 (connected to PB5) 2, 1 serial port (baud rate: 115200, PA9/PA10 connections onboard USB to serial chip CH340 above) experimental phenomena: this experiment, STM32 through the serial port 1 and PC dialogue, STM32 after a string sent the host computer (the end with a carriage return line feed) received exactly back to the host computer. After downloading, DS0 flashes, indicating the program is running, but at a certain time, a piece of information through the serial port 1 output to the computer. Note: 1, computer terminal serial debugging assistant baud rate must be 115,200.2, please use the XCOM/SSCOM serial debugging assistant, other serial Assistant may control DTR/RTS cause MCU reset/program does not run 3, serial input string End carriage return line feed. 4, connect the USB cable in USB_232, find a USB-to-serial test)
(Experimental equipment: Battleship STM32F103 Development Board V3 version Purpose: Learning to use the serial port (receive and transmit) hardware resources: 1, DS0 (connected to PB5) 2, 1 serial port (baud rate: 115200, PA9/PA10 connections onboard USB to serial chip CH340 above) experimental phenomena: this experiment, STM32 through the serial port 1 and PC dialogue, STM32 after a string sent the host computer (the end with a carriage return line feed) received exactly back to the host computer. After downloading, DS0 flashes, indicating the program is running, but at a certain time, a piece of information through the serial port 1 output to the computer. Note: 1, computer terminal serial debugging assistant baud rate must be 115,200.2, please use the XCOM/SSCOM serial debugging assistant, other serial Assistant may control DTR/RTS cause MCU reset/program does not run 3, serial input string End carriage return line feed. 4, connect the USB cable in USB_232, find a USB-to-serial test)
文件列表:
实验4 串口实验
..............\CORE
..............\....\core_cm3.c,17273,2010-06-07
..............\....\core_cm3.h,85714,2011-02-09
..............\....\startup_stm32f10x_hd.s,15503,2011-03-10
..............\....\startup_stm32f10x_md.s,12765,2011-03-10
..............\HARDWARE
..............\........\KEY
..............\........\...\key.c,1827,2015-03-20
..............\........\...\key.h,1186,2015-03-19
..............\........\LED
..............\........\...\led.c,1298,2012-09-13
..............\........\...\led.h,638,2012-09-13
..............\keilkilll.bat,399,2011-04-23
..............\OBJ
..............\...\core_cm3.crf,3942,2015-08-31
..............\...\core_cm3.d,104,2015-08-31
..............\...\core_cm3.o,11408,2015-08-31
..............\...\delay.crf,349955,2015-08-31
..............\...\delay.d,1669,2015-08-31
..............\...\delay.o,386276,2015-08-31
..............\...\key.crf,350475,2015-08-31
..............\...\key.d,1640,2015-08-31
..............\...\key.o,387200,2015-08-31
..............\...\led.crf,349502,2015-08-31
..............\...\led.d,1601,2015-08-31
..............\...\led.o,385100,2015-08-31
..............\...\main.crf,354647,2015-08-31
..............\...\main.d,1796,2015-08-31
..............\...\main.o,391256,2015-08-31
..............\...\misc.crf,348900,2015-08-31
..............\...\misc.d,1613,2015-08-31
..............\...\misc.o,383528,2015-08-31
..............\...\startup_stm32f10x_hd.d,63,2015-08-31
..............\...\startup_stm32f10x_hd.o,6864,2015-08-31
..............\...\stm32f10x_gpio.crf,352398,2015-08-31
..............\...\stm32f10x_gpio.d,1943,2015-08-31
..............\...\stm32f10x_gpio.o,389876,2015-08-31
..............\...\stm32f10x_it.crf,348301,2015-08-31
..............\...\stm32f10x_it.d,1807,2015-08-31
..............\...\stm32f10x_it.o,383972,2015-08-31
..............\...\stm32f10x_rcc.crf,355973,2015-08-31
..............\...\stm32f10x_rcc.d,1910,2015-08-31
..............\...\stm32f10x_rcc.o,394428,2015-08-31
..............\...\stm32f10x_usart.crf,354511,2015-08-31
..............\...\stm32f10x_usart.d,1976,2015-08-31
..............\...\stm32f10x_usart.o,394016,2015-08-31
..............\...\sys.crf,349147,2015-08-31
..............\...\sys.d,1562,2015-08-31
..............\...\sys.o,385900,2015-08-31
..............\...\system_stm32f10x.crf,350034,2015-08-31
..............\...\system_stm32f10x.d,1892,2015-08-31
..............\...\system_stm32f10x.o,383872,2015-08-31
..............\...\USART.axf,299336,2015-08-31
..............\...\USART.build_log.htm,917,2015-09-15
..............\...\usart.crf,354596,2015-08-31
..............\...\usart.d,1730,2015-08-31
..............\...\USART.hex,15838,2015-08-31
..............\...\USART.htm,57282,2015-08-31
..............\...\USART.lnp,533,2015-08-31
..............\...\usart.o,389700,2015-08-31
..............\...\USART.sct,479,2015-08-31
..............\...\USART_USART.dep,27031,2015-08-31
..............\README.TXT,1591,2015-03-23
..............\STM32F10x_FWLib
..............\...............\inc
..............\...............\...\misc.h,8982,2011-03-10
..............\...............\...\stm32f10x_adc.h,21690,2011-03-10
..............\...............\...\stm32f10x_bkp.h,7555,2011-03-10
..............\...............\...\stm32f10x_can.h,27559,2011-03-10
..............\...............\...\stm32f10x_cec.h,6573,2011-03-10
..............\...............\...\stm32f10x_crc.h,2162,2011-03-10
..............\...............\...\stm32f10x_dac.h,15233,2011-03-10
..............\...............\...\stm32f10x_dbgmcu.h,3818,2011-03-10
..............\...............\...\stm32f10x_dma.h,20754,2011-03-10
..............\...............\...\stm32f10x_exti.h,6824,2011-03-10
..............\...............\...\stm32f10x_flash.h,25445,2011-03-10
..............\...............\...\stm32f10x_fsmc.h,27016,2011-03-10
..............\...............\...\stm32f10x_gpio.h,20175,2011-03-10
..............\...............\...\stm32f10x_i2c.h,30029,2011-03-10
..............\...............\...\stm32f10x_iwdg.h,3828,2011-03-10
..............\...............\...\stm32f10x_pwr.h,4383,2011-03-10
..............\...............\...\stm32f10x_rcc.h,30452,2011-03-10
..............\...............\...\stm32f10x_rtc.h,3857,2011-03-10
..............\...............\...\stm32f10x_sdio.h,21863,2011-03-10
..............\...............\...\stm32f10x_spi.h,17725,2011-03-10
..............\...............\...\stm32f10x_tim.h,52427,2011-03-10
..............\...............\...\stm32f10x_usart.h,16548,2012-09-13
..............\...............\...\stm32f10x_wwdg.h,2966,2011-03-10
..............\...............\src
..............\...............\...\misc.c,7046,2011-03-10
..............\...............\...\stm32f10x_adc.c,47201,2011-03-10
..............\...............\...\stm32f10x_bkp.c,8463,2011-03-10
..............\...............\...\stm32f10x_can.c,45103,2011-03-10
..............\...............\...\stm32f10x_cec.c,11656,2011-03-10
..............\...............\...\stm32f10x_crc.c,3347,2011-03-10
..............\...............\...\stm32f10x_dac.c,19087,2011-03-10
..............\...............\...\stm32f10x_dbgmcu.c,5149,2011-03-10
..............\...............\...\stm32f10x_dma.c,29607,2011-03-10
..............\...............\...\stm32f10x_exti.c,6959,2011-03-10
..............\CORE
..............\....\core_cm3.c,17273,2010-06-07
..............\....\core_cm3.h,85714,2011-02-09
..............\....\startup_stm32f10x_hd.s,15503,2011-03-10
..............\....\startup_stm32f10x_md.s,12765,2011-03-10
..............\HARDWARE
..............\........\KEY
..............\........\...\key.c,1827,2015-03-20
..............\........\...\key.h,1186,2015-03-19
..............\........\LED
..............\........\...\led.c,1298,2012-09-13
..............\........\...\led.h,638,2012-09-13
..............\keilkilll.bat,399,2011-04-23
..............\OBJ
..............\...\core_cm3.crf,3942,2015-08-31
..............\...\core_cm3.d,104,2015-08-31
..............\...\core_cm3.o,11408,2015-08-31
..............\...\delay.crf,349955,2015-08-31
..............\...\delay.d,1669,2015-08-31
..............\...\delay.o,386276,2015-08-31
..............\...\key.crf,350475,2015-08-31
..............\...\key.d,1640,2015-08-31
..............\...\key.o,387200,2015-08-31
..............\...\led.crf,349502,2015-08-31
..............\...\led.d,1601,2015-08-31
..............\...\led.o,385100,2015-08-31
..............\...\main.crf,354647,2015-08-31
..............\...\main.d,1796,2015-08-31
..............\...\main.o,391256,2015-08-31
..............\...\misc.crf,348900,2015-08-31
..............\...\misc.d,1613,2015-08-31
..............\...\misc.o,383528,2015-08-31
..............\...\startup_stm32f10x_hd.d,63,2015-08-31
..............\...\startup_stm32f10x_hd.o,6864,2015-08-31
..............\...\stm32f10x_gpio.crf,352398,2015-08-31
..............\...\stm32f10x_gpio.d,1943,2015-08-31
..............\...\stm32f10x_gpio.o,389876,2015-08-31
..............\...\stm32f10x_it.crf,348301,2015-08-31
..............\...\stm32f10x_it.d,1807,2015-08-31
..............\...\stm32f10x_it.o,383972,2015-08-31
..............\...\stm32f10x_rcc.crf,355973,2015-08-31
..............\...\stm32f10x_rcc.d,1910,2015-08-31
..............\...\stm32f10x_rcc.o,394428,2015-08-31
..............\...\stm32f10x_usart.crf,354511,2015-08-31
..............\...\stm32f10x_usart.d,1976,2015-08-31
..............\...\stm32f10x_usart.o,394016,2015-08-31
..............\...\sys.crf,349147,2015-08-31
..............\...\sys.d,1562,2015-08-31
..............\...\sys.o,385900,2015-08-31
..............\...\system_stm32f10x.crf,350034,2015-08-31
..............\...\system_stm32f10x.d,1892,2015-08-31
..............\...\system_stm32f10x.o,383872,2015-08-31
..............\...\USART.axf,299336,2015-08-31
..............\...\USART.build_log.htm,917,2015-09-15
..............\...\usart.crf,354596,2015-08-31
..............\...\usart.d,1730,2015-08-31
..............\...\USART.hex,15838,2015-08-31
..............\...\USART.htm,57282,2015-08-31
..............\...\USART.lnp,533,2015-08-31
..............\...\usart.o,389700,2015-08-31
..............\...\USART.sct,479,2015-08-31
..............\...\USART_USART.dep,27031,2015-08-31
..............\README.TXT,1591,2015-03-23
..............\STM32F10x_FWLib
..............\...............\inc
..............\...............\...\misc.h,8982,2011-03-10
..............\...............\...\stm32f10x_adc.h,21690,2011-03-10
..............\...............\...\stm32f10x_bkp.h,7555,2011-03-10
..............\...............\...\stm32f10x_can.h,27559,2011-03-10
..............\...............\...\stm32f10x_cec.h,6573,2011-03-10
..............\...............\...\stm32f10x_crc.h,2162,2011-03-10
..............\...............\...\stm32f10x_dac.h,15233,2011-03-10
..............\...............\...\stm32f10x_dbgmcu.h,3818,2011-03-10
..............\...............\...\stm32f10x_dma.h,20754,2011-03-10
..............\...............\...\stm32f10x_exti.h,6824,2011-03-10
..............\...............\...\stm32f10x_flash.h,25445,2011-03-10
..............\...............\...\stm32f10x_fsmc.h,27016,2011-03-10
..............\...............\...\stm32f10x_gpio.h,20175,2011-03-10
..............\...............\...\stm32f10x_i2c.h,30029,2011-03-10
..............\...............\...\stm32f10x_iwdg.h,3828,2011-03-10
..............\...............\...\stm32f10x_pwr.h,4383,2011-03-10
..............\...............\...\stm32f10x_rcc.h,30452,2011-03-10
..............\...............\...\stm32f10x_rtc.h,3857,2011-03-10
..............\...............\...\stm32f10x_sdio.h,21863,2011-03-10
..............\...............\...\stm32f10x_spi.h,17725,2011-03-10
..............\...............\...\stm32f10x_tim.h,52427,2011-03-10
..............\...............\...\stm32f10x_usart.h,16548,2012-09-13
..............\...............\...\stm32f10x_wwdg.h,2966,2011-03-10
..............\...............\src
..............\...............\...\misc.c,7046,2011-03-10
..............\...............\...\stm32f10x_adc.c,47201,2011-03-10
..............\...............\...\stm32f10x_bkp.c,8463,2011-03-10
..............\...............\...\stm32f10x_can.c,45103,2011-03-10
..............\...............\...\stm32f10x_cec.c,11656,2011-03-10
..............\...............\...\stm32f10x_crc.c,3347,2011-03-10
..............\...............\...\stm32f10x_dac.c,19087,2011-03-10
..............\...............\...\stm32f10x_dbgmcu.c,5149,2011-03-10
..............\...............\...\stm32f10x_dma.c,29607,2011-03-10
..............\...............\...\stm32f10x_exti.c,6959,2011-03-10
