WO1990006555A1 - Auxiliary integrated circuit for microprocessor management - Google Patents

Auxiliary integrated circuit for microprocessor management Download PDF

Info

Publication number
WO1990006555A1
WO1990006555A1 PCT/US1989/005456 US8905456W WO9006555A1 WO 1990006555 A1 WO1990006555 A1 WO 1990006555A1 US 8905456 W US8905456 W US 8905456W WO 9006555 A1 WO9006555 A1 WO 9006555A1
Authority
WO
WIPO (PCT)
Prior art keywords
voltage
integrated circuit
power supply
circuit
external power
Prior art date
Application number
PCT/US1989/005456
Other languages
French (fr)
Inventor
Don Folkes
Wendell L. Little
Original Assignee
Dallas Semiconductor Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US07/283,267 external-priority patent/US5754462A/en
Application filed by Dallas Semiconductor Corporation filed Critical Dallas Semiconductor Corporation
Publication of WO1990006555A1 publication Critical patent/WO1990006555A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3209Monitoring remote activity, e.g. over telephone lines or network connections
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level

Definitions

  • the present invention relates to low-power systems and subsystems employing microprocessors, and to integrated circuit elements which help to manage the low-level operation of a microprocessor.
  • a separate line of technological progress is the increasing use of batteries, in integrated circuit packages or in very small modules, to provide nonvolatile data retention.
  • the driving concern is not the system power budget, but reliability and robustness.
  • the availability of battery backup can be used to ensure that power outages or power-line noise cannot cause loss of data (including configuration data).
  • modern semiconductor technology has provided solid-state memories with such low standby power requirements that a single coin sized battery can power the memory for ten years of lifetime or more. Such memories are already commercially available.
  • Low-power microcontrollers have also been commercially available in recent years.
  • An unusual example of such a microcontroller is the DS5000 Soft MicrocontrollerTM.
  • the DS5000 is a microcontroller which has a small battery packaged with it, to provide nonvolatility.
  • Microprocessors and microcontrollers of this kind are extremely useful, since the internal memory of the microprocessor is always preserved. Therefore, the microprocessor can be programmed to "learn" while in service, or to internally store a parameter set which is adjustable throughout the lifetime of the microprocessor.
  • such microprocessors are typically not the highest-performing microprocessors. Thus, a user who needs nonvolatility may need to make some difficult choices.
  • the present invention provides an auxiliary integrated circuit, which can interface with a microprocessor (or other complex random logic chip) in a way which improves the microprocessor's power management during power-up and power-down transitions.
  • this auxiliary chip provides all necessary functions for power supply monitoring, reset control, and memory back-up in microprocessor based systems.
  • a precise internal voltage reference and comparator circuit monitor power supply status. When an out-of-tolerance condition occurs, the microprocessor reset and power fail outputs are forced active, and static RAM control unconditionally write protects external memory.
  • the auxiliary chip also provides early warning detection by driving a non-maskable interrupt at a user defined voltage threshold.
  • External reset control is provided by a pushbutton reset input which is debounced and activates reset outputs. An internal timer also forces the reset outputs to the active state if the strobe input is not driven low prior to time out.
  • Reset control and wake- up/sleep control inputs also provide necessary signals for orderly shut down and start up in battery backup and battery operate applications.
  • the auxiliary chip provided by the present invention can be used with a very wide variety of different microcontrollers and microprocessors. Two significantly different types must be distinguished:
  • the microprocessor should not be reset when power is failing (because such a reset will wake up the microprocessor, and cause it to draw power).
  • CMOS microprocessors For NMOS microprocessors, and for CMOS microprocessors or microcontrollers which do not have access to a backup power supply, it is desirable to reset the processor as soon as possible when the power supply is failing, and keep it in reset until the power supply begins to recover. (Bringing the microprocessor under control early helps minimize power consumption, and helps to avoid random outputs from the microprocessor.)
  • a battery-backed microprocessor should preferably go into its "stop" mode when power goes down. However, the microprocessor alone does not normally know when it has been switched over to battery backup.
  • auxiliary chip which sends a reset command to an associated microprocessor at a certain voltage level, but only if the direction of voltage change indicates that the power supply is coming up, and not going down. This permits the microprocessor to be reset, and resume operation, as early as possible when power is restored, but prevents a nonvolatized microprocessor from being reset during its low- power state.
  • the microprocessor can access the auxiliary chip to ascertain the power history. That is, the microprocessor can direct an interrupt to the auxiliary chip, which will cause the auxiliary chip to respond with a signal which indicates to the microprocessor whether the power supply voltage is heading up or down.
  • the present invention permits the microprocessor to determine (by querying the auxiliary chip) whether the supply voltage is marginal, so that the microprocessor does not go into full operation until the supply voltage is high enough.
  • Another of the innovative teachings set forth in the present application is a control relationship which permits the auxiliary chip itself to be put to sleep by the microprocessor to minimize power consumption.
  • the sleep mode of the auxiliary chip saves power by shutting down many of the input-sensing circuits. (The sleep mode also gives users a way to turn off the watchdog functions of the auxiliary chip.)
  • the present invention imposes a timing relationship where the sleep command is not accepted unless it stands in the proper timing relationship to a signal on the strobe pin. This permits the power savings of the sleep mode to be realized, without any risk of the system being placed in the sleep mode due to an out-of-control system condition.
  • This auxiliary chip, and systems or subsystems which use this auxiliary chip provide at least the following advantages: Holds microprocessor in check during power transients; Halts and restarts an out-of-control microprocessor; Monitors pushbutton for external override; Warns microprocessor of an impending power failure; Converts CMOS SRAM into nonvolatile memory; Unconditionally write protects memory when power supply is out of tolerance; Consumes less than 100 nA of battery current; Can control an external power switch for high current applications; Provides orderly shutdown in nonvolatile microprocessor applications; Supplies necessary control for low power "stop mode' in battery operate hand held applications.
  • this auxiliary chip provides designers with a greatly increased range of options.
  • This auxiliary chip permits system designers to obtain many of the advantages of a specialized low- power microprocessor (such as the DS5000), while using a different microprocessor which has higher-speed, or more versatility, or compatibility with some existing software base, or special adaptation for some special purpose.
  • systems which include the combination of an auxiliary chip as described with a general-purpose microprocessor can have advantages including robustness in the face of power-supply crashes or glitches, and program resumption which appears (to the user) to be continuous with the program's operation at the moment when the machine was turned off (depending on how state-save operations are interwoven with software execution).
  • microprocessor architectures have reset lines running to every gate on the chip, so that a reset command will instantly reset every logical element to the known state.
  • some architectures do not. For example, in the Intel 8051 architecture, several cycles are necessary after the reset command, to clock all of the logical elements on the chip into the known state. (This architecture is used not only in Intel's 80C51 microprocessor, but also in any other microprocessor which is to be compatible with this widely-used architecture.)
  • a simple example of a logic block which would require multiple cycles to reset would be a shift register, with a reset only at the input of the shift register.
  • a "shadow” memory or register can be used to track the status of various on-chip registers, etc.
  • portions of on-chip memory can even be used as "shadow” scratch pad, to preserve some state information during such power-down operations.
  • Figure 1 shows a typical example of the power monitor, watchdog timer, and pushbutton reset
  • Figure 2 shows how the high impedance input at the IN pin allows for a user to define a sense point, using a simple resistor voltage divider network to interface with high voltage signals.
  • FIG. 3 shows a typical nonvolatile SRAM application.
  • Figure 4 depicts the three negative pulses on the IN pin which are used to invoke the freshness seal.
  • Figure 5 shows how the external supply voltage is switched by discrete transistors, controlled by power-fail signal PF and its complement PF*.
  • Figure 6 shows the power-down timing relations which result, in the presently preferred embodiment, when the reset control input (RC) has been tied to V CCO .
  • Figure 7 shows the power-down timing relations which result, in the presently preferred embodiment, when the reset control input (RC) has been tied to ground.
  • Figure 8 shows the power-up timing relations which result, in the presently preferred embodiment, when the reset control input (RC) has been tied to ground.
  • Figure 9 shows the power-up timing relations which result, in the presently preferred embodiment, when the reset control input (RC) has been tied to V CCO .
  • Figure 10 shows the signal timing relations which permit sleep mode to be entered
  • Figure 11 shows the signal timing relations which permit the chip to awaken from sleep mode.
  • Figure 12 shows the timing relation between the NMI* and ST* signals.
  • Figure 13 shows the overall organization of the auxiliary chip of the presently preferred embodiment.
  • Figure 14 shows the critical points on the curve of power supply voltage, when the power supply voltage is falling. DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • the auxiliary chip employs a bandgap voltage reference and a precision comparator to monitor the 5 volt supply (V CC ) in microprocessor based systems.
  • V CC 5 volt supply
  • the V CC trip point (V CCTP ) is set, for 10% operation, so that the RST and RST* outputs will become active as V CC falls below 4.5 volts (4.37 typical).
  • the V CCTP for the 5% operation option is set for 4.75 volts (4.62 typical).
  • the RST and RST* signals are excellent for microprocessor control, as processing is stopped at the last possible moment of within- tolerance V CC .
  • the RST and RST* signals are held active for a minimum of 40 ms (60 ms typical) after V CCTP is reached to allow the power supply and microprocessor to stabilize.
  • the mode of operation just described is achieved if the reset control pin (RC) is connected to GND.
  • the reset control pin RC is connected to GND.
  • V CCO voltage
  • a different mode of operation can be achieved. This different mode is shown in Figures 6 and 9, and is described below.
  • the auxiliary chip also provides a watchdog timer function by forcing the RST and RST* signals to the active state when the strobe input (ST*) is not stimulated for a predetermined time period. This time period is set for 220 ms typically with a maximum time- out of 300 ms.
  • the watchdog timer begins timing out from the set time period as soon as RST and RST* are inactive. If a high-to-low transition occurs at the ST* input prior to time-out, the watchdog timer is reset and begins to time out again.
  • the ST* input can be derived from microprocessor address, data, and/or control signals. Under normal operating conditions, these signals would routinely reset the watchdog timer prior to time out. If the watchdog timer is not required, it may be disabled by permanently grounding the IN input pin which also disables the NMI* output (described below). If the NMI* signal is required, the watchdog may also be disabled by leaving the ST* input open.
  • the watchdog timer is also disabled as soon as the IN input fells to V TP or, if IN is not used and grounded, as soon as V CC fells to V CCTP .
  • the watchdog will then become active as V CC rises above V CCTP and the IN pin rises above V TP .
  • PUSH-BUTTON RESET An input pin is provided on the auxiliary chip for direct connection to a push-button.
  • the push-button reset input requires an active low signal. Internally, this input is debounced and timed such that the RST and RST* outputs are driven to the active state for 40 ms maximum. This 40 ms delay begins as the push-button is released from low level.
  • NONMASKABLE INTERRUPT The auxiliary chip generates a non- maskable interrupt NMI* for early warning of power failure to a microprocessor.
  • a precision comparator 110 monitors the voltage level at the input pin IN relative to a reference generated by the internal bandgap.
  • the IN pin is a high impedance input allowing for a user defined sense point using a simple resistor voltage divider network ( Figure 3) to interface with high voltage signals. This sense point may be derived from the regulated 5 volt supply, or from a higher DC voltage level closer to the AC power input. Since the IN trip point V TP is 2.54 volts, the proper values for R 1 and R 2 can easily be determined. Proper operation of the auxiliary chip requires that the voltage at the IN pin be limited to 5 volts maximum. Therefore, the maximum allowable voltage at the supply being monitored (V MAX ) can also be derived as shown.
  • a simple approach to solving this equation is to select a value for R 2 of high enough impedance to keep power consumption low, and solve for R 1 .
  • the flexibility of the IN input pin allows for detection of power loss at the earliest point in a power supply system, maximizing the amount of time for microprocessor shut-down between NMI* and RST or RST*.
  • the auxiliary chip drives the NMI* output to the active state for a minimum of 200 microseconds, but does not hold it active. If the pin is connected to V CC , the NMI* output will pulse low as V CC decays to V CCTP if RC pin at ground (see reset control section).
  • the NMI* power fail detection circuitry also has built in time domain hysteresis. That is, the monitored supply is sampled periodically at a rate determined by an internal ring oscillator running at approximately 47 kHz (20 ms/cycle). Three consecutive samplings of out-of tolerance supply (below V SENSE ) must occur at the IN pin to active NMI. Therefore, the supply must be below the voltage sense point for approximately 60 ms or the comparator will reset.
  • the NMI* signal has been defined, in the presently preferred embodiment, as a pulse, rather than a level, because a constant output would keep some microprocessors from going into their lowest-power mode. Thus, the microprocessor cannot simply scan the NMI* signal to see where the power supply voltage level is.
  • the microprocessor can query the auxiliary chip to see where the power suppfy level is. Whenever the auxiliary chip receives a pulse from the microprocessor on the ST* line, it will return a pulse to the microprocessor on the NMI* line, but only if the system supply voltage is less than that required to trip the NMI* interrupt
  • FIG 14 is a simplified version of Figure 7, which shows this relationship more clearly.
  • V 1 refers to the voltage at which the auxiliary chip generates an interrupt (on line NMI*, in the presently preferred embodiment);
  • voltage V 2 is the voltage at which the auxiliary chip generates a reset (this is equal to voltage V CCTP , in the presently preferred embodiment);
  • voltage V 3 is the voltage at which comparator 130 connects the internal VCC to V BAT rather than to V CCI (which is the externally supplied power voltage, as opposed to the on- chip supply V CC ).
  • V CCI which is the externally supplied power voltage, as opposed to the on- chip supply V CC
  • the microprocessor can send a query to the auxiliary chip by pulsing the strobe pin ST*. When this occurs, the auxiliary chip will reply with a pulse on line NMI* if the supply level is then in zone 2, but not If the power supply level is in zone 1. Thus, the microprocessor can use this exchange to recognize whether it is in zone 2. This is important because the watchdog operation is turned off in zone 2, so that otherwise it might be possible for a stuck condition to occur.
  • MEMORY BACKUP The auxiliary chip provides all necessary functions required to battery back up a static RAM.
  • a switch is provided to direct power from the incoming 5 volt supply (V CC ) or from a battery (V BAT ) whichever is greater.
  • This switched supply (V CCO ) can also be used to battery back CMOS microprocessors.
  • the reset control and wake control sections provide further discussion regarding nonvolatile microprocessor applications.
  • the same power fail detection described in the power monitor section is used to inhibit the chip enable input (CEI*) and hold the chip enable ou ⁇ ut (CEO*) to within 0.3 volts of V CC or battery supply. This write protection mechanism occurs as V CC falls below V CCTP as specified previously.
  • CEO* is held in its present state until CEI* is returned high, or if CEI* is held low, CEO* is held active for t CE maximum. This delay of write protection until the current memory cycle is completed prevents the corruption of data. If CEO* is in an inactive state at the time of V CC fail detection, CEO* will be unconditionally disabled within t CF . During nominal supply conditions CEO* will follow CEI* with a maximum propagation delay of 20 ns.
  • FIG. 4 shows a typical nonvolatile SRAM application. If nonvolatile operation is not required, the battery input pin V BAT must be grounded. In order to conserve battery capacity during storage and/or shipment of a system, the auxiliary chip provides a freshness seal to electronically disconnect the battery.
  • Figure 5 depicts the three pulses below ground on the IN pin required to invoke the freshness seal. The freshness seal will be disconnected and normal operation will begin when V CC is next applied to a level above
  • the 5 volt supply and battery supply switches internal to the auxiliary chip may not be large enough to support the given load within significant voltage drop.
  • the PF and PF* outputs are provided to gate external switching devices to switch supply from V CC to battery on power down and from battery to V CC on power up.
  • the transition threshold for PF and PF* is set to the external battery voltage V BAT (see Figure 6).
  • the load applied to the PF pin from the external switch will be supplied by the battery. Therefore, this load should be taken into consideration when sizing the battery.
  • RESET CONTROL Two modes of operation on power down and power up are available, depending upon the level of the reset control
  • RC RC input pin.
  • the level of this pin distinguishes timing and level control on RST, RST*, and NMI* outputs for volatile processor operation versus non-volatile battery backed (or battery operated) processor applications.
  • V CC collapses to V CCTP , and RST* is held at a high level by the battery as V CC falls below battery potential.
  • the NMI* output pin will pulse low for t N MI following a low voltage detect at the pin of V TP .
  • NMI* will also be held at a high level following t NMI by the battery as V CC decays below V BAT .
  • RST and RST* are held inactive until V CC reaches power valid V CCTP , then RST and RST* are driven active for t RST .
  • NMI* will pulse low for 500 microseconds maximum then will follow V CC during the power up sequence.
  • the processor may power down into a "stop" mode and subsequently be restarted by any of several different signals. If V CC does not fall below V CCTP , the processor will be restarted by the reset derived from the watchdog timer as the IN input rises above V tp . If V CC falls below V CCTP but not below V BAT , the processor will be restarted as V CC rises above V CCTP . If V CC fells below V BAT , the reset outputs will be forced active the next time V CC rises above V CCTP as shown in the power up timing diagram.
  • the pushbutton input PBRST* may be used, whenever V CC is above V BAT , to drive the reset outputs and thus restart the processor.
  • the Wake/Sleep Control input WK/SC* allows the processor to disable all comparators on the auxiliary chip, processor, and nonvolatile static RAM to maintain nonvolatility in the lowest power mode possible.
  • the processor may invoke the sleep mode in battery operate applications to conserve capacity when an absence of activity is detected.
  • the auxiliary chip may subsequently be restarted by a high to low transition on the PBRST* input via human interface by a keyboard, touch pad, etc. The processor will then be restarted as the watchdog timer times out and drives RST and RST* active.
  • the auxiliary chip can also be woken up by forcing the WK/SC* pin high from an external source.
  • the auxiliary chip will wake up the next time V CC rises above V CCTP . That is, the auxiliary chip leaves the sleep mode as the power is falling below V BAT .
  • the processor invokes the sleep mode during normal power valid operation, all operation on the auxiliary chip is disabled, thus leaving the NMI*, RST and RST* outputs disabled as well as the ST* and IN inputs.
  • the PBRST* input will also become inactive when the main battery supply falls below the IN input at V TP or the backup 3 volt supply at V BAT .
  • Figure 13 shows the overall electrical organization of the auxiliary chip of the presently preferred embodiment.
  • a first comparator 110 compares the input voltage at the IN pin with the reference voltage provided by bandgap voltage reference generator 200. The output of this comparator is connected through rime delay stage 112 to one-shot 114. Thus one- shot 114 will provide a pulse on the NMI* output pin when comparator 110 sees that the voltage at pin IN has fallen below limits. (As noted, a resistive divider network would commonly be used to scale the supply voltage appropriately for this comparison.)
  • a second comparator 120 compares a fraction of the supply voltage input V CCI (scaled by resistors 121) with the reference voltage provided by bandgap voltage reference generator 200.
  • the output of this comparator 120 is connected, through time delay stage 122 and OR gate
  • comparator 120 is also connected (through the time delay block 122) to control a chip-enable-control gate 139, so that incoming chip-enable signals CEI* will n ot be passed through to signal CEO* when V CCI has fallen below V CCTP .
  • a third comparator 130 compares the external VCC supply voltage input (V CCI ) against the battery voltage V BAT , and switches large transistors 132, 134, and 136 (via NAND gate 135) appropriately, to connect the external power supply output VCCO and the internal power supply lines VCC to V BAT if V CCI falls significantly below V BAT .
  • the NAND gate 135 also receives an input from freshness seal logic 131, so that, if the input from freshness seal logic 131 is low, transistor 136 will never turn on. In this case, if the external power supply V CCI fails, comparator 130 will drive its output PF positive, turning off transistors 132 and 134, and pin V CCO will be floated. This avoids any loss of battery lifetime due to drain from external devices.
  • the freshness seal logic 131 decodes signals received on the SLP* pin, as described above, to enter or leave the freshness-seal mode.
  • the output of the bandgap voltage reference 200 is also used by a current source (not separately shown), which provides a temperature- independent current to the ring oscillator.
  • This current source also provides a temperature-independent current to the voltage reference 200.
  • the voltage reference 200 uses this current to define charging relationships, and also makes use of the output of the ring-oscillator (to chipper-stabilize the comparators).
  • the ring oscillator 310 provides a constant-frequency output to watchdog timer 300.
  • the watchdog timer 300 provides timing and alarm functions, such as those performed by commercially available part DS1286.
  • the watchdog timer will provide an input to OR gate 410, to generate a reset, if it counts down through its time-out limit without having received a pulse on pin ST*.
  • the sleep-control logic 500 receives inputs from the SLP* pin and also from the ST* pin.
  • the outputs of this logic can disable not only watchdog timer 300, but also are connected to disable bandgap voltage reference 200, oscillator 310, and comparators 110 and 120.
  • Comparator 130 is not disabled, but is switched into a low-power mode. In comparator 130's low-power mode, its bias current is reduced, so that it can still detect when V CCI falls below V BAT , it reacts more slowly.
  • the third input to the OR gate 410 is from the pushbutton input PBRST*, which is cleaned up by debounce logic 420.
  • the reset control logic 400 can be conditionally commanded to initiate a reset by any of the three inputs just described. However, the reset control logic 400 also receives external control input RC, and also is connected to see the outputs of comparators 110 and 120, to implement the logical relations described above.
  • I CCO1 is the maximum average load which the DS1236 can supply at V CC - 3V through the V CCO pin during normal 5 volt operation.
  • 4I CCO2 is the maximum average load which the DS1236 can supply through the V CCO pin during data retention battery supply operation.
  • V CCO is approximately V BAT -0.5V at 1 ⁇ A load.
  • 9 t REC is the minimum time required before memory access to allow for deactivation of RST and RST*.
  • the microprocessor's programming can use the power- down warning interrupt to trigger a state-save operation.
  • the disclosed auxiliary chip can be used with a wide variety of microprocessors, microcontrollers, or microcomputers, including ones which do and ones which do not have their own battery back-up supplies; 8-bit, 16-bit, 32-bit, or other architectures; general- purpose processors, DSPs (digital signal processors), or ASICs (application-specific integrated circuits); numeric or symbolic processors; and others.
  • a wide range of system contexts are enabled by the disclosed inventions, including (for example) portable computers, device controllers, desk-top computers, sub-processors which perform management functions in minicomputer, mainframe, or even supercomputer systems.

Abstract

A system which includes a microprocessor (or microcontroller) and an auxiliary chip which monitors the system power supply voltage and performs related functions for the microprocessor, and also provides a watchdog function. The auxiliary chip can be put to sleep by the microprocessor to minimize power consumption. The microprocessor can direct an interrupt to the auxiliary chip, which will cause the auxiliary chip to respond with a signal which indicates to the microprocessor whether power supply voltage is heading up or down. In one mode, the auxiliary chip sends an interrupt to the microprocessor when the power supply falls to a first level, and also resets the microprocessor when the supply voltage reaches a second preset level on the way up (i.e. while power is being restored). In a selectable second mode, the auxiliary chip resets the processor when the power supply is on the way down.

Description

AUXILIARY INTEGRATED CIRCUIT FOR MICROPROCESSOR MANAGEMENT
BACKGROUND AND SUMMARY OF THE INVENTION
The present invention relates to low-power systems and subsystems employing microprocessors, and to integrated circuit elements which help to manage the low-level operation of a microprocessor.
The very rapid progress of integrated circuit complexity generally, and the general use of CMOS processing, have permitted a huge increase in the functionality which can be included in a very compact portable system. The availability of low-power LCD displays has further speeded the advance of such systems. However, power supply capabilities have not advanced as rapidly. Battery technology has provided a relatively slow increase in the amount of energy which can be stored per unit weight (or per unit volume). Thus, in order to provide complex functionality in a small portable module, a very high degree of power efficiency has become an enabling technology.
A separate line of technological progress is the increasing use of batteries, in integrated circuit packages or in very small modules, to provide nonvolatile data retention. Here the driving concern is not the system power budget, but reliability and robustness. The availability of battery backup can be used to ensure that power outages or power-line noise cannot cause loss of data (including configuration data). For example, modern semiconductor technology has provided solid-state memories with such low standby power requirements that a single coin sized battery can power the memory for ten years of lifetime or more. Such memories are already commercially available.
Low-power microcontrollers have also been commercially available in recent years. An unusual example of such a microcontroller is the DS5000 Soft Microcontroller™. (This integrated circuit and its data sheet are available from Dallas Semiconductor Corporation, 4350 Beltwood Parkway, Dallas TX 75244, and are both hereby incorporated by reference.) The DS5000 is a microcontroller which has a small battery packaged with it, to provide nonvolatility. Microprocessors and microcontrollers of this kind are extremely useful, since the internal memory of the microprocessor is always preserved. Therefore, the microprocessor can be programmed to "learn" while in service, or to internally store a parameter set which is adjustable throughout the lifetime of the microprocessor. However, aside from their nonvolatility, such microprocessors are typically not the highest-performing microprocessors. Thus, a user who needs nonvolatility may need to make some difficult choices.
The present invention provides an auxiliary integrated circuit, which can interface with a microprocessor (or other complex random logic chip) in a way which improves the microprocessor's power management during power-up and power-down transitions.
In the presently preferred embodiment, this auxiliary chip provides all necessary functions for power supply monitoring, reset control, and memory back-up in microprocessor based systems. A precise internal voltage reference and comparator circuit monitor power supply status. When an out-of-tolerance condition occurs, the microprocessor reset and power fail outputs are forced active, and static RAM control unconditionally write protects external memory. The auxiliary chip also provides early warning detection by driving a non-maskable interrupt at a user defined voltage threshold. External reset control is provided by a pushbutton reset input which is debounced and activates reset outputs. An internal timer also forces the reset outputs to the active state if the strobe input is not driven low prior to time out. Reset control and wake- up/sleep control inputs also provide necessary signals for orderly shut down and start up in battery backup and battery operate applications. The auxiliary chip provided by the present invention can be used with a very wide variety of different microcontrollers and microprocessors. Two significantly different types must be distinguished:
For low-power battery-backed CMOS microcontrollers and microprocessors (such as the DS5000), the microprocessor should not be reset when power is failing (because such a reset will wake up the microprocessor, and cause it to draw power).
For NMOS microprocessors, and for CMOS microprocessors or microcontrollers which do not have access to a backup power supply, it is desirable to reset the processor as soon as possible when the power supply is failing, and keep it in reset until the power supply begins to recover. (Bringing the microprocessor under control early helps minimize power consumption, and helps to avoid random outputs from the microprocessor.)
A battery-backed microprocessor should preferably go into its "stop" mode when power goes down. However, the microprocessor alone does not normally know when it has been switched over to battery backup.
Another of the innovative teachings set forth in the present application is an auxiliary chip which sends a reset command to an associated microprocessor at a certain voltage level, but only if the direction of voltage change indicates that the power supply is coming up, and not going down. This permits the microprocessor to be reset, and resume operation, as early as possible when power is restored, but prevents a nonvolatized microprocessor from being reset during its low- power state.
Another of the innovative teachings set forth in the present application is that the microprocessor can access the auxiliary chip to ascertain the power history. That is, the microprocessor can direct an interrupt to the auxiliary chip, which will cause the auxiliary chip to respond with a signal which indicates to the microprocessor whether the power supply voltage is heading up or down. When the microprocessor is reset at power-up, and detects that the power supply voltage is still marginal, the present invention permits the microprocessor to determine (by querying the auxiliary chip) whether the supply voltage is marginal, so that the microprocessor does not go into full operation until the supply voltage is high enough.
Another of the innovative teachings set forth in the present application is a control relationship which permits the auxiliary chip itself to be put to sleep by the microprocessor to minimize power consumption. The sleep mode of the auxiliary chip saves power by shutting down many of the input-sensing circuits. (The sleep mode also gives users a way to turn off the watchdog functions of the auxiliary chip.) To minimize the risk of the system getting stuck with the auxiliary chip in sleep mode, and the risk of electrical noise on the microprocessor outputs (which normally occurs during reset) from throwing the auxiliary chip into sleep mode, the present invention imposes a timing relationship where the sleep command is not accepted unless it stands in the proper timing relationship to a signal on the strobe pin. This permits the power savings of the sleep mode to be realized, without any risk of the system being placed in the sleep mode due to an out-of-control system condition.
This auxiliary chip, and systems or subsystems which use this auxiliary chip, provide at least the following advantages: Holds microprocessor in check during power transients; Halts and restarts an out-of-control microprocessor; Monitors pushbutton for external override; Warns microprocessor of an impending power failure; Converts CMOS SRAM into nonvolatile memory; Unconditionally write protects memory when power supply is out of tolerance; Consumes less than 100 nA of battery current; Can control an external power switch for high current applications; Provides orderly shutdown in nonvolatile microprocessor applications; Supplies necessary control for low power "stop mode' in battery operate hand held applications.
A further advantage of this auxiliary chip is that it provides designers with a greatly increased range of options. This auxiliary chip permits system designers to obtain many of the advantages of a specialized low- power microprocessor (such as the DS5000), while using a different microprocessor which has higher-speed, or more versatility, or compatibility with some existing software base, or special adaptation for some special purpose. Thus, systems which include the combination of an auxiliary chip as described with a general-purpose microprocessor can have advantages including robustness in the face of power-supply crashes or glitches, and program resumption which appears (to the user) to be continuous with the program's operation at the moment when the machine was turned off (depending on how state-save operations are interwoven with software execution).
Normally, when it is desired to put a microprocessor into a known state, this is done by activating a reset Some microprocessor architectures have reset lines running to every gate on the chip, so that a reset command will instantly reset every logical element to the known state. However, some architectures do not. For example, in the Intel 8051 architecture, several cycles are necessary after the reset command, to clock all of the logical elements on the chip into the known state. (This architecture is used not only in Intel's 80C51 microprocessor, but also in any other microprocessor which is to be compatible with this widely-used architecture.) For example, a simple example of a logic block which would require multiple cycles to reset would be a shift register, with a reset only at the input of the shift register. In this (hypothetical) case, it can be seen that, even after the reset command has provided a known state in the first stage of the shift register, unknown data may still exist in the following stages. Therefore, a series of clock commands must be provided, to propagate the known state all the way through the shift register.
Alternatively, if it is necessary to save the state of a microprocessor entering power-down, this can be done separately. For example, a "shadow" memory or register can be used to track the status of various on-chip registers, etc. Similarly, if desired, portions of on-chip memory can even be used as "shadow" scratch pad, to preserve some state information during such power-down operations. BRIEF DESCRIPTION OF THE DRAWING
The present invention will be described with reference to the accompanying drawings, wherein:
Figure 1 shows a typical example of the power monitor, watchdog timer, and pushbutton reset
Figure 2 shows how the high impedance input at the IN pin allows for a user to define a sense point, using a simple resistor voltage divider network to interface with high voltage signals.
Figure 3 shows a typical nonvolatile SRAM application.
Figure 4 depicts the three negative pulses on the IN pin which are used to invoke the freshness seal.
Figure 5 shows how the external supply voltage is switched by discrete transistors, controlled by power-fail signal PF and its complement PF*.
Figure 6 shows the power-down timing relations which result, in the presently preferred embodiment, when the reset control input (RC) has been tied to VCCO .
Figure 7 shows the power-down timing relations which result, in the presently preferred embodiment, when the reset control input (RC) has been tied to ground.
Figure 8 shows the power-up timing relations which result, in the presently preferred embodiment, when the reset control input (RC) has been tied to ground.
Figure 9 shows the power-up timing relations which result, in the presently preferred embodiment, when the reset control input (RC) has been tied to VCCO.
Figure 10 shows the signal timing relations which permit sleep mode to be entered, and Figure 11 shows the signal timing relations which permit the chip to awaken from sleep mode.
Figure 12 shows the timing relation between the NMI* and ST* signals.
Figure 13 shows the overall organization of the auxiliary chip of the presently preferred embodiment.
Figure 14 shows the critical points on the curve of power supply voltage, when the power supply voltage is falling. DESCRIPTION OF THE PREFERRED EMBODIMENTS
The numerous innovative teachings of the present application will be described with particular reference to the presently preferred embodiment However, it should be understood that this embodiment is only one example of the many advantageous uses of the innovative teachings herein. In general, statements made in the specification of the present application do not necessarily delimit any of the various claimed inventions. Moreover, some statements may apply to some inventive features but not to others.
In the following description, the following pin and signal names may be referred to:
V BAT - +3 Volt Battery Input
VCCO - Switched SRAM Supply Output
VCC - +5 Volt Power Supply Input
GND - Ground
PF - Power Fail (Active High)
PF* - Power Fail (Active Low)
WK/SC* - Wake-Up Control (Sleep)
RC - Reset Control
IN - Early Warning Input
NMI* - Non Maskable Interrupt
ST* - Strobe Input
CEO* - Chip Enable Output
CEI* - Chip Enable Input
PBRST* - Push Button Reset Input
RST* - Reset Output (Active Low)
RST - Reset Output (Active High)
POWER MONITOR: The auxiliary chip employs a bandgap voltage reference and a precision comparator to monitor the 5 volt supply (VCC) in microprocessor based systems. When an out-of-tolerance condition occurs, the RST and RST* outputs are driven to the active state. The VCC trip point (VCCTP) is set, for 10% operation, so that the RST and RST* outputs will become active as VCC falls below 4.5 volts (4.37 typical). The VCCTP for the 5% operation option is set for 4.75 volts (4.62 typical). The RST and RST* signals are excellent for microprocessor control, as processing is stopped at the last possible moment of within- tolerance VCC. On power up, the RST and RST* signals are held active for a minimum of 40 ms (60 ms typical) after VCCTP is reached to allow the power supply and microprocessor to stabilize. The mode of operation just described (and shown in Figures 7 and 8) is achieved if the reset control pin (RC) is connected to GND. Alternatively, by connecting the reset control pin RC to voltage VCCO, a different mode of operation can be achieved. This different mode is shown in Figures 6 and 9, and is described below.
WATCHDOG TIMER: The auxiliary chip also provides a watchdog timer function by forcing the RST and RST* signals to the active state when the strobe input (ST*) is not stimulated for a predetermined time period. This time period is set for 220 ms typically with a maximum time- out of 300 ms. The watchdog timer begins timing out from the set time period as soon as RST and RST* are inactive. If a high-to-low transition occurs at the ST* input prior to time-out, the watchdog timer is reset and begins to time out again. To guarantee that the watchdog timer does not time-out, a high-to-low transition must occur at or less than 150 ms from watchdog timer reset If the watchdog timer is allowed to time out, the RST and RST* outputs are driven to the active state for 40 ms maximum The ST* input can be derived from microprocessor address, data, and/or control signals. Under normal operating conditions, these signals would routinely reset the watchdog timer prior to time out. If the watchdog timer is not required, it may be disabled by permanently grounding the IN input pin which also disables the NMI* output (described below). If the NMI* signal is required, the watchdog may also be disabled by leaving the ST* input open. The watchdog timer is also disabled as soon as the IN input fells to VTP or, if IN is not used and grounded, as soon as VCC fells to VCCTP. The watchdog will then become active as VCC rises above VCCTP and the IN pin rises above VTP.
PUSH-BUTTON RESET: An input pin is provided on the auxiliary chip for direct connection to a push-button. The push-button reset input requires an active low signal. Internally, this input is debounced and timed such that the RST and RST* outputs are driven to the active state for 40 ms maximum. This 40 ms delay begins as the push-button is released from low level. A typical example of the power monitor, watchdog timer, and pushbutton reset is shown in Figure 2. NONMASKABLE INTERRUPT: The auxiliary chip generates a non- maskable interrupt NMI* for early warning of power failure to a microprocessor.
A precision comparator 110 monitors the voltage level at the input pin IN relative to a reference generated by the internal bandgap. The IN pin is a high impedance input allowing for a user defined sense point using a simple resistor voltage divider network (Figure 3) to interface with high voltage signals. This sense point may be derived from the regulated 5 volt supply, or from a higher DC voltage level closer to the AC power input. Since the IN trip point VTP is 2.54 volts, the proper values for R1 and R2 can easily be determined. Proper operation of the auxiliary chip requires that the voltage at the IN pin be limited to 5 volts maximum. Therefore, the maximum allowable voltage at the supply being monitored (VMAX) can also be derived as shown. A simple approach to solving this equation is to select a value for R2 of high enough impedance to keep power consumption low, and solve for R1. The flexibility of the IN input pin allows for detection of power loss at the earliest point in a power supply system, maximizing the amount of time for microprocessor shut-down between NMI* and RST or RST*. When the supply being monitored decays to the voltage sense point, the auxiliary chip drives the NMI* output to the active state for a minimum of 200 microseconds, but does not hold it active. If the pin is connected to VCC, the NMI* output will pulse low as VCC decays to VCCTP if RC pin at ground (see reset control section). NMI* will not pulse low if the RC pin is connected to VCCO. The NMI* power fail detection circuitry also has built in time domain hysteresis. That is, the monitored supply is sampled periodically at a rate determined by an internal ring oscillator running at approximately 47 kHz (20 ms/cycle). Three consecutive samplings of out-of tolerance supply (below VSENSE) must occur at the IN pin to active NMI. Therefore, the supply must be below the voltage sense point for approximately 60 ms or the comparator will reset.
The NMI* signal has been defined, in the presently preferred embodiment, as a pulse, rather than a level, because a constant output would keep some microprocessors from going into their lowest-power mode. Thus, the microprocessor cannot simply scan the NMI* signal to see where the power supply voltage level is.
However, the microprocessor can query the auxiliary chip to see where the power suppfy level is. Whenever the auxiliary chip receives a pulse from the microprocessor on the ST* line, it will return a pulse to the microprocessor on the NMI* line, but only if the system supply voltage is less than that required to trip the NMI* interrupt
Figure 14 is a simplified version of Figure 7, which shows this relationship more clearly. In this diagram, V1 refers to the voltage at which the auxiliary chip generates an interrupt (on line NMI*, in the presently preferred embodiment); voltage V2 is the voltage at which the auxiliary chip generates a reset (this is equal to voltage VCCTP, in the presently preferred embodiment); and voltage V3 is the voltage at which comparator 130 connects the internal VCC to VBAT rather than to VCCI (which is the externally supplied power voltage, as opposed to the on- chip supply VCC). Correspondingly, several voltage domains are indicated:
in domain 1, VCCI > V1;
in domain 2, V1 > VCCI > V2;
in domain 3, V2 > VCCI > V3.
The microprocessor can send a query to the auxiliary chip by pulsing the strobe pin ST*. When this occurs, the auxiliary chip will reply with a pulse on line NMI* if the supply level is then in zone 2, but not If the power supply level is in zone 1. Thus, the microprocessor can use this exchange to recognize whether it is in zone 2. This is important because the watchdog operation is turned off in zone 2, so that otherwise it might be possible for a stuck condition to occur.
MEMORY BACKUP: The auxiliary chip provides all necessary functions required to battery back up a static RAM. First, a switch is provided to direct power from the incoming 5 volt supply (VCC) or from a battery (VBAT) whichever is greater. This switched supply (VCCO) can also be used to battery back CMOS microprocessors. (The reset control and wake control sections provide further discussion regarding nonvolatile microprocessor applications.) Second, the same power fail detection described in the power monitor section is used to inhibit the chip enable input (CEI*) and hold the chip enable ouφut (CEO*) to within 0.3 volts of VCC or battery supply. This write protection mechanism occurs as VCC falls below VCCTP as specified previously. If CEI* is low at the time power fail detection occurs, CEO* is held in its present state until CEI* is returned high, or if CEI* is held low, CEO* is held active for tCE maximum. This delay of write protection until the current memory cycle is completed prevents the corruption of data. If CEO* is in an inactive state at the time of VCC fail detection, CEO* will be unconditionally disabled within tCF. During nominal supply conditions CEO* will follow CEI* with a maximum propagation delay of 20 ns.
Figure 4 shows a typical nonvolatile SRAM application. If nonvolatile operation is not required, the battery input pin VBAT must be grounded. In order to conserve battery capacity during storage and/or shipment of a system, the auxiliary chip provides a freshness seal to electronically disconnect the battery.
Figure 5 depicts the three pulses below ground on the IN pin required to invoke the freshness seal. The freshness seal will be disconnected and normal operation will begin when VCC is next applied to a level above
VBAT.
POWER SWITCHING: For certain high current battery backup applications, the 5 volt supply and battery supply switches internal to the auxiliary chip may not be large enough to support the given load within significant voltage drop. For these applications, the PF and PF* outputs are provided to gate external switching devices to switch supply from VCC to battery on power down and from battery to VCC on power up. The transition threshold for PF and PF* is set to the external battery voltage VBAT (see Figure 6). The load applied to the PF pin from the external switch will be supplied by the battery. Therefore, this load should be taken into consideration when sizing the battery.
RESET CONTROL: Two modes of operation on power down and power up are available, depending upon the level of the reset control
(RC) input pin. The level of this pin distinguishes timing and level control on RST, RST*, and NMI* outputs for volatile processor operation versus non-volatile battery backed (or battery operated) processor applications.
With the RC pin tied to ground, operation is as described above. This mode is used where non-volatile processor functionality is not required. The timing relations of this mode are shown in Figure 7 (when the power goes down) and Figure 8 (when the power is restored). Notice that upon VCC going out of tolerance (at VCCTP) the RST and RST* outputs are driven active (within a delay tRPD) and that RST and NMI* follow VCC as the supply decays. Also, on power up, RST follows VCC and RST* is held active; both remain active for a time tRST after VCC becomes valid. NMI* will pulse low for 500 microsec maximum, and then will follow VCC.
With the RC pin tied to VCCO, operation is as shown in the timing diagrams of Figure 6 (when the power goes down) and Figure 8 (when the power is restored). This mode of operation is especially useful for applications in which the processor is made nonvolatile with an external source and allows the processor to power down into a "stop" mode as signaled from NMI* at an earlier voltage level.
As power goes down, RST and RST* are not forced active as
VCC collapses to VCCTP, and RST* is held at a high level by the battery as VCC falls below battery potential. The NMI* output pin will pulse low for tN MI following a low voltage detect at the pin of VTP. However, NMI* will also be held at a high level following tNMI by the battery as VCC decays below VBAT.
On power up, RST and RST* are held inactive until VCC reaches power valid VCCTP, then RST and RST* are driven active for tRST. NMI* will pulse low for 500 microseconds maximum then will follow VCC during the power up sequence.
Thus, once NMI* is driven active, the processor may power down into a "stop" mode and subsequently be restarted by any of several different signals. If VCC does not fall below VCCTP, the processor will be restarted by the reset derived from the watchdog timer as the IN input rises above Vtp. If VCC falls below VCCTP but not below VBAT, the processor will be restarted as VCC rises above VCCTP. If VCC fells below VBAT, the reset outputs will be forced active the next time VCC rises above VCCTP as shown in the power up timing diagram. If the IN pin falls below VTP during an active reset, the reset outputs will be forced inactive by the NMI* output An additional NMI* pulse for "stop" mode control will follow the initial NMI*, by stimulation of the ST* input, at tSTN. The pushbutton input PBRST* may be used, whenever VCC is above VBAT, to drive the reset outputs and thus restart the processor.
WAKE CONTROL/SLEEP CONTROL: The Wake/Sleep Control input WK/SC* allows the processor to disable all comparators on the auxiliary chip, processor, and nonvolatile static RAM to maintain nonvolatility in the lowest power mode possible. The processor may invoke the sleep mode in battery operate applications to conserve capacity when an absence of activity is detected. The auxiliary chip may subsequently be restarted by a high to low transition on the PBRST* input via human interface by a keyboard, touch pad, etc. The processor will then be restarted as the watchdog timer times out and drives RST and RST* active. The auxiliary chip can also be woken up by forcing the WK/SC* pin high from an external source. Also, if the auxiliary chip is placed in sleep mode by the processor, and VCC later falls below VBAT, the auxiliary chip will wake up the next time VCC rises above VCCTP. That is, the auxiliary chip leaves the sleep mode as the power is falling below VBAT. (As noted, when the processor invokes the sleep mode during normal power valid operation, all operation on the auxiliary chip is disabled, thus leaving the NMI*, RST and RST* outputs disabled as well as the ST* and IN inputs.) The PBRST* input will also become inactive when the main battery supply falls below the IN input at VTP or the backup 3 volt supply at VBAT. Subsequent power up with a new main battery supply will activate the RST and RST* outputs as the main supply rises above VCCTP. (The timing diagram provides further details of the wake/sleep control.) A high to low transition on the WK/SC* pin must follow a high to low transition on the ST* pin by twc to invoke a "sleep" mode for the auxiliary chip.
Figure 13 shows the overall electrical organization of the auxiliary chip of the presently preferred embodiment. A first comparator 110 compares the input voltage at the IN pin with the reference voltage provided by bandgap voltage reference generator 200. The output of this comparator is connected through rime delay stage 112 to one-shot 114. Thus one- shot 114 will provide a pulse on the NMI* output pin when comparator 110 sees that the voltage at pin IN has fallen below limits. (As noted, a resistive divider network would commonly be used to scale the supply voltage appropriately for this comparison.)
A second comparator 120 compares a fraction of the supply voltage input VCCI (scaled by resistors 121) with the reference voltage provided by bandgap voltage reference generator 200. The output of this comparator 120 is connected, through time delay stage 122 and OR gate
410, to reset control logic 400.
Note that the output of comparator 120 is also connected (through the time delay block 122) to control a chip-enable-control gate 139, so that incoming chip-enable signals CEI* will n ot be passed through to signal CEO* when VCCI has fallen below VCCTP.
A third comparator 130 compares the external VCC supply voltage input (VCCI) against the battery voltage VBAT, and switches large transistors 132, 134, and 136 (via NAND gate 135) appropriately, to connect the external power supply output VCCO and the internal power supply lines VCC to VBAT if VCCI falls significantly below VBAT.
The NAND gate 135 also receives an input from freshness seal logic 131, so that, if the input from freshness seal logic 131 is low, transistor 136 will never turn on. In this case, if the external power supply VCCI fails, comparator 130 will drive its output PF positive, turning off transistors 132 and 134, and pin VCCO will be floated. This avoids any loss of battery lifetime due to drain from external devices. The freshness seal logic 131 decodes signals received on the SLP* pin, as described above, to enter or leave the freshness-seal mode.
The output of the bandgap voltage reference 200 is also used by a current source (not separately shown), which provides a temperature- independent current to the ring oscillator. This current source also provides a temperature-independent current to the voltage reference 200. The voltage reference 200 uses this current to define charging relationships, and also makes use of the output of the ring-oscillator (to chipper-stabilize the comparators). The ring oscillator 310 provides a constant-frequency output to watchdog timer 300. The watchdog timer 300 provides timing and alarm functions, such as those performed by commercially available part DS1286. (This integrated circuit and its data sheet are available from Dallas Semiconductor Corporation, 4350 Beltwood Parkway, Dallas TX 75244, and are both hereby incorporated by reference.) In particular, the watchdog timer will provide an input to OR gate 410, to generate a reset, if it counts down through its time-out limit without having received a pulse on pin ST*.
The sleep-control logic 500 receives inputs from the SLP* pin and also from the ST* pin. The outputs of this logic (not shown) can disable not only watchdog timer 300, but also are connected to disable bandgap voltage reference 200, oscillator 310, and comparators 110 and 120. Comparator 130 is not disabled, but is switched into a low-power mode. In comparator 130's low-power mode, its bias current is reduced, so that it can still detect when VCCI falls below VBAT, it reacts more slowly.
The third input to the OR gate 410 is from the pushbutton input PBRST*, which is cleaned up by debounce logic 420. Thus, the user can manually initiate a reset of the microprocessor at any time, without power- cycling the whole system, simply by hitting a pushbutton connected to this logic input
Thus, the reset control logic 400 can be conditionally commanded to initiate a reset by any of the three inputs just described. However, the reset control logic 400 also receives external control input RC, and also is connected to see the outputs of comparators 110 and 120, to implement the logical relations described above.
The following tables give specific values for some of the voltage and timing parameters just referred to, as used in the specific context of the presently preferred embodiment. It must be understood that these specific values are given merely to provide a wealth of detail regarding the preferred embodiment, and for better understanding of Figures 6-9, and do not by any means delimit necessary features of the invention.
Figure imgf000018_0001
Figure imgf000019_0001
NOTES:
1All voltages referenced to ground
2Measured with VCCO pin, CEO* pin, PF pin, and NMI* pin open. 3ICCO1 is the maximum average load which the DS1236 can supply at VCC - 3V through the VCCO pin during normal 5 volt operation.
4ICCO2 is the maximum average load which the DS1236 can supply through the VCCO pin during data retention battery supply operation.
5With tR = 5 us
6VCCO is approximately VBAT -0.5V at 1 μA load.
7Sleep mode is not invoked.
8Sleep mode is invoked.
9tREC is the minimum time required before memory access to allow for deactivation of RST and RST*.
10tCE maximum must be met top insure data integrity on power loss. 11In input is less than VTP but VCC greater than VCCTP. 12All outputs except RST* which is 50 μa min.
Further Modifications and Variations
It will be recognized by those skilled in the art that the innovative concepts disclosed in the present application can be applied in a wide variety of contexts. Moreover, the preferred implementation can be modified in a tremendous variety of ways. Accordingly, it should be understood that the modifications and variations suggested below and above are merely illustrative. These examples may help to show some of the scope of the inventive concepts, but these examples do not nearly exhaust the full scope of variations in the disclosed novel concepts.
For example, the microprocessor's programming can use the power- down warning interrupt to trigger a state-save operation.
For another example, the disclosed auxiliary chip can be used with a wide variety of microprocessors, microcontrollers, or microcomputers, including ones which do and ones which do not have their own battery back-up supplies; 8-bit, 16-bit, 32-bit, or other architectures; general- purpose processors, DSPs (digital signal processors), or ASICs (application-specific integrated circuits); numeric or symbolic processors; and others.
For another example: a wide range of system contexts are enabled by the disclosed inventions, including (for example) portable computers, device controllers, desk-top computers, sub-processors which perform management functions in minicomputer, mainframe, or even supercomputer systems.
As will be recognized by those skilled in the art, the innovative concepts described in the present application can be modified and varied over a tremendous range of applications, and accordingly their scope is not limited except by the allowed claims.

Claims

CLAIMS What is claimed is:
1. An integrated circuit, for performing power management functions for an associated integrated circuit comprising:
a voltage comparison circuit, connected to monitor the voltage of an external power supply connection with reference to a reference- voltage source, and to output an interrupt to the associated circuit if said comparison circuit indicates that the voltage of the external power supply has declined from a target voltage to a first voltage;
reset control logic, cormected to output reset signals to the associated circuit if said comparison circuit indicates that the external power supply voltage has strengthened to a second voltage after previously having declined to a third voltage, but not if the external power supply voltage has declined to a second voltage from said target voltage without having passed through said third voltage;
wherein said target voltage is more extreme than said first voltage, said first voltage is more extreme than said second voltage, and said second voltage is more extreme than said third voltage.
2. The integrated circuit of Claim 1, wherein said reference-voltage source is a bandgap-voltage-reference.
3. The integrated circuit of Claim 1, wherein said target voltage is more positive than said first voltage, said first voltage is more positive than said second voltage, and said second voltage is more positive than said third voltage.
4. The integrated circuit of Claim 1, further comprising chip-enable control logic, connected to receive an externally generated chip-enable input signal, and to provide corresponding chip-enable outputs externally only if said comparison circuit indicates that the external power supply voltage is sufficiently near said target voltage.
5. An integrated circuit, for performing power management functions for an associated integrated circuit, comprising:
a voltage comparison circuit, connected to monitor the voltage of an external power supply with reference to a reference-voltage source;
a watchdog timer circuit, connected to generate an interrupt if activity is not detected on an input pin for a predetermined period of time;
sleep control logic, connected
to place said auxiliary integrated circuit into a sleep mode by disabling multiple circuits thereof, including said watchdog timer circuit,
if a sleep command is received externally on a first pin within a timing window defined with respect to a pulse which may be received on a second pin.
6. An integrated circuit, for performing power management functions for an associated integrated circuit, comprising:
a voltage comparison circuit, connected to monitor the voltage of an external power supply with reference to a reference-voltage source;
and interrupt generation logic, cormected
to output a pulsed interrupt signal to the associated circuit when said comparison circuit first indicates that the voltage of the external power supply has declined from a target voltage to a first voltage, and to output a further pulsed interrupt signal to the associated circuit if a pulse is received from the associated integrated circuit while said comparison circuit still indicates that the voltage of the external power supply has declined from said target voltage to said first voltage and has not yet exceeded said first target voltage;
wherein said target voltage is more extreme than said first voltage.
7. The integrated circuit of Claim 5, wherein said reference-voltage source is a bandgap-voltage-reference.
8. The integrated circuit of Claim 5, wherein said voltage comparison circuit comprises multiple comparators.
9. The integrated circuit of Claim 5, further comprising reset control logic, connected to output reset signals to the associated circuit if said comparison circuit indicates that the external power supply voltage is at a second voltage which is less extreme than said first voltage.
10. An integrated circuit, for performing power management functions for an associated integrated circuit, comprising:
a voltage comparison circuit, connected to monitor the voltage of an external power supply connection with reference to a reference- voltage source, and to output an interrupt to the associated circuit if said comparison circuit indicates that the voltage of the external power supply has declined from a target voltage to a first voltage;
reset control logic, connected to operate selectably in either a first mode or a second mode, wherein,
in said first mode, said reset control logic outputs reset signals to the associated circuit if said comparison circuit indicates that the external power supply voltage has strengthened to a second voltage after previously having declined to a third voltage, but not if the external power supply voltage has declined to a second voltage from said target voltage without having passed through said third voltage; and
in said second mode, said reset control logic outputs reset signals to the associated circuit whenever said comparison circuit indicates that the external power supply voltage has declined to a second voltage from said target voltage without having passed through said third voltage;
wherein said target voltage is more extreme than said first voltage, said first voltage is more extreme than said second voltage, and said second voltage is more extreme than said third voltage.
11. A system, comprising:
a complex programmable logic integrated circuit; an auxiliary integrated circuit, connected to provide reset and/or interrupt signals to said complex integrated circuit, comprising:
a voltage comparison circuit, connected to monitor the voltage of an external power supply connection with reference to a reference-voltage source, and to output an interrupt to the associated circuit if said comparison circuit indicates that the voltage of the external power supply has declined from a target voltage to a first voltage;
reset control logic, connected to output reset signals to the associated circuit if said comparison circuit indicates that the external power supply voltage has strengthened to a second voltage after previously having declined to a third voltage, but not if the external power supply voltage has declined to a second voltage from said target voltage without having passed through said third voltage; wherein said target voltage is more extreme than said first voltage, said first voltage is more extreme than said second voltage, and said second voltage is more extreme than said third voltage;
a watchdog timer circuit, connected to generate an interrupt if activity is not detected on an input pin for a predetermined period of time;
sleep control logic, connected to place said auxiliary integrated circuit into a sleep mode by disabling multiple circuits thereof, including said watchdog timer circuit, if a sleep command is received externally on a first pin within a timing window defined with respect to a pulse which may be received on a second pin;
interrupt generation logic, connected to ouφut a pulsed interrupt signal to said complex integrated circuit when said comparison circuit first indicates that the voltage of the external power supply has declined from a target voltage to a first voltage, and to output a further pulsed interrupt signal to the associated circuit if a pulse is received from said complex integrated circuit while said comparison circuit still indicates that the voltage of the external power supply has declined from said target voltage to said first voltage and has not yet exceeded said first target voltage; wherein said target voltage is more extreme than said first voltage.
12. The system of Claim 11, wherein said complex programmable logic integrated circuit is a microprocessor, and wherein said auxiliary integrated circuit is connected to provide reset signals to said microprocessor, and is also connected to provide interrupt signals to said microprocessor.
13. The system of Claim 11, wherein said complex integrated circuit is a microprocessor; and wherein said auxiliary integrated circuit is connected to provide reset signals to said microprocessor, and is also connected to provide interrupt signals to said microprocessor; wherein said microprocessor, at power-up, can send a pulse to said auxihary chip on a predetermined control line, and said auxihary chip responds to said pulse with a conditional response which provides said microprocessor with information on the voltage level of the system power supply.
14. The system of Claim 11, further comprising an input channel, connected to provide data inputs to said complex integrated circuit, and an output channel, connected so that said complex integrated circuit can provide outputs therethrough to one or more storage devices, channel interfaces, processors, and/or users.
PCT/US1989/005456 1988-12-09 1989-11-30 Auxiliary integrated circuit for microprocessor management WO1990006555A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
US28326888A 1988-12-09 1988-12-09
US28279388A 1988-12-09 1988-12-09
US282,793 1988-12-09
US07/283,267 US5754462A (en) 1988-12-09 1988-12-09 Microprocessor auxiliary with ability to be queried re power history
US283,268 1988-12-09
US283,267 1988-12-09

Publications (1)

Publication Number Publication Date
WO1990006555A1 true WO1990006555A1 (en) 1990-06-14

Family

ID=27403340

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/US1989/005456 WO1990006555A1 (en) 1988-12-09 1989-11-30 Auxiliary integrated circuit for microprocessor management
PCT/US1989/005544 WO1990006552A1 (en) 1988-12-09 1989-11-30 Battery-initiated touch-sensitive power-up

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/US1989/005544 WO1990006552A1 (en) 1988-12-09 1989-11-30 Battery-initiated touch-sensitive power-up

Country Status (1)

Country Link
WO (2) WO1990006555A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0496536A2 (en) * 1991-01-25 1992-07-29 International Business Machines Corporation Battery operated computer power management system
EP0504007A2 (en) * 1991-03-08 1992-09-16 Fujitsu Limited Battery powered unit
EP0563924A1 (en) * 1992-04-01 1993-10-06 Nec Corporation Control device for controlling a central processing unit on instantaneous voltage drop
EP0602264A1 (en) * 1992-12-15 1994-06-22 Siemens Aktiengesellschaft Method and arrangement for monitoring the operation of a digital circuit system
US6252823B1 (en) 1994-12-16 2001-06-26 Vu-Data Limited Recorder device, reading device and regulating device
DE102016107801B3 (en) 2016-04-27 2017-03-30 Zippy Technology Corp. A method for avoiding too frequent rebooting of a power supply device

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9106372D0 (en) * 1991-03-26 1991-05-15 Thomson Consumer Electronics Microcomputer reset circuit
DE59204697D1 (en) * 1992-08-20 1996-01-25 Siemens Ag Control, in particular for a motor vehicle locking system
JP3684590B2 (en) * 1994-04-25 2005-08-17 カシオ計算機株式会社 Reset control device and reset control method
WO1997024652A1 (en) * 1995-12-29 1997-07-10 Advanced Micro Devices, Inc. Integrated circuit reset incorporating battery monitor and watchdog timer
US5790873A (en) * 1996-07-23 1998-08-04 Standard Microsystems Corporation Method and apparatus for power supply switching with logic integrity protection
AUPQ088699A0 (en) * 1999-06-10 1999-07-01 Tentas Telehealth Pty Ltd Power saving leads status monitoring
US7589568B2 (en) * 2007-05-04 2009-09-15 Microchip Technology Incorporated Variable power and response time brown-out-reset circuit
US7907003B2 (en) 2009-01-14 2011-03-15 Standard Microsystems Corporation Method for improving power-supply rejection

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5566763A (en) * 1978-11-14 1980-05-20 Ricoh Co Ltd Detecting method for electric source voltage down
US4461003A (en) * 1980-06-04 1984-07-17 Nippondenso Co., Ltd. Circuit arrangement for preventing a microcomputer from malfunctioning
US4586179A (en) * 1983-12-09 1986-04-29 Zenith Electronics Corporation Microprocessor reset with power level detection and watchdog timer
US4591782A (en) * 1984-04-12 1986-05-27 General Electric Company Power supply and power monitor for electric meter
US4658352A (en) * 1983-06-02 1987-04-14 Pioneer Electronic Corporation Computer system with a back-up power supply
US4698748A (en) * 1983-10-07 1987-10-06 Essex Group, Inc. Power-conserving control system for turning-off the power and the clocking for data transactions upon certain system inactivity
US4742482A (en) * 1985-10-29 1988-05-03 Hayes Microcomputer Products, Inc. Modem controller
US4766567A (en) * 1984-04-19 1988-08-23 Ltd. Nippondenso Co. One-chip data processing device including low voltage detector
US4768147A (en) * 1984-10-15 1988-08-30 Societe D'applications Generales D'electricite Electric power supply device for microprocessors
US4809280A (en) * 1984-06-12 1989-02-28 Omron Tateisi Electronics Co. Microcomputer system with watchdog timer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4317181A (en) * 1979-12-26 1982-02-23 Texas Instruments Incorporated Four mode microcomputer power save operation
US4409665A (en) * 1979-12-26 1983-10-11 Texas Instruments Incorporated Turn-off-processor between keystrokes
US4851987A (en) * 1986-01-17 1989-07-25 International Business Machines Corporation System for reducing processor power consumption by stopping processor clock supply if a desired event does not occur

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5566763A (en) * 1978-11-14 1980-05-20 Ricoh Co Ltd Detecting method for electric source voltage down
US4461003A (en) * 1980-06-04 1984-07-17 Nippondenso Co., Ltd. Circuit arrangement for preventing a microcomputer from malfunctioning
US4658352A (en) * 1983-06-02 1987-04-14 Pioneer Electronic Corporation Computer system with a back-up power supply
US4698748A (en) * 1983-10-07 1987-10-06 Essex Group, Inc. Power-conserving control system for turning-off the power and the clocking for data transactions upon certain system inactivity
US4586179A (en) * 1983-12-09 1986-04-29 Zenith Electronics Corporation Microprocessor reset with power level detection and watchdog timer
US4591782A (en) * 1984-04-12 1986-05-27 General Electric Company Power supply and power monitor for electric meter
US4766567A (en) * 1984-04-19 1988-08-23 Ltd. Nippondenso Co. One-chip data processing device including low voltage detector
US4809280A (en) * 1984-06-12 1989-02-28 Omron Tateisi Electronics Co. Microcomputer system with watchdog timer
US4768147A (en) * 1984-10-15 1988-08-30 Societe D'applications Generales D'electricite Electric power supply device for microprocessors
US4742482A (en) * 1985-10-29 1988-05-03 Hayes Microcomputer Products, Inc. Modem controller

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0496536A2 (en) * 1991-01-25 1992-07-29 International Business Machines Corporation Battery operated computer power management system
EP0496536A3 (en) * 1991-01-25 1993-02-24 International Business Machines Corporation Battery operated computer power management system
EP0504007A2 (en) * 1991-03-08 1992-09-16 Fujitsu Limited Battery powered unit
EP0504007A3 (en) * 1991-03-08 1994-02-23 Fujitsu Ltd
EP0563924A1 (en) * 1992-04-01 1993-10-06 Nec Corporation Control device for controlling a central processing unit on instantaneous voltage drop
US5400341A (en) * 1992-04-01 1995-03-21 Nec Corporation Control device for controlling a central processing unit on instantaneous voltage drop
AU664734B2 (en) * 1992-04-01 1995-11-30 Nec Corporation Control device for controlling a central processing unit on instantaneous voltage drop
EP0602264A1 (en) * 1992-12-15 1994-06-22 Siemens Aktiengesellschaft Method and arrangement for monitoring the operation of a digital circuit system
US6252823B1 (en) 1994-12-16 2001-06-26 Vu-Data Limited Recorder device, reading device and regulating device
DE102016107801B3 (en) 2016-04-27 2017-03-30 Zippy Technology Corp. A method for avoiding too frequent rebooting of a power supply device

Also Published As

Publication number Publication date
WO1990006552A1 (en) 1990-06-14

Similar Documents

Publication Publication Date Title
US5175845A (en) Integrated circuit with watchdog timer and sleep control logic which places IC and watchdog timer into sleep mode
US5203000A (en) Power-up reset conditioned on direction of voltage change
US5903767A (en) Integrated circuit for providing supervisory functions to a microprocessor
US5249298A (en) Battery-initiated touch-sensitive power-up
US5590343A (en) Touch-sensitive switching circuitry for power-up
CA2210024C (en) Method and apparatus for power supply switching with logic integrity protection
EP1988443B1 (en) Suspend induced by AC power disturbance
US5708819A (en) Process and apparatus for generating power management events in a computer system
US5545935A (en) Rechargeable system with separate battery circuits in a common module
US6243831B1 (en) Computer system with power loss protection mechanism
US7139937B1 (en) Method and apparatus to establish safe state in a volatile computer memory under multiple hardware and software malfunction conditions
EP1416381B1 (en) System and method for preserving state data of a personal computer in a standby state in the event of an ac power failure
US6516418B1 (en) Portable computer having universal serial bus ports controlled power supply and a method of the same
WO1990006555A1 (en) Auxiliary integrated circuit for microprocessor management
US6212642B1 (en) Management of data before zero volt suspend in computer power management
US5664203A (en) Peripheral device input-initiated resume system for combined hibernation system and back-up power supply for computer
US7315955B2 (en) Circuit for turning off charging function to a battery of a system based on information set by user during the system in power-off state
US20120327749A1 (en) Electric Power System for Portable Electronic Device Having a Timekeeping Circuit
KR20020050270A (en) Dynamically adjusting a processor's operational parameters according to its environment
KR960015228A (en) Network hibernation system
JPH06502510A (en) Slow memory refresh on computers with limited power supplies
US7293188B2 (en) Low voltage detection system
KR100278355B1 (en) Computer system and control method of this computer system
WO1996018940A9 (en) Management of data before zero volt suspend in computer power management
US6408397B1 (en) Using RTC wake-up to enable recovery from power failures

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): JP KR US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE ES FR GB IT LU NL SE