| ??? 11/06/07 20:38 Read: times Msg Score: +1 +1 Informative |
#146700 - reset pulses? Responding to: ???'s previous message |
Farshad Mohajeri said:
Well, I am using an external watchdog since I don't trust much the internal WD. There is no way for the CPU to externally disable the watchdog. While I am not an absolute fan of watchdogs and am convinced that their usage must be considered and that NOT using one IS an option, I would also prefer external watchdog over the mostly flawed internal ones, where security is more important than cost. After all, I've expressed already my credo in this regard in more than sufficient (and maybe more than bearable) length in the "reset" pdf (which I still did not finish). And, Erik, a BADLY WRITTEN runaway code may kick an external dog as easily as a BADLY WRITTEN runaway code may kick the internal dog. Besides, if you strive for perfections, have you heard about window triggered watchdogs? Farshad Mohajeri said:
In few cases I had chance to analyze the circuit with an oscilloscope and to my surprise while the Reset Pin(9) was being bitten by continuous external WD pulses (duty cycle of 10ms) the CPU was refusing to restart! What is the duration of the reset pulse, then? And, have you verified that the clock is running? (on ALE, perhaps, or, with sufficient care (high impedance probe) directly on the crystal pins) Farshad Mohajeri said:
I think it is a specific problem with ATMEL where under certain conditions the internal reset logic fails to monitor external reset requests. While I don't claim there is no internal flaw in the logic in the said mcu, there are certainly also mechanisms how to kick a modern CMOS to - temporary or permanent - death. If, as a consequence of some strong pulse, some of the internal CMOS gates latches up (do you know this effect, Farshad?), that gate cannot perform its logic function anymore, and stays dead - either until power cycle, or permanently. Just a remark - funnily, in CMOS you might fry _some_ of the transistors inside (in any way), and the logic (or most of it) may function normally, although for example the power consumption will be elevated, and such "half-dead" chip is certainly more prone to various obscure errors than a fresh one... JW PS. I am eagerly waiting Kai Klaas's comment, IIRC he mentioned subjecting Atmel '51s to strong EMI... |



