AnsweredAssumed Answered

CAN filter

Question asked by Francesco Stilo on May 21, 2009
Latest reply on May 25, 2009 by Francesco Stilo

I use MC9S08DZ60 and I must make a CAN application, but I am not able to do the can filter.

I set the CANIDAC register fo two filter of 32 bit, the CANIDAR0/3 registers with my ID that I want to filter and the CANIDMR0/3 with the mask, how it is written on data sheets, but it does not function

 

I write the example that I am doing

CANIDAC=0x00  obviously written with its procedure

 

CANIDAR0=0x18

CANIDAR1=0xFF

CANIDAR2=0x00

CANIDAR3=0x00

 

CANIDMR0=0x00

CANIDMR0=0x00

CANIDMR0=0xff

CANIDMR3=0xff 

 With this mask I want to applicate the filter only at the four initial byte and the other are do not care.

 

Can someone help me? Does someone know what I make the mistake?

Thanks.

Bye

Outcomes