本例展示了如何使用STM32的BxCAN模块来收发数据。在本例中,BxCAN模块工作在loopback模式下,即从接收端接收从发射段发出的数据,
实现自发自收。运行程序以后,首先,模块将以50Kbit/s的波特率传输一帧标准数据。等待传输完成以后,
在接受段接收并核对这帧数据,根据结果判断传输正确与否并亮起相应的LED。
随后,模块将以250Kbit/s的波特率传输一帧扩展数据,这次,接受端在收到收据以后,将产生一个中断,在中断中核对这帧数据。
也根据结果判断传输正确与否并亮起相应的LED。
运行程序,发现版上LD1和LD2亮起,这标志着2次传输都成功。
没有合适的资源?快使用搜索试试~ 我知道了~
uCOS_DEMO_CAN.rar_DEMO_ucos can
共175个文件
h:30个
o:28个
c:28个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 163 浏览量
2022-07-13
19:38:03
上传
评论
收藏 3.74MB RAR 举报
温馨提示
金牛开发板控制局域网(CAN)实验例程.
资源推荐
资源详情
资源评论
收起资源包目录
uCOS_DEMO_CAN.rar_DEMO_ucos can (175个子文件)
main.__i 290B
CAN.axf 314KB
CAN_Opt.Bak 5KB
CAN_Uv2.Bak 5KB
CAN.opt.bak 4KB
CAN.Uv2.bak 4KB
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_sdio.c 28KB
stm32f10x_dma.c 27KB
stm32f10x_flash.c 26KB
GLCD.c 19KB
stm32f10x_gpio.c 19KB
core_cm3.c 17KB
stm32f10x_dac.c 14KB
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
stm32f10x_it.c 4KB
stm32f10x_crc.c 3KB
USART.c 1KB
stm32f10x_tim.crf 342KB
stm32f10x_fsmc.crf 335KB
stm32f10x_sdio.crf 333KB
stm32f10x_rcc.crf 331KB
stm32f10x_can.crf 329KB
stm32f10x_adc.crf 329KB
stm32f10x_flash.crf 328KB
stm32f10x_i2c.crf 327KB
glcd.crf 327KB
stm32f10x_usart.crf 327KB
main.crf 326KB
stm32f10x_spi.crf 326KB
stm32f10x_gpio.crf 325KB
stm32f10x_dma.crf 324KB
stm32f10x_dac.crf 323KB
stm32f10x_bkp.crf 323KB
stm32f10x_pwr.crf 323KB
stm32f10x_rtc.crf 323KB
system_stm32f10x.crf 323KB
stm32f10x_exti.crf 322KB
stm32f10x_wwdg.crf 322KB
misc.crf 322KB
stm32f10x_iwdg.crf 321KB
stm32f10x_crc.crf 321KB
stm32f10x_it.crf 321KB
stm32f10x_dbgmcu.crf 321KB
core_cm3.crf 3KB
stm32f10x_dbgmcu.d 2KB
stm32f10x_usart.d 2KB
stm32f10x_flash.d 2KB
stm32f10x_wwdg.d 2KB
stm32f10x_iwdg.d 2KB
stm32f10x_sdio.d 2KB
stm32f10x_fsmc.d 2KB
stm32f10x_gpio.d 2KB
stm32f10x_exti.d 2KB
stm32f10x_crc.d 2KB
stm32f10x_dac.d 2KB
stm32f10x_spi.d 2KB
stm32f10x_i2c.d 2KB
stm32f10x_pwr.d 2KB
stm32f10x_tim.d 2KB
stm32f10x_bkp.d 2KB
stm32f10x_adc.d 2KB
stm32f10x_rtc.d 2KB
stm32f10x_can.d 2KB
stm32f10x_dma.d 2KB
stm32f10x_rcc.d 2KB
system_stm32f10x.d 2KB
stm32f10x_it.d 2KB
misc.d 2KB
glcd.d 2KB
main.d 2KB
core_cm3.d 101B
CAN_CAN.dep 27KB
CAN_Target 1.dep 70B
License.doc 39KB
stm32f10x.h 579KB
core_cm3.h 45KB
stm32f10x_tim.h 44KB
font.h 40KB
stm32f10x_rcc.h 28KB
stm32f10x_fsmc.h 26KB
stm32f10x_sdio.h 21KB
stm32f10x_adc.h 21KB
stm32f10x_dma.h 20KB
共 175 条
- 1
- 2
资源评论
朱moyimi
- 粉丝: 64
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功