Yahoo Groups archive

Lpc2000

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

Message

CAN Bus Real Time Conditions

2006-03-05 by Dietmar

Dear Ladies and Gentlemen,

I have to develop a very safe CAN Bus application that have to resume 
its work after a short circuit on the CAN Bus in real time.

I have developed a CAN Bus Application with up to 40 CAN Bus Members 
on a Line, and it works very very well. All Controllers are Philips 
LPC2129. A few days ago, I simulated a short circuit on the CAN Bus 
lines with a duration of a few Milliseconds. All the CAN Controllers 
went into "Bus Off" State because the Transmission did not work for 
many attempts, and after them, the whole Bus was dead, also the CAN 
Analyzer with its test data (CANalyzer from Vector Informatic) that 
was on the Bus too.

The Philips LPC21xx Data Sheet tells me that after a "Bus Off" 
Condition I have to Reset the RM bit in CANMod and the CAN Controller 
will restart its work. The RXERR and TXERR Counters are in default 
state after "Bus Off", but it does not work.
May I initialize all the CAN Registers with Reset Values by Software?

At this time, the only way to re-activate the CAN Controller is to 
Reset the µC (LPC2129) by a Watchdog Reset when detect RM = 1. But 
the Delay to Restart the CAN Bus after Watchdog-Reset is too long for 
my Application with this Method.

Is there anybody who has an Idea to Restart the CAN Bus after 
the "Bus Off" Condition with very short delay in Real Time?

Is there a real way to prevent the CAN Controller from "Bus Off" 
Condition?

What have I to do other than clear the RM bit in CANMOD?

Greetings

Dietmar Wengler

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.