Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/14/06 17:33
Read: times


 
#120265 - to be dramatic
Responding to: ???'s previous message
I have experimented with all kinds of noise and interference to test how to make a micro to run ill. And I can tell you, that there were numberous situations, where the watchdog did not do the right job!! Yes, it can even decrease the safety, when stupid engineers think they can neglect needed decoupling and filtering measures, because they have this wonderful watchdog.

So, how to proceed? I don't rely on the benefits of this wonderful watchdog. I prefer to enhance the filtering, so that a watchdog will never be "needed". On the other hand, I use a watchdog, of course, but only to calm my boss...


to be dramatic let us discuss pacemaker examples

1) A cosmic event makes the memory location that stores pulse rate change from 63 to 31. There is no way ANY watchdog will detect that, so with 'usual' code the poor sod will get some jolts that he does not need. Now with good solid code code nothing would happen till 3 similar readings of the pulse were obtained and the disturbed pulse rate storage location would have no effect.

2) A cosmic event makes the program counter jump to some unrelated place in memory (maybe blowing the stack) can a watchdog catch that? Maybe.

3) a programming error makes the pacemaker miss kicking the heart when it needs it, that is reason for a lawsuit and maybe, just maybe, the generator of 'usual' code will be severely punished. Of course, unfortunately he will find another place to continue generating 'usual' code.

So, the watchdog is not a panacea, but it WILL catch some things.

The morale of this: a watchdog is good to have, it is a safety feature but can never be the safety feature, only good solid code can make safety the best it can be.

Erik

PS writing the above I recall: I have see ever so many 'averaging' procedures that miss the obvious. If, while avaraging you get a crazy read, throw it out.

List of 30 messages in thread
TopicAuthorDate
processor fault            01/01/70 00:00      
   Use Watchdog            01/01/70 00:00      
      Not necessarily            01/01/70 00:00      
         Spec of AT89S51            01/01/70 00:00      
            Still too specific            01/01/70 00:00      
   There is no one such thing!            01/01/70 00:00      
   Undefined state !            01/01/70 00:00      
      processor fault            01/01/70 00:00      
         RTFM            01/01/70 00:00      
            reset            01/01/70 00:00      
               Read the data sheet            01/01/70 00:00      
                  WD with indication            01/01/70 00:00      
                     I, too, can visualize some exotic conditions where            01/01/70 00:00      
                        to bite or not to bite            01/01/70 00:00      
                           the REAL issue            01/01/70 00:00      
                              Marketing trick            01/01/70 00:00      
                                 to be dramatic            01/01/70 00:00      
                                    It is helpful, of course.            01/01/70 00:00      
                                 let's put it this way:            01/01/70 00:00      
                           I doubt that it's 10 transistors ...            01/01/70 00:00      
                              the context            01/01/70 00:00      
                     Can you name an example of this sort?            01/01/70 00:00      
                  reset            01/01/70 00:00      
                     AT89S51 WD            01/01/70 00:00      
         How do you propose to make the processor "illumina            01/01/70 00:00      
   Software hang-up, hardware lock-up            01/01/70 00:00      
      How about redundancy?            01/01/70 00:00      
         paranoia            01/01/70 00:00      
            ... but it WILL detect a processor fault!            01/01/70 00:00      
               The ultimate misconception            01/01/70 00:00      

Back to Subject List