??? 08/19/07 15:19 Read: times |
#143403 - I have to agree ... Responding to: ???'s previous message |
Erik Malund said:
..... will, indeed tell you that things are going awry.
However, what guarantee do you have that the uC will not emit any signals when 'going dead' ? Nobody will have any trouble to stop writing on an early power fail interrupt, but, as far as I can see, the REAL problem is "what comes out of the micro when it goes into reset". My point, exactly, and particularly in the case where Vcc decays slowly enough to allow the errant MCU to misbehave for a long time! I'd even suggest that instead of read after write, you connect the 'early' supervisor for the BBRAM to an interrupt, then you will not need read after write. That way you have a fully protected BBRAM AND an "early power fail interrupt". Yes, you can have your cake and eat it too. I don't really see how this will solve any problems. If the BBRAM locks its writes at one point in the decay, and the MCU interrupts out in response to brownout or power-down, there's still no guarantee that they're "on the same page." This is slowly coming back from the dusty archives in my DNA computer.
Erik |