EmbeddedRelated.com
Forums

How to set Identifier Accepance Filter register for MSCAN on MC9S12DP512

Started by Gurumurthy September 16, 2006
Hi all...

I have two messages with ID 0x100 and 0x101. What all i need
to set in Acceptance filter register and acceptance mask register?
Can anyone explain with an example?

I am using CAN in standard forat(11 bit identifier) and 4 16
bit filter mode.

Thanks in advance

Gurumurthy
Hi,

I think there are plenty of appnotes floating around for setting up
acceptance filters/mask (my own code has too many dependencies to be
readily useful) but one feature little touched on is the usefulness of
the IDHIT bits inside the CANIDAC register. If you set one filter for
0x100 and another for 0x101 you can simply direct rx traffic by
inspecting these 3 bits.

-rob

Gurumurthy wrote:
> Hi all...
>
> I have two messages with ID 0x100 and 0x101. What all i need
> to set in Acceptance filter register and acceptance mask register?
> Can anyone explain with an example?
>
> I am using CAN in standard forat(11 bit identifier) and 4 16
> bit filter mode.
>
> Thanks in advance
>
> Gurumurthy
Hi rob,

Thanks for the info. But my question is using Acceptance
filter regisgters how many maximum messages i can have for standard
frame?

--- In 6..., Rob Milne wrote:
>
> Hi,
>
> I think there are plenty of appnotes floating around for setting
up
> acceptance filters/mask (my own code has too many dependencies to
be
> readily useful) but one feature little touched on is the
usefulness of
> the IDHIT bits inside the CANIDAC register. If you set one filter
for
> 0x100 and another for 0x101 you can simply direct rx traffic by
> inspecting these 3 bits.
>
> -rob
>
> Gurumurthy wrote:
> >
> >
> > Hi all...
> >
> > I have two messages with ID 0x100 and 0x101. What all i need
> > to set in Acceptance filter register and acceptance mask
register?
> > Can anyone explain with an example?
> >
> > I am using CAN in standard forat(11 bit identifier) and 4 16
> > bit filter mode.
> >
> > Thanks in advance
> >
> > Gurumurthy
>
Hi,

The acceptance filter/mask system allows you to confine reception to no
identifier, all identifiers or anything in between. You need to spend
time reading the docs and then conduct experiments to prove out your
understanding. There are no shortcuts to good engineering.

-rob

Gurumurthy wrote:

>
> Hi rob,
>
> Thanks for the info. But my question is using Acceptance
> filter regisgters how many maximum messages i can have for standard
> frame?
>
> --- In 68HC12@yahoogroups. com

































Thank you Rob,

You are right there is no shortcut to good engineering.
I will go through the documents first and then conduct experiments
on it... I will get back to you with the result..

Thanks once again

--- In 6..., Robert Milne wrote:
>
> Hi,
>
> The acceptance filter/mask system allows you to confine reception
to no
> identifier, all identifiers or anything in between. You need to
spend
> time reading the docs and then conduct experiments to prove out
your
> understanding. There are no shortcuts to good engineering.
>
> -rob
>
> Gurumurthy wrote:
>
> >
> > Hi rob,
> >
> > Thanks for the info. But my question is using Acceptance
> > filter regisgters how many maximum messages i can have for
standard
> > frame?
> >
> > --- In 68HC12@yahoogroups. com