LPC Xpresso 11c24 CAN extended not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC Xpresso 11c24 CAN extended not working

537 次查看
sridharan
Contributor II

Hi,

 

I am using LPCXpresso (11c24) board for CAN communication, I am able to transmit standard ID , however when I try to transmit extended ID ,I find no response, I am using the demo sample codes . Can any one help . PFA

 

Below is the code snip where I suspect demo code problem. 

 

id = id & _EXT_FORMAT;

LPC_CAN->IF1_MSK1 = (id & _MSK1_MSK);
LPC_CAN->IF1_MSK2 = (id >> 16) | _MSK2_MXTD;

LPC_CAN->IF1_ARB1 = (id & _ARB1_ID);
LPC_CAN->IF1_ARB2 = (id >> 16) | _ARB2_XTD | _ARB2_MSGVAL;

Original Attachment has been moved to: CAN-Stepper-LPC11C24-master.zip

Original Attachment has been moved to: CAN.zip

标签 (1)
0 项奖励
1 回复

369 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi sridharan TechM,

I've replied in the CAN Extended ID not able to receive
Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励