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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Richard Erlacher
12/06/12 00:19
Read: 919 times
Denver, Co
USA


 
#188970 - That's what disturbs me greatly
Responding to: Kai Klaas's previous message
With positive-going reset signals, especially with signals pegged to a concurrently changing positive supply, to which it's referenced, there will never be a precisely defined point at which everything will work. There can be a point at which it probably works, but never better than that.

Further, even with the help of a supervisor, all bets are off during the generally quite long decay of the positive supply once primary power is turned off. With CMOS circuitry that doesn't require much power, the on-board capacitance can hold the supply value in limbo for several seconds, and even for several minutes (remember the bit about that clock/calendar board that was misrouted in the mail for two weeks, yet still kept good time?) or longer. This condition occurs at a time when the on-chip charge pump for FLASH write and erase functions are in full operation.

If the MCU continues to operate external signals, which it should NOT when RESET is asserted, then the internal signals certainly also are able to do that. I'm persuaded that the power-down portion of the power cycle is the most likely to cause trouble, precisely because the positive supply, against which the RESET is compared, and on which both the oscillator and the brownout sensors rely, is wandering around. That's why I'm thinking it would be desirable to pull Vdd down to 0.5 volts or less within less than one machine cycle of determining that power has been shut off.

What I don't know is how, exactly, to make this (Vdd, RESET, oscillator) all work properly without requiring too complex a circuit. The same conditions, i.e. changing Vdd while trying to generate a reasonable RESET and getting the oscillator to start during the power-ON cycle does, in light of what Kai has said, give me some pause. The supervisor seems capable of managing the power-ON portion of the power cycle quite adequately, but I'm concerned about what it can do to help with the power-down portion, which, to my mind, is more likely to allow for some damage to "nonvolatile" memory, whether FLASH or BBRAM, internal or external. Once the MCU is doing things we don't want, it's likely to be doing damage. If we don't see to it that it can't, we're in trouble.

I've considered stopping the oscillator, which could easily be done with a gate or a transistor. Starting it back up is another thing, though.

That's why I was thinking a MOSFET half-bridge might be the way to pull down the positive supply quickly enough to avoid any run-on, and that same half-bridge could turn on the positive supply with enough energy to kick-start the oscillator. I am, however, concerned about the fact that pulling the Vdd pin down below the on-chip Vdd might do irreparable harm to the MCU. That's why I've been concerned about the lack of specifications on the behavior of Vdd.

The obvious thing to do is to give it a try, break a few MCU's, perhaps, and then try to draw some conclusions with long repetitive cycles under control of a test environment. Manufacturers have been unwilling to do this and publish the results because it really doesn't help them. They bought the core license and don't want to take responsibility for an already-established product. Perhaps that also explains the longevity of that 10 uF Cap and 8k2 resistor as a RESET generator that we see in many datasheets and app-notes.

RE




List of 33 messages in thread
TopicAuthorDate
C8051F231 experiences      Daniel Contarino      11/30/12 14:43      
   another solution      Erik Malund      11/30/12 15:11      
   The probabilities are low...      Daniel Contarino      11/30/12 18:34      
      think about what happens when you add a finger      Richard Erlacher      11/30/12 22:55      
         The point is ...      Daniel Contarino      12/01/12 03:08      
            Yes ... the underlying issue is the flash ...       Richard Erlacher      12/01/12 11:28      
               Out of my office, but...      Daniel Contarino      12/01/12 14:05      
                  Don't think in Vcc, ESD or hum...      Daniel Contarino      12/02/12 09:24      
   Apparently several C8051F2xx parts have the same pinout      Richard Erlacher      12/01/12 14:25      
   Characteristic for in system programmable flash micros...      Kai Klaas      12/01/12 18:25      
      All too true ... sadly ...       Richard Erlacher      12/01/12 20:13      
         Power-on slope rate...      Kai Klaas      12/02/12 05:31      
            Sorry, my post should be here, no up there...      Daniel Contarino      12/02/12 09:58      
            Have you any basis for that rate?      Richard Erlacher      12/02/12 10:15      
               Vdd ramp time      Maarten Brock      12/03/12 06:15      
               Some datasheets show numbers...      Kai Klaas      12/03/12 07:05      
                  Those aren't the "usual" 805x-core MCU's      Richard Erlacher      12/03/12 17:43      
                     There aren't many "usual" 8051-cores anymore...      Kai Klaas      12/03/12 18:13      
                        How dangerous power ups can be...      Kai Klaas      12/04/12 06:20      
                           I believe it      Richard Erlacher      12/04/12 08:59      
                              (dV/dt) examples      Jim Granville      12/04/12 13:14      
                                 They don't know it either...      Kai Klaas      12/04/12 18:49      
                                    dV/dT etc       Jim Granville      12/04/12 21:39      
                                       reset request...      Kai Klaas      12/05/12 06:21      
                                          That's what disturbs me greatly      Richard Erlacher      12/06/12 00:19      
                                             It IS disturbing!      Kai Klaas      12/06/12 08:02      
                                                Where this began ... at least for me ...       Richard Erlacher      12/06/12 09:43      
                                                   So, you took the hard road...      Kai Klaas      12/06/12 10:41      
                                                      We've all had that experience       Richard Erlacher      12/06/12 16:23      
   probable cause      Brent Wilson      02/04/13 20:32      
      Brent, this is very nice      Erik Malund      02/05/13 06:38      
         forum no longer down      Maarten Brock      02/05/13 07:33      
      Thank you!      Daniel Contarino      02/05/13 15:04      

Back to Subject List