Doc中放项目说明文件:这是STM32F103VC(HD)工程模板。
/***********************************************************/
第一步:在template文件夹下建立四个子文件夹,分别命名为Doc,Libraries,Project,User。
Doc:中放项目说明文件
Libraries:放需要用到的库
Project中放自己建立的工程。
User中放main等各种自己写的程序文件。
第二步:在keil中新建一个工程,工程文件放置在Project中即可。
依次添加刚刚及案例的文件Doc,Libraries,Project,User。
并在其中添加相应的C文件。
第三步:在魔术棒的C/C ++中添加头文件路径,在Define下添加宏定义USE_STDPERIPH_DRIVER,STM32F10X_HD
(注:添加USE_STDPERIPH_DRIVER是由于stm32f10x.h中有
ifdef USE_STDPERIPH_DRIVER
#include "STM32f10x_conf.h"
)
(注:添加STM32F10X_HD宏定义注明使用的产品型号)
第四步:在魔术棒的Output下勾选上:D I,C H F, B I。在Flash Download中勾选上Reset and Run。
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
描述:硬件:RS485接口 协议:Modbus RTU。功能:采用DMA方式发送数据,中断方式接收数据。注: 接收到指令之后,判断是否是相应指令而进行DMA数据发送。DMA:开启DMA,DMA发送完一帧数据后产生发送完成中断,在DMA发送完成中断中,开启USART接收中断(字节), 在USART接收中断中保存接收到的数据。注: 本程序额外开启了USART空闲中断,在空闲中断中将 USART接收中断中接收到的数据发送至串口调试助手显示并开启DMA请求
资源推荐
资源详情
资源评论
收起资源包目录
基于STM32F103的RS485通信(采用DMA方式发送数据,中断方式接收数据) (186个子文件)
Template.axf 308KB
UASRT-485.uvgui_XTrust.bak 142KB
keilkill.bat 401B
stm32f10x_tim.c 107KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
bsp_485.c 8KB
stm32f10x_bkp.c 8KB
misc.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
stm32f10x_it.c 5KB
crc16.c 4KB
stm32f10x_crc.c 3KB
main.c 2KB
bsp_led.c 1KB
stm32f10x_tim.crf 362KB
stm32f10x_can.crf 349KB
bsp_485.crf 349KB
stm32f10x_adc.crf 348KB
stm32f10x_rcc.crf 348KB
stm32f10x_flash.crf 348KB
main.crf 347KB
stm32f10x_it.crf 347KB
stm32f10x_i2c.crf 347KB
stm32f10x_usart.crf 346KB
stm32f10x_fsmc.crf 346KB
stm32f10x_sdio.crf 345KB
stm32f10x_spi.crf 345KB
stm32f10x_gpio.crf 344KB
stm32f10x_dma.crf 344KB
stm32f10x_dac.crf 343KB
stm32f10x_cec.crf 342KB
system_stm32f10x.crf 342KB
stm32f10x_bkp.crf 342KB
stm32f10x_rtc.crf 342KB
stm32f10x_pwr.crf 342KB
stm32f10x_exti.crf 341KB
bsp_led.crf 341KB
stm32f10x_wwdg.crf 341KB
misc.crf 341KB
stm32f10x_iwdg.crf 341KB
stm32f10x_crc.crf 340KB
crc16.crf 340KB
stm32f10x_dbgmcu.crf 340KB
core_cm3.crf 4KB
stm32f10x_dbgmcu.d 2KB
stm32f10x_flash.d 2KB
stm32f10x_usart.d 2KB
stm32f10x_it.d 2KB
stm32f10x_fsmc.d 2KB
stm32f10x_wwdg.d 2KB
stm32f10x_gpio.d 2KB
stm32f10x_exti.d 2KB
stm32f10x_sdio.d 2KB
stm32f10x_iwdg.d 2KB
stm32f10x_dma.d 2KB
stm32f10x_can.d 2KB
stm32f10x_dac.d 2KB
stm32f10x_crc.d 2KB
stm32f10x_spi.d 2KB
stm32f10x_i2c.d 2KB
stm32f10x_pwr.d 2KB
stm32f10x_cec.d 2KB
stm32f10x_rcc.d 2KB
stm32f10x_rtc.d 2KB
stm32f10x_tim.d 2KB
stm32f10x_adc.d 2KB
stm32f10x_bkp.d 2KB
system_stm32f10x.d 2KB
bsp_485.d 2KB
main.d 2KB
bsp_led.d 2KB
misc.d 2KB
crc16.d 2KB
core_cm3.d 111B
startup_stm32f10x_hd.d 50B
UASRT-485_Target 1.dep 97KB
stm32f10x.h 619KB
core_cm3.h 84KB
stm32f10x_tim.h 51KB
stm32f10x_rcc.h 30KB
stm32f10x_i2c.h 29KB
共 186 条
- 1
- 2
典型
- 粉丝: 96
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页