EmbeddedRelated.com
Forums

LPC BASIC CAN ?

Started by balabh2000 July 6, 2004
Hi

i have been working on the FULL CAN code provided in the files
section as an example. I am workin on MCB2100 boards and was
wondering if it was possible to configure the same in BASIC CAN mode.

If i just try disabling the global acceptance filter using the
AFMR register the reciever interrupt does not seem to be working at
all.

The LPC2129 user manual
(http://www.semiconductors.philips.com/acrobat/usermanuals/UM_LPC21XX_
LPC22XX_2.pdf)also refers to enteries in the table of standard
identifier range table but some code segment would have been
extremely useful.

kindly advise. any help would be greatly appreciated

Thanx



An Engineer's Guide to the LPC2100 Series

NOTE: I have not tried this, just trying to provide a quick "push
into the right direction"...

--- In , "balabh2000" <balabh2000@y...> wrote:
> i have been working on the FULL CAN code provided in the files
> section as an example. I am workin on MCB2100 boards and was
> wondering if it was possible to configure the same in BASIC CAN
mode.
>
> If i just try disabling the global acceptance filter using
the
> AFMR register the reciever interrupt does not seem to be working at
> all.
>
> The LPC2129 user manual
>
(http://www.semiconductors.philips.com/acrobat/usermanuals/UM_LPC21XX_
> LPC22XX_2.pdf)also refers to enteries in the table of standard
> identifier range table but some code segment would have been
> extremely useful.

AFAIK the receive acceptance filters always have to be used. However,
those are very flexible and instead of selecting specific, single
messages to receive you can also specify ranges - so the range you
are probably looking for is something like 0x000 to 0x7FF to receive
all standard CAN messages.

The example you mentioned places ZERO entries into the "Standard
Group" section of the table and several entries into the "Standard
Individual Section".

You would need to make one entry in the "Standard Group" section
specifying the lower and the upper bound of what you want to receive.
The entry format is described in Figure 36 "Entry in Standard
Identifier Range Table" in the User Manual.

Olaf
Tutor at ESAcademy




> AFAIK the receive acceptance filters always have to be used.
However,
> those are very flexible and instead of selecting specific, single
> messages to receive you can also specify ranges - so the range you
> are probably looking for is something like 0x000 to 0x7FF to
receive
> all standard CAN messages.

If you set AFMR = 0x03, you can receive all messages. AFMR = 0x03
means that Acceptance Filter is not operational (AccOff) and All Rx
messages are accepted on enabled CAN controllers (AccBP) (p. 207 of
the User's Manual).

JT