|
Lots of interesting ideas in this (by now fairly general) discussion. Some thoughts. Watchdogs are not the only form of 'fail safe' mechanism available. For example, EMI may be a source of problems, for which the watchdog timer is not necessarily the best or only solution. In this case, one impact of EMI can be corruption of the program counter, which has an impact (in some circumstances) like a 'random' GOTO statement. Filling blank areas of memory with 'NOP' instructions, followed by an appropriate error handler, is a better solution than relying on a watchdog in these circumstances. Watchdogs are mainly useful (as a last resort) for dealing with situations where the code gets 'locked' and no local timeout mechanism has solved the problem. There is little point in using basic watchdog hardware to handle xtal failures. In this case, you may need to rely on a 'backup' processor. One way to do this is to have the backup processor monitoring activity on the main processor: in effect, the backup processor acts as a glorified watchdog timer. Of course, if the backup processor also has an xtal-based clock, you may not solve the problem (for example, if the board containing both processors has been dropped, both xtals may be damaged). In this case, it may be more appropriate to drive the backup processor using a ceramic resonator. This will not give accurate timing, but may let you 'limp home'. Michael. +==================================+ Michael J. Pont http://www.le.ac.uk/engineering/mjp9 +==================================+ ----- Original Message ----- From: "Tony Papadimitriou" <> To: <> Sent: Wednesday, June 05, 2002 6:03 PM Subject: Re: [m68HC11] Thinking... > ----- Original Message ----- > From: Roberto G Berner <> > To: <> > Sent: Wednesday, June 05, 2002 7:24 PM > Subject: Re: [m68HC11] Thinking... > > The purpose of an external watch-dog is to cover the chance in which > de MPU > > stops clocking ( if it ever happens - who knows... ). The external > circuit > > must then take care of at least the RESET line. In some of my > boards, this > > external circuit also switches power off and then on again, > partially or > > totally. Remember that many circuit failures depend on EMI and > latch-up. If > > latch-up is the source of the problem, power should be removed. Of > course > > gentlemen, all this brain-storming is strongly application > dependent. > > I agree on what you say. However, I thought we wanted something less > simplistic than just a reset or power-cycling. Besides, in the HC11, > a reset like the one you describe can be achieved with the CMF reset > which is bidirectional and, therefore, can reset other parts of the > circuit as well. The CMF actually starts its job when clocks stop or > slow-down dramatically (it uses an internal RC circuit). Now, it too > may theoretically misbehave under severe conditions, but so can the > external watchdog, so it's a matter of statistics from here on. > > The real problem as I see it is when the failure needs some action > like shutting down a motor in a controlled way (not just power-down), > returning it to a safe position, etc. This requires some code > execution in most cases. So, the MCU must be able to come up running, > or an alternate MCU takes control. If it is something too extreme, > however, it can be considered a total disaster that no amount of > fail-safe measures can prevent or correct. > > > Roberto Guillermo Berner |
|
|