嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
实验器材:
战舰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上.
└─实验4 语音控制串口4
└─实验4 串口实验
│ keilkilll.bat
│ README.TXT
│
├─CORE
│ core_cm3.c
│ core_cm3.h
│ startup_stm32f10x_hd.s
│
├─HARDWARE
│ ├─KEY
│ │ key.c
│ │ key.h
│ │
│ ├─LED
│ │ led.c
│ │ led.h
│ │
│ └─UART4
│ uart4.c
│ uart4.h
│
├─OBJ
│ core_cm3.crf
│ core_cm3.d
│ core_cm3.o
│ delay.crf
│ delay.d
│ delay.o
│ key.crf
│ key.d
│ key.o
│ led.crf
│ led.d
│ led.o
│ main.crf
│ main.d
│ main.o
│ misc.crf
│ misc.d
│ misc.o
│ startup_stm32f10x_hd.d
│ startup_stm32f10x_hd.o
│ stm32f10x_gpio.crf
│ stm32f10x_gpio.d
│ stm32f10x_gpio.o
│ stm32f10x_it.crf
│ stm32f10x_it.d
│ stm32f10x_it.o
│ stm32f10x_rcc.crf
│ stm32f10x_rcc.d
│ stm32f10x_rcc.o
│ stm32f10x_usart.crf
│ stm32f10x_usart.d
│ stm32f10x_usart.o
│ sys.crf
│ sys.d
│ sys.o
│ system_stm32f10x.crf
│ system_stm32f10x.d
│ system_stm32f10x.o
│ uart4.crf
│ uart4.d
│ uart4.o
│ USART.axf
│ USART.build_log.htm
│ usart.crf
│ usart.d
│ USART.hex
│ USART.htm
│ USART.lnp
│ usart.o
│ USART.sct
│ USART_USART.dep
│
├─STM32F10x_FWLib
│ ├─inc
│ │ misc.h
│ │ stm32f10x_adc.h
│ │ stm32f10x_bkp.h
│ │ stm32f10x_can.h
│ │ stm32f10x_cec.h
│ │ stm32f10x_crc.h
│ │ stm32f10x_dac.h
│ │ stm32f10x_dbgmcu.h
│ │ stm32f10x_dma.h
│ │ stm32f10x_exti.h
│ │ stm32f10x_flash.h
│ │ stm32f10x_fsmc.h
│ │ stm32f10x_gpio.h
│ │ stm32f10x_i2c.h
│ │ stm32f10x_iwdg.h
│ │ stm32f10x_pwr.h
│ │ stm32f10x_rcc.h
│ │ stm32f10x_rtc.h
│ │ stm32f10x_sdio.h
│ │ stm32f10x_spi.h
│ │ stm32f10x_tim.h
│ │ stm32f10x_usart.h
│ │ stm32f10x_wwdg.h
│ │
│ └─src
│ misc.c
│ stm32f10x_adc.c
│ stm32f10x_bkp.c
│ stm32f10x_can.c
│ stm32f10x_cec.c
│ stm32f10x_crc.c
│ stm32f10x_dac.c
│ stm32f10x_dbgmcu.c
│ stm32f10x_dma.c
│ stm32f10x_exti.c
│ stm32f10x_flash.c
│ stm32f10x_fsmc.c
│ stm32f10x_gpio.c
│ stm32f10x_i2c.c
│ stm32f10x_iwdg.c
│ stm32f10x_pwr.c
│ stm32f10x_rcc.c
│ stm32f10x_rtc.c
│ stm32f10x_sdio.c
│ stm32f10x_spi.c
│ stm32f10x_tim.c
│ stm32f10x_usart.c
│ stm32f10x_wwdg.c
│
├─SYSTEM
│ ├─delay
│ │ delay.c
│ │ delay.h
│ │
│ ├─sys
│ │ sys.c
│ │ sys.h
│ │
│ └─usart
│ usart.c
│ usart.h
│
└─USER
│ JLinkSettings.ini
│ main.c
│ startup_stm32f10x_hd.lst
│ stm32f10x.h
│ stm32f10x_conf.h
│ stm32f10x_it.c
│ stm32f10x_it.h
│ system_stm32f10x.c
│ system_stm32f10x.h
│ USART.map
│ USART.uvguix.Administrator
│ USART.uvoptx
│ USART.uvprojx
│
└─DebugConfig
USART_STM32F103ZE_1.0.0.dbgconf