公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lygeneral
Level 1
Level 1
5 replies posted 5 questions asked First question asked
CAN接收中断函数怎么写,有例程吗
0 点赞
14 回复数
jian1
Level 5
Level 5
10 solutions authored 5 solutions authored First solution authored
你用那个MCU?TC27X系列的,这个论坛就有啦,你搜索一下。
0 点赞
lygeneral
Level 1
Level 1
5 replies posted 5 questions asked First question asked
有用了illd库的can中断代码吗,只要tricore系列的可以参考就行
0 点赞
孤星
Level 4
Level 4
First solution authored First like received 100 replies posted
MCU都没告知,怎么回答。。。新人的话最好先把论坛里的帖子都看一遍,会大有受益。
0 点赞
LED2013
Level 5
Level 5
First like received 1000 replies posted 750 replies posted
比如,can数据接收流程 cpu : stm32 用的是cpu内部的CAN控制器,用的是库函数编程。可借鉴CAN接收中断资料
0 点赞
青柠笑笑
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted
论坛里有资料
0 点赞
haha12123
Level 4
Level 4
750 replies posted 500 replies posted 250 replies posted
可以在论坛里面找找看
0 点赞
郝_
Level 4
Level 4
100 replies posted 50 replies posted 25 replies posted
iLLD demo例程通用 可以参考
0 点赞
4e9in4
Level 3
Level 3
50 replies posted 25 replies posted 10 replies posted
CAN接收中断illd应该没有例程的,需要自己写
0 点赞
4e9in4
Level 3
Level 3
50 replies posted 25 replies posted 10 replies posted
首先需要使能CAN节点的消息对象的接收中断,然后设置它的中断线指针, canMsgTranObjConfig.rxInterrupt.enabled= TRUE; canMsgTranObjConfig.rxInterrupt.srcId=IfxMultican_SrcId_2; IfxMultican_Can_MsgObj_init(&g_MulticanBasic.drivers.SrcNode.canRecMsgObj, &canMsgTranObjConfig);
0 点赞
4e9in4
Level 3
Level 3
50 replies posted 25 replies posted 10 replies posted
然后需要将中断线指针指向设好的中断号 src = IfxMultican_getSrcPointer(&MODULE_CAN,IfxMultican_SrcId_2); IfxSrc_init(src, ISR_PROVIDER_MultiCAN_2, ISR_PRIORITY_MultiCAN_2); IfxSrc_enable(src);
0 点赞
4e9in4
Level 3
Level 3
50 replies posted 25 replies posted 10 replies posted
我贴上去的是TC234的CAN中断接收程序
0 点赞
ZERO_GO
Level 6
Level 6
5 sign-ins Welcome!
学习一下
0 点赞
阳东
Level 5
Level 5
10 comments on blog 5 comments on blog First comment on blog
学习一下
0 点赞
liliWinner
Level 6
Level 6
500 replies posted 250 replies posted 100 replies posted
mark
0 点赞