| ??? 10/02/07 22:54 Read: times |
#145271 - CMOS Responding to: ???'s previous message |
Richard Erlacher said:
If you have no guidance from the manufacturer, and no statistical evidence, how can you presume to predict what a component will do as its supply voltage falls out of specified limits? What are the underlying assumptions, and what is their source? Well, the assumption is that CMOS circuits consists of PMOS and NMOS (both of enhancement type); and the source is ... ehm... well somewhere in the misty past, the basic (you would perhaps say 101) electronic devices lectures I attended... :-) Look, this is all easy and simple, if you want, throw in a CMOS inverter into SPICE and try to wiggle VCC... I think even slightly more complicated structures such as a flipflop can be modelled relatively easily. Richard Erlacher said:
The trip voltage for the nWE lockout of the BBRAMs I used is considerably higher than 2V. Nevertheless, I observed MCU activity during RESET asserted by a MAX1232 during a very long (not measured) decay of Vcc that selects and, it would seem, ultimately corrupts the BBRAM. Oh, this is that first experiment you conducted I assume. I always wanted to hear more details about that (and, I would like you to ask you to try a couple of things, if you want to go back to this case). But, first, you say that you "observed MCU activity during RESET asserted", does this mean that you had tied up a scope both to RESET and some of the RAM signals (say, the most interesting, /CS and/or /WE), and/or VCC; and recorded this activity? Any pictures, perhaps? Richard Erlacher said: Not down at 2V; but that's not the point anyway. The point is, that when the voltage drops, you might have clocks missed (and the processor itself going crazy in any "funny" way), but once a certain path is blocked by a simple AND gate with one input tied directly to the RESET input, the output of the AND gate is predictible at ANY VCC.
CMOS is slow, but even the old 1970's 4000-series CMOS would support a 12 MHz crystal oscillator. Richard Erlacher said:
Well, unfortunately, during Vcc decay, those pump cap's are already fully charged and ready to go. As I've often pointed out, a big part of the RESET weakness is that Vcc decays too slowly. It's trivial to discharge the pumps or block their output once RESET is asserted. I'd be very surprised if the manufacturers don't do so. --- There is one more gotcha associated with the RESET problem, which was not discussed here so far; namely the undocumented "factory" modes of operation. Many of them work while RESET is asserted, others start to work based on a particular combination of signals at the moment when RESET is deasserted (have you seen appnotes or erratas stating "don't load /PSEN or /ALE capacitively to hard"?) It is of course next to impossible to estimate how these may or may not cause or influence the "RESET problem", as the manufacturers are completely reluctant to shed any light on the matter - and I have no time nor money to buy the equpment for reverse engineering of this extent, although, believe me, I would be very happy to do so. Also, I am aware, that we will never reach a definitive conclusion on the topic, which would make you perfectly happy and others perfectly safe. For this, the manufacturers' cooperation would be required; and, I can imagine the laughter in Atmel/NXP/wherever, when I'd go there and demand them to tell me what happens with their micro when I subject it to some extreme wiggling of VCC or whatever. Please note, that based on the datasheets, you are not entitled to power up the circuit at all, as, taking it strictly, there is no guarantee in the datasheets it won't get damaged while VCC is below VCCmin. JW |



