AN3271 Application note Using the STM6600, STM6601 smart push-button on/off controller By Ales Sura Introduction This application note provides a detailed description of the primary applications and benefits of the STM6600-STM6601. These devices allow easy and safe control of applications run with one or two push-buttons by securely starting or powering down a system and also resetting the processor or disabling power in case of a non-responding application (e.g. code in a dead loop). This makes the STM660x devices suitable for a broad spectrum of applications such as terminals, audio and video players, smartphones, PDAs, PCs, or any portable device. A smart on/off controller monitors the state of the connected push-button(s) as well as ensures sufficient supply voltage. An enable output controls the power for the application through a MOSFET transistor, DC-DC converter, regulator, etc. (see Figure 1). The device also offers additional features such as a precise 1.5 V voltage reference with very tight accuracy of ±1%, which can be used as a reference for A/D and D/A conversion. The current consumption is a very low 6 µA during normal operation and only 0.6 µA current during standby. The STM660x is available in the tiny TDFN12 package and is offered with several optional features such as selectable threshold, hysteresis, timeouts, output types, etc. (see datasheet for available part options). Figure 1. Simplified hookup $#$#CONVERTER 0OWER-/3&%4 REGULATORETC 6 ## 6 "!4 0# %. 0" 234 234 ).4 .-) 34-X 32 #32$ 03 (/,$ )/ #32$ !- June 2012 Doc ID 17933 Rev 2 1/29 www.st.com Contents AN3271 Contents 1 Basic functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1 Safe power-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Interrupt assertion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.3 Power-down after long push (optional) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4 Reset after long push (optional) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Pin descriptions and typical application hookup . . . . . . . . . . . . . . . . . . 7 3 Timing accuracy note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4 STM660x advantages over alternative solutions . . . . . . . . . . . . . . . . . 10 4.1 Using a microprocessor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.2 Discrete solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 5 Push-button input glitch immunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 6 Various connections of push-buttons . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.1 Single button control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.2 Alternative single button control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6.3 Multiple button control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 7 Low battery detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 8 Automatic confirmation of power-up . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 9 Automatic confirmation of power-up + immediate shutdown after PB button press or undervoltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 10 Automatic confirmation of power-up + immediate shutdown after PB button press only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 11 VCC transient protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 12 High voltage connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2/29 Doc ID 17933 Rev 2 AN3271 13 Contents Demonstration boards, promotion tools . . . . . . . . . . . . . . . . . . . . . . . . 25 13.1 STM660x demonstration board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 13.2 Interposer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 13.3 Demonstration board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 14 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 15 Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 16 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Doc ID 17933 Rev 2 3/29 List of figures AN3271 List of figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. Figure 21. Figure 22. Figure 23. Figure 24. 4/29 Simplified hookup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Simplified timing sequence for option “enable deasserted after long push” . . . . . . . . . . . . . 5 Simplified timing sequence for option “reset asserted after long push” . . . . . . . . . . . . . . . . 6 Typical application hookup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Simplified relationship among VCCLO, INT and PBOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Recommended layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Push-button noise immunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Typical connection of PB and SR buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Single button control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Alternative single button control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Multiple button control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Adding external logic to implement more inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Using an LED for low battery voltage detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Automatic confirmation of power-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Automatic power-up confirmation + shutdown after PB button press or undervoltage . . . . 17 Waveform for shutdown after PB button press . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Waveform for shutdown after undervoltage detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Automatic power-up confirmation + shutdown after PB button press only . . . . . . . . . . . . . 20 VCC transient protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 High voltage connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 STM660x demonstration board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Block diagram of STM660x demonstration board. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 STM660x interposer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 STM660x demonstration board for evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Doc ID 17933 Rev 2 AN3271 Basic functionality 1 Basic functionality 1.1 Safe power-up If the system is off, press the PB button to safely power up. EN output is asserted and power for the application is enabled. Proper power-up has to be confirmed from a processor by PSHOLD assertion, otherwise EN is deasserted. 1.2 Interrupt assertion If the device is on, press the PB button to assert an interrupt to the processor. The processor can then perform backup routines and prepare the application for shutdown, reset, display the menu, etc. 1.3 Power-down after long push (optional) If the application is not responding to the interrupt (e.g. program freezes), press the PB button and SR button simultaneously to power down the application regardless of processor response. The time needed for both buttons to be held is adjustable by external capacitor CSRD. Figure 2. Simplified timing sequence for option “enable deasserted after long push” 108&361 */5&33615 TIPSUQVTI 108&3 %08/ MPOHQVTI 1# 43 &/ */5 JOUFSSVQU JOUFSSVQU ". 1. For successful power-up the battery voltage has to be above VTH+ threshold. Doc ID 17933 Rev 2 5/29 Basic functionality 1.4 AN3271 Reset after long push (optional) Holding the PB and SR buttons simultaneously asserts a reset regardless of processor response - i.e. if the application is not responding to an interrupt (e.g. program freezes) (see Figure 3). The time needed for both buttons to be held is adjustable by an external capacitor (CSRD). Figure 3. Simplified timing sequence for option “reset asserted after long push” 108&3 61 */5&33615 TIPSUQVTI 108&3%08/ MPOHQVTI 1# 43 345 */5 JOUFSSVQU JOUFSSVQU ". 1. For successful power-up the battery voltage has to be above VTH+ threshold. 6/29 Doc ID 17933 Rev 2 AN3271 2 Pin descriptions and typical application hookup Pin descriptions and typical application hookup VCC - power supply input is monitored at startup and during operation to have sufficient voltage. PB - push-button input is used to start an application or assert an interrupt during normal operation or possibly power down the application. SR - Smart Reset button, when pressed together with PB, can either power down the application or reset the device regardless of system response. EN (EN) - active high or active low enable output (device ordering option) can drive various power switches from PMOS to DC-DC converters, regulators, etc. and therefore switch power for the application. It is asserted by a PB button press and confirmed by PSHOLD assertion (VCC has to be above threshold the whole time). Enable output can be deasserted by the following events: ● Startup is not properly confirmed by PSHOLD assertion ● PSHOLD is deasserted (driven low) during operation ● Undervoltage condition is detected ● Long push of PB and SR buttons is detected (valid only for devices with option “EN deasserted by long push”) ● PSHOLD is not asserted after reset invoked by a long push of PB and SR buttons (valid only for devices with option “RST deasserted by long push”) RST - system reset, output is asserted during power-up or after a long push of PB and SR buttons simultaneously (device option). PSHOLD - assertion of the input confirms proper power-up, deassertion disables power for the application. CSRD - external capacitor connected to CSRD pin determines how long the PB and SR buttons must be held in order to recognize a long push and either reset the system or disable the system power (based on option used), the constant is 10 s / µF. VREF - highly precise 1.5 V voltage reference output with ±1% accuracy (can be used as a reference for analog-digital converters, for example). A 1 µF CREF capacitor on the output is mandatory. Doc ID 17933 Rev 2 7/29 Pin descriptions and typical application hookup Figure 4. AN3271 Typical application hookup $#$#CONVERTER POWER-/3&%4 REGULATORETC 2 6## ,%$ 2 %.%. 2 2 234 6## ,/ )/ 03 (/,$ 0" 34- 34- .-)OR).4 ).4 0" /54 )/ 62%& 32 #32$ '.$ 6$$ 234 -#5 #05 "!3%"!.$ #2%& #32$ !-V VCCLO - output signal is asserted if the battery voltage is insufficient, an LED indicates low battery voltage. INT - interrupt output indicates either low battery voltage or a press of the PB button during operation. After asserting an interrupt, the processor should prepare the system for powerdown. PBOUT - output is asserted if the PB button is pressed. The primary cause of INT assertion can be easily derived from this signal. The relationship among VCCLO, INT and PBOUT is clear from the simplified block diagram in Figure 5. Figure 5. Simplified relationship among VCCLO, INT and PBOUT 7$$ 7$$ -0 7 5) */5 1# 1#065 7 1# ". 8/29 Doc ID 17933 Rev 2 AN3271 3 Timing accuracy note Timing accuracy note External capacitor-adjusted timings and environmental considerations There are several external factors to be considered that may affect the accuracy of the timing related to the Smart ResetTM delay time tSRD. The timing specification found in the datasheet applies solely to the STM660x devices (i.e. it does not include an ideal timing capacitor, external tolerances, temperature dependencies nor leakages). The STM660x device is designed to meet strict requirements for the lowest possible current consumption and to maintain the basic timing constant of 10 s / µF, therefore the constant current used to charge the external timing capacitor is low, in the order of 100 nA. Any external leakage due to poor quality timing capacitors or excessive humidity (especially if the dew point is exceeded and moisture condenses on the PCB tracks) may cause a significant leakage current which is deducted from the constant charging current that the device provides. This results in a reduction of the charging current of the real external timing capacitor which increases the Smart Reset delay (tSRD). To minimize this effect, the PCB tracks between the CSRD pin and its respective timing capacitor should be as short as possible, properly covered with solder mask and isolated from other tracks (especially VSS) by as great a distance as possible (see Figure 6 for recommended layout). Also, lowleakage timing capacitors (ceramic or film capacitor) should be used. Figure 6. Recommended layout Doc ID 17933 Rev 2 9/29 STM660x advantages over alternative solutions 4 STM660x advantages over alternative solutions 4.1 Using a microprocessor AN3271 Some applications use a processor for monitoring the push-buttons. This solution however has some disadvantages compared to the STM660x. Disadvantages of monitoring using a microprocessor ● If the processor is frozen, the control of the buttons is lost ● Processor can NOT go into standby mode as it must continuously monitor the pushbuttons ● Additional load on the processor (I/O pins are needed, the software has to monitor the push-buttons) ● Noise sensitivity Advantages of monitoring with the STM660x 4.2 ● Functionality independent from the processor ● Push-buttons monitored even if power for the system is disabled and the STM660x is in standby mode (negligible current consumption of 0.6 µA) ● Glitch immunity - glitches shorter than 32 ms are ignored ● High ESD protection of the inputs Discrete solution Other applications try to replicate STM660x functionality by using a discrete solution. Disadvantages of a discrete solution ● Significant space on the PCB is needed ● High current consumption ● Sensitivity to accuracy of discrete components ● Noise sensitivity Advantages of using the STM660x 10/29 ● Compact solution, which needs a tiny fraction of PCB space compared to a discrete solution (at least 20 discrete components are needed to reproduce only a basic functionality of the STM660x devices which are available in a tiny TDFN12 - 2 x 3 mm package) ● Low current consumption of 6 µA and only 0.6 µA in standby mode ● Push-buttons monitored even if power for the system is disabled and the STM660x is in standby mode (negligible current consumption of 0.6 µA) ● Glitch immunity - glitches shorter than 32 ms are ignored ● High ESD protection of the inputs Doc ID 17933 Rev 2 AN3271 5 Push-button input glitch immunity Push-button input glitch immunity A mechanical push-button connected to PB or SR input can produce a quite noisy signal during switching. The STM660x ignores all the glitches and asserts an enable output (EN or EN) only if the push-button input stays low for the debounce time period tDEBOUNCE (typically 32 ms). Figure 7. Push-button noise immunity tDEBOUNCE 32 ms (typ.) PB and SR inputs are also equipped with high ESD protection of ±8 kV (human body model). Doc ID 17933 Rev 2 11/29 Various connections of push-buttons 6 AN3271 Various connections of push-buttons The PB and SR inputs are usually controlled by two separate push-buttons (see Figure 8), however both inputs can be connected to a single push-button as shown in Figure 9. Figure 8. Typical connection of PB and SR buttons 1# 43 45.Y ". 6.1 Single button control ● If the device is off, press the push-button to power up. ● If the device is on, press the push-button to power down. ● If the application is not responding, press and hold the push-button to power down or reset the application regardless of processor response. Figure 9. Single button control 1# 43 45.Y ". 12/29 Doc ID 17933 Rev 2 AN3271 6.2 Various connections of push-buttons Alternative single button control The hookup in Figure 10 might suggest identical functionality compared to hookup in Figure 9. However SR input is monitored for falling edge after power-up and must not be grounded permanently. In addition some flavors have internal pull-up resistor connected to SR input, which would create additional current. Therefore hookup in Figure 9 is recommended for single button control. Figure 10. Alternative single button control 7 $$ 1# "EEJUJPOBM DPOTUBOU DVSSFOU /PU SFDPNNFOEFE 43 45. Y ".7 1. Internal pull-up resistor is available on STM660xA, STM660xB, STM660xC and STM660xD. Doc ID 17933 Rev 2 13/29 Various connections of push-buttons 6.3 Note: AN3271 Multiple button control ● PB and SR inputs can be controlled by mechanical or electrical switches connected in series or in parallel (see Figure 11 and Figure 12). ● A reset circuitry with active low and open drain output is used as an example of an electrical switch. This reset can monitor supply voltage other than VCC and trigger power-down of an application if it drops below the voltage threshold. Any output connected to PB or SR input must be open drain. Figure 11. Multiple button control 3FTFUXJUI PQFOESBJO PVUQVU 345 1# 1# 1# 43 43 45. Y 43 ". Figure 11 shows how two switches can be wired together to implement the AND function requiring that both SR1 and SR2 be pressed to drive SR low. In some applications, switches are packaged such that they share a common ground pin and cannot be connected in that manner. Figure 12 shows how such switches can be used to implement this active low AND function. In this case, a conventional OR gate is used. When both its inputs are low, its output drives SR low. Figure 12. Adding external logic to implement more inputs 7$$ 1# 1# 03 43 43 43 45.Y ". 14/29 Doc ID 17933 Rev 2 AN3271 7 Low battery detection Low battery detection The LED in Figure 13 is ON if: ● PB button is pressed for power-up and low battery voltage is detected (i.e. VCC < VTH+). ● Application is powered (i.e. EN or EN is asserted) and undervoltage is detected. Thus the user can be easily informed of the undervoltage condition. VCCLO is an open drain output. Figure 13. Using an LED for low battery voltage detection $#$#CONVERTER POWER-/3&%4 REGULATOR ETC 2 6"!4 ,%$ 6## 6## ,/ %.%. 34-X !- Doc ID 17933 Rev 2 15/29 Automatic confirmation of power-up 8 AN3271 Automatic confirmation of power-up Connect PSHOLD directly to the output voltage VOUT in order to enable automatic confirmation of power-up (see Figure 14). This allows immediate power-up but does not guarantee proper startup of the application. The enable signal EN (EN) is asserted immediately after pushing the PB button, thus enabling VOUT. Since PSHOLD is connected directly to VOUT, power-up is confirmed immediately and EN (EN) stays asserted. Please note that a small delay can be caused by capacitors connected between ground and VOUT elsewhere in the application. Figure 14. Automatic confirmation of power-up 6). $#$#CONVERTER POWER-/3&%4 REGULATORETC 6/54 6"!4 6## %.%. 03(/,$ 34-X 16/29 Doc ID 17933 Rev 2 !- AN3271Automatic confirmation of power-up + immediate shutdown after PB button press or und- 9 Automatic confirmation of power-up + immediate shutdown after PB button press or undervoltage In addition to automatic power-up confirmation, power can be disabled immediately after a PB button press or undervoltage detection. In this way the application does not service the interrupt, which decreases its complexity. However as there is no time for data backup and since the application no longer controls power-down, this solution might be considered as less secure in some cases. If INT is connected to the PSHOLD signal, the power for the application is disabled immediately after pressing the PB button or undervoltage detection (see Figure 15). Figure 15. Automatic power-up confirmation + shutdown after PB button press or undervoltage $#$#CONVERTER POWER-/3&%4 REGULATOR ETC 2 6"!4 6## 0" %.%. 03 (/,$ ).4 34-X !- Doc ID 17933 Rev 2 17/29 Automatic confirmation of power-up + immediate shutdown after PB button press or undervoltA push-button (PB) press always asserts the interrupt (INT). Since INT is connected to PSHOLD they both go low at the same time, EN output is deasserted, and therefore power for the application is turned off (see Figure 16). Figure 16. Waveform for shutdown after PB button press 18/29 Doc ID 17933 Rev 2 AN3271Automatic confirmation of power-up + immediate shutdown after PB button press or undThe mechanism is similar during undervoltage detection. If the supply voltage (VCC) goes below the threshold (VTH–), the INT signal is asserted, PSHOLD goes low and power for application is turned off (see Figure 17). Figure 17. Waveform for shutdown after undervoltage detection ". Doc ID 17933 Rev 2 19/29 Automatic confirmation of power-up + immediate shutdown after PB button press only 10 AN3271 Automatic confirmation of power-up + immediate shutdown after PB button press only If PBOUT is connected to the PSHOLD signal, power for the application is disabled only after pressing the PB button (see Figure 18). This hookup only applies to the STM6601 device. For the STM6600, the PSHOLD state is checked after releasing the PB button. Since PSHOLD is held low by PBOUT, the STM6600 would never start. Figure 18. Automatic power-up confirmation + shutdown after PB button press only $#$#CONVERTER POWER-/3&%4 REGULATOR ETC 2 6"!4 6## %.%. 03 (/,$ 0" 0" /54 34- !- Note: 20/29 This hookup is not suitable for the STM6600. Doc ID 17933 Rev 2 AN3271 11 VCC transient protection VCC transient protection The absolute maximum supply voltage of the STM660x is 7 V. The immunity of high voltage transients can be improved by using a Zener diode Z1 and current limiting resistor R1 (see Figure 19). The Zener diode does not draw any current within the operating VCC voltage range (VCC specified from 1.6 V to 5.5 V). A possible PMOS transistor can be protected by Zener diode Z2 similarly (see Figure 19). The diode should have a breakdown voltage smaller than the PMOS gate-source breakdown voltage. Figure 19. VCC transient protection .OISYSUPPLY VOLTAGE : 6 2 2EDUCEDSUPPLY VOLTAGE : 6 # N& 6## 2 %. 34-X !- Doc ID 17933 Rev 2 21/29 High voltage connection 12 AN3271 High voltage connection Even if the maximum operating voltage of STM660x is 5.5 V, high voltage can be also monitored based on the hookup shown in Figure 20. This extends the application scope to devices such as notebooks, printers, network storages, etc. The supply voltage of the application is limited by the maximum drain-source voltage of the P-channel transistor. Figure 20. High voltage connection 63500,9 (IGHVOLTAGE 0CHANNEL TRANSISTOR 2 2 2 2 # N& .CHANNEL TRANSISTOR 6## %. 34-X !- The STM660x device has active high enable output (EN). The monitored voltage threshold is determined by resistors R 1 and R2. The STM660x current consumption has to be negligible compared to current through R1 and R2 in order to not influence the monitored threshold (approx. 100 µA is recommended). The threshold accuracy decreases with greater R1 and R2 resistors. With lower resistor values the accuracy improves, but the overall current consumption increases.The value of resistors R1 and R2 can be calculated according to the following equation: Equation 1 V SUPPLY – TH – V TH – R 1 = -------------------------------------------------------l 12 where R1 is the first resistor of the voltage divider, VSUPPLY–TH is the monitored threshold of the high voltage power supply, VTH– is the undervoltage threshold of the STM660x, I12 is the current through the R1/R 2 divider. 22/29 Doc ID 17933 Rev 2 AN3271 High voltage connection Equation 2 V TH – R 2 = R 1 --------------------------------------------------------V SUPPLY – TH – V TH – where R2 is the second resistor of the voltage divider. The tolerance of resistors R1 and R2 affects the precision of the VSUPPLY-TH threshold. R3 / R4 ratio has to guarantee a secure open and close of the P-channel transistor. It is possible to use for example dual N-channel / P-channel transistor STS8C5H30L in a tiny SO8 package, which can switch voltages up to 30 V and currents up to 5 A. The absolute maximum gate-source voltage VGS has to be considered, therefore: Equation 3 V SUPPLY – MAX – V GS R 4 = -----------------------------------------------------l 34 where R4 is the resistor between the P-channel transistor and N-channel transistor, VSUPPLY–MAX is the possible maximum of VSUPPLY voltage, VGS is the absolute maximum gate-source voltage or lower, I34 is the current through the R3 and R 4 resistors. Equation 4 V GS R 3 = ---------l 34 where, R3 is the resistor between the gate and source of the P-channel transistor. Example Let's use STM6600ES24DM6F, which has active high EN output and undervoltage threshold VTH– = 3.2 V. We would like to monitor the supply voltage VSUPPLY for 18 V, the current through the resistor divider R1/R2 is I12 = 100 µA and therefore: Equation 5 V SUPPLY – TH – V TH – 18 – 3.2 - = 148kΩ R 1 = -------------------------------------------------------- = ---------------------------–6 l 12 100 × 10 The closest resistor value from the E6 series is R1 = 150 kΩ. Doc ID 17933 Rev 2 23/29 High voltage connection AN3271 Equation 6 V TH – 3.2 R 2 = R1 --------------------------------------------------------- = 150000 --------------------- = 32.43kΩ V SUPPLY – TH – V TH – 18 – 3.2 The closest resistor value from the E6 series is R2 = 33 kΩ. The monitored threshold is slightly different due to the E6 series resistors: Equation 7 V SUPPLY – TH = R 1 × l 12 + V TH – 3 = 150 × 10 × 100 × 10 –6 + 3.2 = 18.2V If using R1 = 150 kΩ and R2 = 33 kΩ, the monitored high voltage threshold is 18.2 V. The tolerance of resistors R1 and R2 affects the precision of the VSUPPLY-TH threshold. Let's use dual N-channel / P-channel transistor STS8C5H30L, which has an absolute maximum gate-source voltage of 16 V. In order to keep some margin, let's use VGS = 15 V for the calculation. The maximum supply voltage is 30 V (it can't be higher than the maximum drain-source voltage of the P-channel transistor). The current through resistors R3 and R4 is 100 µA. Resistor R4 is: Equation 8 V SUPPLY – MAX – V GS ( 30 – 15 ) R 4 = ------------------------------------------------------- = ---------------------------= 150kΩ –6 l 34 100 × 10 And resistor R3 is: Equation 9 V GS 15 - = 150kΩ R 3 = ----------- = ---------------------------–6 l 34 100 × 10 The maximum gate threshold voltage of the P-channel transistor is VGS(th)-MAX = 2.5 V, therefore the P-channel transistor is securely driven for supply voltages down to: Equation 10 3 3 R3 + R4 150 × 10 + 150 × 10 ----------------------------------------------------------------------------V SUPPLY – MIN = V GS = 2.5 = 5V 3 R3 150 × 10 24/29 Doc ID 17933 Rev 2 AN3271 13 Demonstration boards, promotion tools Demonstration boards, promotion tools A complete set of demonstration/promotion tools is available for various purposes, from easy high-level application functional demonstration down to tools for detailed testing (see below). Please contact a local ST sales office for availability. 13.1 STM660x demonstration board The board allows demonstration of the following STM660x features: ● Push-button and Smart Reset application control; ● Hardware power-down of a non-responding application; ● Undervoltage protection with safe application power-down. Various states can be easily simulated by push-buttons and slide switches. Operating modes are indicated by LEDs and changing the display backlight. Figure 21. STM660x demonstration board Doc ID 17933 Rev 2 25/29 Demonstration boards, promotion tools AN3271 The demonstration board consists of battery protection provided by the STBP120, which protects the battery from undervoltage and overvoltage. The L6924D is used for proper battery charging. The STBB1 converts battery voltage based on a preset slide switch position and switching power on/off for the application. The STM660x smart supervisor controls power management based on the position of both slide switches. A dual color display indicates either proper functionality (blue backlight) or a frozen application (red backlight). See also the block diagram in Figure 22. Figure 22. Block diagram of STM660x demonstration board 53" "ATTERY PROTECTION !DAPTER INPUT #HARGER)# ,I)ON BATTERY $UAL COLOR DISPLAY $#$# CONVERTER 3MART SUPERVISOR 3IMPLE LOGICWITH 23FLIPFLOP !- 13.2 Interposer An interposer with the STM660x part can be easily plugged into a breadboard, soldered, or effectively used with an evaluation board (see below), etc. A breadboarded interposer can be easily measured or connected to the rest of the application. It is also much easier to solder wires to an interposer for any necessary external connection. An interposer combined with an evaluation board provides flexibility, allowing various parts to be changed quickly in the socket. Figure 23. STM660x interposer 26/29 Doc ID 17933 Rev 2 AN3271 13.3 Demonstration boards, promotion tools Demonstration board The board can be connected to all of the STM660x pins through test points and has terminals for the connection of supply voltage VBAT and switched output voltage VOUT. Two push-buttons are used to assert the PB and SR signals and five LEDs indicate the status of VBAT, PBOUT, VCCLO, EN, and VOUT. Any STM660x part soldered on the interposers can be easily replaced. Other functionalities of the board include deassertion of output voltage using jumper assert_PSHOLD, selection of EN output (active low or active high), and optional adjustment of the Smart Reset delay tSRD using jumper CSRD2. Figure 24. STM660x demonstration board for evaluation Doc ID 17933 Rev 2 27/29 Conclusion 14 AN3271 Conclusion The STM660x provides an easy solution for safe control of application power management and simultaneously offers adaptability to a broad spectrum of applications. It can be used in complex systems, where each step is controlled by a processor, but also as a simple connection without the need for additional parts. For easy evaluation and demonstration purposes, a variety of tools are available. 15 Links For additional information about the STM660x, please visit the Power Path Management web page at: www.st.com/powerpath or attend our online video seminar on the same page. 16 Revision history Table 1. 28/29 Document revision history Date Revision Changes 16-Dec-2010 1 Initial release. 26-Jun-2012 2 Updated Section 6.2: Alternative single button control and Section 15: Links. Doc ID 17933 Rev 2 AN3271 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. © 2012 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com Doc ID 17933 Rev 2 29/29