Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: LPC2129 CAN examples?

2004-04-09 by embeddednut

I didn't want to bore you with details, but now that you ask for it...

--- In lpc2000@yahoogroups.com, Charles Manning <manningc2@a...> 
> > Does anyone have an example program yet for using the CAN 
interfaces
> > on the LPC2129? FullCAN mode is what I am trying to use. I have a
> > simple example going, but reception seems to stops as soon as I
> > increase bandwidth :-(
> >
> > Peter
> 
> What do you mean by "stop":
> * Do you get a CAN-level failure (eg. bus off)
> * Do you just stop getting interrupts?

I only expect low-priority service messages on CAN (doing some 
background data logging) so I plan to use the FullCAN mode with no 
interrupts.

I set the FullCAN filters (4 of them) and once in a while (with the 
current LPC2000 performance this means about every 250 microseconds) 
check the semaphore bits of the FullCAN filters if any filter 
received something.

I use 125kbps and several CAN monitoring and analyzer tools on the 
network. This works just fine at a 1% bus load. But if I increase 
busload (and note that on the CAN side there are no errors, monitors 
and analyzers catch up and can work with every message) the 
semaphores at some point seem to "lock" and say they are always busy 
receiving something - but all 4 IDs simultanously busy at all times 
seems weird so I guess there is still some setup I am missing...

Peter

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.