One Button Turns Microprocesso

abstract: combining a low-dropout (ldo) linear regulator with an or gate produces a circuit that allows a single pushbutton to turn a microprocessor-based portable system on and off.
when placing a microprocessor-based portable device in your desk drawer for weeks or months, you should, of course, turn it off to save battery capacity (unless it requires power to maintain storage of volatile data or to keep a real-time-clock running). to save as much power as possible, it's usually best to turn off the processor, its peripherals, and all power-supply components. a simple circuit (figure 1) enables a single pushbutton to turn the power off and on. it includes a single or gate (ic1) and a second device (ic2) that combines a low-dropout linear regulator with microprocessor-reset circuit in a sot23, qfn, or ultra-chip-scale package.
figure 1. this 1-button turn-on/turn-off circuit is implemented with an ldo and a single or gate. the single-gate or circuit (tinylogic™ nc7sz32 in sc70 or chip-scale package) features low quiescent current, and is the only circuit powered during the off time. a user turns the device on by closing the on/off pushbutton switch, which produces a logic high at input 1 of the or gate. the gate output drives the ldo's shdn input high, causing the ldo output to ramp up toward its preset voltage. the ldo reset output of ic2 remains low until the ldo output voltage has stabilized for the desired reset timeout period. when ic2 de-asserts its reset output, the processor initiates code execution and drives a general-purpose output (gpo) high. with gpo high, the device remains in power-on mode when the pushbutton is released, but to ensure a proper turn-on sequence the on/off pushbutton must remain closed for an interval that includes the ldo turn-on time (100s of microseconds), the reset timeout period (100s of milliseconds to 10s), and the code-execution time for gpo high (100s of microseconds to one millisecond). to minimize the possibility of accidental turn-on due to a short pushbutton closure, include a delay of several seconds between the processor's emergence from reset and the gpo output's transition to high. (the ldo and µp power up when the switch is closed, but will automatically turn off unless the pushbutton remains closed for several seconds.) the µp's general-purpose input (gpi) is low during normal operation, and is monitored by the µp for a low-to-high transition. to initiate a power-off sequence, drive gpi high by closing the on/off switch. use processor code to de-bounce the switch and to monitor the gpi input for the desired turn-off timeout period. (that is, wait for the switch to remain closed for a few seconds before shutting down the device.) when the processor has validated the pushbutton power-down condition it drives gpo low, and when the pushbutton is released the or gate output goes low, shutting down the ldo and putting the device in a low-power shutdown mode. to ensure turn off when a user forgets to turn the device off manually, you can program the processor to turn off the ldo by driving gpo low, following a period of several minutes with no user activity. because gpi is high for both turn-on and turn-off, you need state-based processor code to interpret the appropriate gpo response. r1 and r2 ensure that the or-gate inputs remain low during the power off mode. becsuse the pushbutton switch monitors switch closure by connecting battery voltage to the gpi input, additional voltage-protection circuitry may be required for some µps. during normal operation, zener diode d2 and resistor r3 limit the gpi input to a level below the µp's vcc voltage. select a zener voltage below the nominal vcc level and above the logic high level for the µp's gpi input. during initial power-up, the gpi input approaches vzener before the ldo output turns on (the µp vcc equals 0v). combined with resistor r3, a low-voltage zener diode (d2) from gpi to vcc limits voltage and current at the gpi input until vcc is fully powered. that diode also helps to pull vcc up when the pushbutton switch is closed. (if the processor inputs tolerate high voltage, you can remove d1 and d2.) this circuit may fail to respond to on/off pushbutton commands if the processor does not include an internal watchdog timer, and therefore fails to execute code properly during on mode. you can preclude this problem by adding an optional pinhole reset, which allows the user to re-establish device control by resetting the µp. the pinhole reset ties directly to ic2's manual reset input, and requires no external debounce circuitry. when closed, the pinhole pushbutton forces the µp into reset, allows gpo to go low, and turns off the ldo. you can then re-power the device via the on/off button. the figure 1 circuit accepts a +5v supply and provides +3.3v at the regulator output. supply current for the entire circuit is 139ma with no load, and only 0.9µa in shutdown. ic2 starts under any load from 0ma to 300ma. this design idea appeared in the june 16, 2004 issue of ee times (planet analog supplement)

联发科宣布与爱立信合作 携手在非洲推出LTE-A
定制化手机相机ISP解决方案,只为那15%的耀人光彩
CANTAK牌UPS不工作的检修
爆料称iPhone 13将采用WiFi 6E技术
中国电信首三季度财务数据显示,营利2849.71亿元,比去年同期上升3.6%
One Button Turns Microprocesso
实测旧电脑升级SSD固态硬盘前后表现,可以再用几年
美光恢复对华为的部分芯片供应 禁运半月损失2亿美元!
USB主设备在嵌入式中的功能
机械制造中重要工艺之金属热处理技术
低功耗蓝牙(BLE)与超声波技术的对比分析
手机USB充电器制作方案
两种MOS管缓启动电路讲解
比克动力电池:借新能源之势,开拓小动力市场
银联宝为解密你所不了解的开关电源芯片!
诺基亚3310和三星s7的拍照结果,你觉得谁更胜一筹?
AI时代,谁能比GDDR性能更高?
二进制最佳接收原理 二进制最佳接收机的实现形式有哪两种?
中化国际积极推进锂电池和正极材料等建设项目
森国科碳化硅MOSFET-KM040120R的优势