N V

CAN can not accept the specified ID

Discussion created by N V on Apr 27, 2017
Latest reply on May 4, 2017 by N V

Hi,

I am using the LPC11C24 CAN communication ,CAN can not accept the specified ID,My example comes from the official,Some of my examples are as follows:

 

msg_obj.msgobj = 1;
msg_obj.mode_id = 0x400 | CAN_MSGOBJ_EXT;  //CAN_MSGOBJ_EXT=0x20000000
msg_obj.mask = 0x1FFFFFFF;
LPC_CCAN_API->config_rxmsgobj(&msg_obj);
while (1) {
__WFI(); /* Go to Sleep */
}

 

CAN can accept 0x 80000400,0x 60000400,0x40000400,0x20000400 0x400 ID.I want to accept only the specified 0x400 Extended frame ID.what should I do?

Outcomes