neeraj sharma

Mscan configuartion in can driver

Discussion created by neeraj sharma on Apr 4, 2007
Latest reply on Feb 26, 2015 by andrea mocci
Dear friends..
 
Sorry i am asking very stupid quetion at this stage....i am working on demo board of MC9S12XDT512...i have to send my data to 0x100 ID....so i configuerd MSCAN module register like this:

#define CANIDAC_CAN0  IDAM0                  /* 4 x 16-bit filters */

#define CANIDAR0_CAN0 0x10

#define CANIDAR1_CAN0 0

#define CANIDMR0_CAN0 0xFF      /* mask all bits */

#define CANIDMR1_CAN0 0xFF      /* mask all bits */

?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:smileysurprised:ffice:smileysurprised:ffice" /> 

 

 

#define CANIDAR2_CAN0 0x10

#define CANIDAR3_CAN0 0

#define CANIDMR2_CAN0 0xFF      /* mask all bits */

#define CANIDMR3_CAN0 0xFF      /* mask all bits */

 

 

#define CANIDAR4_CAN0 0x10

#define CANIDAR5_CAN0 0

#define CANIDMR4_CAN0 0xFF      /* mask all bits */

#define CANIDMR5_CAN0 0xFF      /* mask all bits */

 

 

#define CANIDAR6_CAN0 0x10

#define CANIDAR7_CAN0 0

#define CANIDMR6_CAN0 0xFF      /* mask all bits */

#define CANIDMR7_CAN0 0xFF      /* mask all bits */

 

but when i run this configuration in can driver using cw4.5 it is not properly working.....if there s any mistake plzzz find it out for me???i configuired as a loop back mode....

:

Outcomes