can通信工程

所属分类:Windows编程
开发工具:WINDOWS
文件大小:7876KB
下载次数:6
上传日期:2017-12-02 17:11:06
上 传 者刘其东
说明:  正点原子的can通信历程,简单的收发程序,只使用了can1
(CAN communication by STM32F407 CAN1,it can send and receive)

文件列表:
can通信工程\CAN通信_f103\app\adc\adc.c (5587, 2013-12-21)
can通信工程\CAN通信_f103\app\adc\adc.h (367, 2013-12-21)
can通信工程\CAN通信_f103\app\adctemp\adctemp.c (3307, 2014-03-13)
can通信工程\CAN通信_f103\app\adctemp\adctemp.h (268, 2013-12-26)
can通信工程\CAN通信_f103\app\adx345\adx345.c (7550, 2014-03-28)
can通信工程\CAN通信_f103\app\adx345\adx345.h (841, 2014-03-28)
can通信工程\CAN通信_f103\app\audio\hc4052.c (1346, 2014-01-02)
can通信工程\CAN通信_f103\app\audio\hc4052.h (523, 2014-01-02)
can通信工程\CAN通信_f103\app\beep\beep.c (1561, 2013-12-11)
can通信工程\CAN通信_f103\app\beep\beep.h (154, 2013-12-11)
can通信工程\CAN通信_f103\app\bmp\bmp.c (5728, 2014-03-08)
can通信工程\CAN通信_f103\app\bmp\bmp.h (1146, 2013-11-11)
can通信工程\CAN通信_f103\app\can\can.c (8621, 2017-11-09)
can通信工程\CAN通信_f103\app\can\can.h (496, 2014-03-15)
can通信工程\CAN通信_f103\app\dma\dma.c (2507, 2014-03-21)
can通信工程\CAN通信_f103\app\dma\dma.h (252, 2014-03-21)
can通信工程\CAN通信_f103\app\eeprom\eeprom.c (15018, 2014-03-29)
can通信工程\CAN通信_f103\app\eeprom\eeprom.h (620, 2014-03-29)
can通信工程\CAN通信_f103\app\fatapp\myFatApp.c (2953, 2014-04-11)
can通信工程\CAN通信_f103\app\fatapp\myFatApp.h (440, 2014-03-07)
can通信工程\CAN通信_f103\app\FATFS\cc936.c (724227, 2013-10-17)
can通信工程\CAN通信_f103\app\FATFS\diskio.c (5999, 2014-04-11)
can通信工程\CAN通信_f103\app\FATFS\diskio.h (2804, 2013-01-23)
can通信工程\CAN通信_f103\app\FATFS\ff.c (147958, 2013-01-24)
can通信工程\CAN通信_f103\app\FATFS\ff.h (13063, 2013-01-24)
can通信工程\CAN通信_f103\app\FATFS\ffconf.h (7732, 2014-03-26)
can通信工程\CAN通信_f103\app\FATFS\integer.h (856, 2010-04-24)
can通信工程\CAN通信_f103\app\flash\flash.c (10245, 2014-04-10)
can通信工程\CAN通信_f103\app\flash\flash.h (1157, 2015-12-17)
can通信工程\CAN通信_f103\app\fm\rda5820.c (11612, 2014-03-30)
can通信工程\CAN通信_f103\app\fm\rda5820.h (2314, 2014-03-29)
can通信工程\CAN通信_f103\app\gui\asciicode.h (15811, 2014-03-22)
can通信工程\CAN通信_f103\app\gui\gui.c (13449, 2016-05-24)
can通信工程\CAN通信_f103\app\gui\gui.h (1598, 2016-05-24)
can通信工程\CAN通信_f103\app\iic\iic.c (4823, 2013-12-24)
can通信工程\CAN通信_f103\app\iic\iic.h (763, 2013-12-24)
can通信工程\CAN通信_f103\app\key\key.c (9598, 2014-04-04)
can通信工程\CAN通信_f103\app\key\key.h (936, 2017-11-09)
can通信工程\CAN通信_f103\app\lcd\lcd_driver.c (7775, 2016-07-28)
can通信工程\CAN通信_f103\app\lcd\lcd_driver.h (1060, 2016-03-04)
... ...

实验器材: 探索者STM32F4开发板 实验目的: 学习CAN总线的使用. 硬件资源: 1,DS0(连接在PF9) 2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面) 3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A6接RS) 4,按键KEY0(PE4)/KEY_UP(PA0) 5,CAN(STM32自带的CAN控制器,连接在PA11/PA12) 实验现象: 本实验代码,可以让STM32F4的CAN工作在环回模式/普通模式下,通过KEY_UP按键切换模式。默认是环回模 式,在环回模式下,按下KEY0,则可以在LCD模块上面看到自发自收的消息。如果是普通模式,那么需要两 个开发板,并且用线将两个开发板的CAN接口连接起来,同时需要设置板上的P11端口连接在CAN上面,在普 通模式下,按下一个开发板的KEY0,可以在另外一个开发板上看到收到的信息。 注意事项: 1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源). 2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!! 3,P11跳线帽的连接状态必须是:CAN_TX连接PA12,CAN_RX连接PA11. 4,CAN接口的CANL/CANH线不能接错,必须CANL接CANL,CANH接CANH. 正点原子@ALIENTEK 2014-10-25 广州市星翼电子科技有限公司 电话:020-38271790 传真:020-36773971 购买:http://shop62103354.taobao.com http://shop62057469.taobao.com 公司网站:www.alientek.com 技术论坛:www.openedv.com

近期下载者

相关文件


收藏者