STWD100 Watchdog timer circuit Features ■ Current consumption 13 µA typ. ■ Available watchdog timeout periods are 3.4 ms, 6.3 ms, 102 ms and 1.6 s ■ Chip-enable input ■ Open drain or push-pull WDO output ■ Operating temperature range: –40 to +125 °C ■ Package SOT23-5, SC70-5 (SOT323-5) July 2008 SOT23-5 (WY) Rev 5 SC70-5, SOT323-5 (W8) 1/25 www.st.com 1 Contents STWD100 Contents 1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 Watchdog input (WDI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 Watchdog output (WDO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3 Chip-enable input (EN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.4 Applications information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.4.1 Interfacing to microprocessors with bidirectional reset pins . . . . . . . . . . . 8 3 Watchdog timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 Maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5 DC and AC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7 Part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 8 Package marking information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 9 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 2/25 STWD100 List of tables List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Table 9. SOT23-5 and SC70-5 (SOT323-5) pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Operating and AC measurement conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 DC and AC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 SOT23-5 - 5-lead small outline transistor package mechanical data . . . . . . . . . . . . . . . . . 19 SC70 (SOT323-5) – 5-lead small outline transistor package mechanical data . . . . . . . . . 21 Ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Device versions with marking descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3/25 List of figures STWD100 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. 4/25 SOT23-5 and SC70-5 (SOT323-5) package connections . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Logic diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Open drain WDO output connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Interfacing to microprocessors with bidirectional reset I/O . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Power-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Normal triggering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Timeout without re-trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Trigger after timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Enable pin, EN, triggering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 SOT23-5 - 5-lead small outline transistor package mechanical drawing . . . . . . . . . . . . . . 18 SC70 (SOT323-5) - 5-lead small outline transistor package outline. . . . . . . . . . . . . . . . . . 20 STWD100 1 Description Description The STWD100 watchdog timer circuits are self-contained devices which prevent system failures that are caused by certain types of hardware errors (non-responding peripherals, bus contention, etc.) or software errors (bad code jump, code stuck in loop, etc.). The STWD100 watchdog timer has an input, WDI, and an output, WDO (see Figure 2). The input is used to clear the internal watchdog timer periodically within the specified timeout period, twd (see Section 3: Watchdog timing). While the system is operating correctly, it periodically toggles the watchdog input, WDI. If the system fails, the watchdog timer is not reset, a system alert is generated and the watchdog output, WDO, is asserted (see Section 3: Watchdog timing). The STWD100 circuit also has an enable pin, EN (see Figure 2), which can enable or disable the watchdog functionality. The EN pin is connected to the internal pull-down resistor. The device is enabled if the EN pin is left floating. Figure 1. SOT23-5 and SC70-5 (SOT323-5) package connections WDO 1 GND 2 EN 3 5 VCC 4 WDI AI12639b Table 1. SOT23-5 and SC70-5 (SOT323-5) pin description Pin number Name Description 1 WDO Watchdog output 2 GND Ground 3 EN Enable pin 4 WDI Watchdog Input 5 VCC Supply voltage 5/25 Description STWD100 Figure 2. Logic diagram VCC WDI STWD100 WDO EN GND AI12640a Note: WDO output is available in open drain or push-pull configuration. Figure 3. WDI Block diagram WDI Transitional Detector Watchdog Timer Output Timing WDO CLR (STWD100xP only) EN GND AI12641b Note: 6/25 Positive pulse on enable pin EN longer than 1 µs resets the watchdog timer. STWD100 2 Operation Operation The STWD100 device is used to detect an out-of-control MCU. The user has to ensure watchdog reset within the watchdog timeout period, otherwise the watchdog output is asserted and MCU is restarted. The STWD100 can be also enabled or disabled by the chipenable pin. 2.1 Watchdog input (WDI) The WDI input has to be toggled within the watchdog timeout period, tWD, otherwise the watchdog output, WDO, is asserted. The internal watchdog timer, which counts the tWD period, is cleared either: 1. by a transition on watchdog output, WDO (see Figure 8) or 2. by a pulse on enable pin, EN (see Figure 10) or 3. by toggling WDI input (low-to-high on all versions and high-to-low on STWD100xW, STWD100xX and STWD100xY only). The pulses on WDI input with a duration of at least 1 µs are detected and glitches shorter than 100 ns are ignored. If WDI is permanently tied high or low and EN is tied low, the WDO toggles every 3.4 ms (tWD) on STWD100xP and every tWD and tPW on STWD100xW, STWD100xX and STWD100xY (see Figure 8). 2.2 Watchdog output (WDO) When the VCC exceeds the timer startup voltage VSTART after power-up, the internal watchdog timer starts counting. If the timer is not cleared within the tWD, the WDO will go low (see Figure 6). After exceeding the tWD, the WDO is asserted for tPW on STWD100xW, STWD100xX and STWD100xY regardless of possible WDI transitions (see Figure 9). On STWD100xP WDO is asserted for a minimum of 10 µs and a maximum of tWD after exceeding the tWD period (see Figure 8 and Figure 9). The STWD100 has an active-low open drain or push-pull output. An external pull-up resistor connected to any supply voltage up to 6 V is required in case of open drain WDO output (see Figure 4). Select a resistor value large enough to register a logic low, and small enough to register a logic high while supplying all input current and leakage paths connected to the reset output line. A 10 kΩ pull-up resistor is sufficient in most applications. 7/25 Operation STWD100 Figure 4. Open drain WDO output connection STWD100 +3.3 V 5 V System +5.0 V 10 k VCC WDI WDO EN GND GND AI12645a 2.3 Chip-enable input (EN) All states mentioned in Section 2.1: Watchdog input (WDI) and Section 2.2: Watchdog output (WDO) are valid under the condition that EN is in logical low state. The behavior of EN is common to all versions (i.e. STWD100xP, STWD100xW, STWD100xX and STWD100xY). If the EN goes high after power-up in less than tWD from the moment that VCC exceeds the timer startup voltage, VSTART, the WDO will stay high for the same time period as EN, plus tWD (see Figure 10). If the EN goes high anytime during normal operation, the WDO will go high as well, but the minimum possible WDO pulse width is 10 µs (see Figure 10). The pulses on the EN pin with a duration of at least 1 µs are detected and glitches shorter than 100 ns are ignored. 2.4 Applications information 2.4.1 Interfacing to microprocessors with bidirectional reset pins Microprocessors with bidirectional reset pins can contend with the STWD100 watchdog output, WDO. For example, if the WDO output is driven high and the micro wants to pull it low, signal contention will result. To prevent this from occurring, connect a 4.7 kΩ resistor between the WDO output and the micro's reset I/O as in Figure 5. 8/25 STWD100 Operation Figure 5. Interfacing to microprocessors with bidirectional reset I/O Buffered Reset to other System Components VCC STWD100 WDO GND VCC 4.7 k Microprocessor RST GND AI12643a 9/25 Watchdog timing 3 Watchdog timing Figure 6. Power-up STWD100xP STWD100 Power up: Watchdog timer starts running as soon as VCC rises above ~ 2.2 V. ~ 2.2 V VCC At power up, WDI is a don't care. It can be 1 or 0. Can also transition from high to low. WDI Low-to-high transition on WDI will reset timer. X (ie, 1 or 0 but not floating) tWD But no input transition is required to begin timing. WDO EN STWD100xW, STWD100xX, STWD100xY X Power up: Watchdog timer starts running as soon as VCC rises above ~ 2.2 V. ~ 2.2 V VCC At power up, WDI is a don't care. It can be 1 or 0. Low-to-high or high-to-low transition on WDI will reset timer. But no input transition is required to begin timing. WDI X (ie, 1 or 0 but not floating) tWD WDO EN X AI12662 10/25 STWD100 Figure 7. Watchdog timing Normal triggering STWD100xP VCC Trigger only on rising edge. Falling edge is ignored. WDI tWD WDO EN X STWD100xW, STWD100xX, STWD100xY VCC Trigger on rising and falling edge of WDI. WDI < tWD tWD WDO EN X AI12663 11/25 Watchdog timing Figure 8. STWD100 Timeout without re-trigger STWD100xP After a timeout and WDO is asserted, it will stay low for tWD time period, then return high. If no WDI trigger event occurs, WDO will again assert low after tWD time period. This cycle repeats until a WDI trigger event occurs. STWD100xW, STWD100xX, STWD100xY After a timeout and WDO is asserted, it will stay low for tPW time period, then return high. If no WDI trigger event occurs within tWD time period, WDO will again assert low. This cycle repeats until a WDI trigger event occurs while WDO is high. VCC WDI tWD tWD tWD tWD tWD tWD WDO EN X VCC WDI tWD tPW tWD tPW tWD tPW tWD WDO EN X AI12664 12/25 STWD100 Figure 9. Watchdog timing Trigger after timeout STWD100xP VCC If a WDI trigger occurs after the WDO output has asserted, the output will de-assert, but with a pulse width of at least 10 µs (min). WDI t WD WDO EN STWD100xW, STWD100xX, STWD100xY If a WDI trigger occurs after the WDO output has asserted, it is ignored, and the output remains asserted for the specified time, tPW. X >10 µs min. VCC Trigger ignored while WDO is low. WDI t PW WDO EN X AI12665 13/25 Watchdog timing STWD100 Figure 10. Enable pin, EN, triggering STWD100xx ~ 2.2 V Whenever EN is high, all timing is reset, and the part is disabled. VCC Timing commences from 0 when EN goes low. WDI X (ie, 1 or 0 but not floating) WDO < tWD EN X tWD DISABLED STWD100xx VCC If EN goes high while WDO is asserted, WDO will de-assert but only after the nominal minimum pulse width of 10 µs has elapsed. WDI X (ie, 1 or 0 but not floating) tWD WDO tWD >10 µs min. EN X DISABLED AI12666 14/25 STWD100 4 Maximum ratings Maximum ratings Stressing the device above the rating listed in Table 2 may cause permanent damage to the device. These are stress ratings only and operation of the device at these or any other conditions above those indicated in the operating sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Refer also to the STMicroelectronics SURE Program and other relevant quality documents. Table 2. Absolute maximum ratings Symbol TSTG TSLD(1) Parameter Storage temperature (VCC off) Lead solder temperature for 10 seconds Value Unit –55 to 150 °C 260 °C –0.3 to VCC +0.3 V VIO Input or output voltage VCC Supply voltage –0.3 to 7.0 V IO Output current 20 mA PD Power dissipation 320 mW 1. Reflow at peak temperature of 260 °C (total thermal budget not to exceed 245 °C for greater than 30 seconds). 15/25 DC and AC parameters 5 STWD100 DC and AC parameters This section summarizes the operating measurement conditions, and the DC and AC characteristics of the device. The parameters in the DC and AC characteristics tables that follow, are derived from tests performed under the measurement conditions summarized in Table 3. Designers should check that the operating conditions in their circuit match the operating conditions when relying on the quoted parameters. Table 3. Operating and AC measurement conditions Parameter Value Unit VCC supply voltage 2.7 to 5.5 V Ambient operating temperature (TA) –40 to 125 °C ≤ 5 ns Input pulse voltages 0.2 to 0.8 VCC V Input and output timing ref. voltages 0.3 to 0.7 VCC V Input rise and fall times 16/25 STWD100 DC and AC parameters Table 4. DC and AC characteristics Sym Description Test condition(1) Min Typ Max Unit 2.7 5 5.5 V 13 26 µA –1 +1 µA Input leakage current (WDI) –1 +1 µA VIH Input high voltage (WDI, EN) 0.7 VCC VIL Input low voltage (WDI, EN) VOL Output low voltage (WDO) VOH Output high voltage (WDO) (push-pull VCC ≥ 2.7 V, ISOURCE = 500 µA only) VCC ≥ 4.5 V, ISOURCE = 800 µA VCC Operating voltage ICC VCC supply current ILO Open drain output leakage current from output to the GND or VCC V 0.3 VCC V VCC ≥ 2.7 V, ISINK = 1.2 mA 0.3 V VCC ≥ 4.5 V, ISINK = 3.2 mA 0.4 V 0.8 VCC V 0.8 VCC V 1 µs Enable pin ( EN) EN input pulse width EN glitch rejection EN-to-WDO delay(2) EN pull-down resistance 100 ns 200 ns 32 63 100 kΩ 1.9 2.2 2.7 V STWD100xP 2.3 3.4 4.6 ms STWD100xW 4.3 6.3 8.6 ms STWD100xX 71 102 142 ms STWD100xY 1.12 1.6 2.24 s 140 210 280 ms Watchdog Timer VSTART Timer startup voltage tWD tPW Watchdog timeout period Watchdog active time WDI-to-WDO delay(3) WDI pulse width 150 1 WDI glitch rejection ns µs 100 ns 1. Valid for ambient operating temperature: TA = –40 to 125 °C; VCC = 2.7 V to 5.5 V except where noted. 2. WDO will assert for minimum of 10 µs even if EN transitions high. 3. WDO will assert for minimum of 10 µs regardless of transition on WDI (valid for STWD100xP only). 17/25 Package mechanical data 6 STWD100 Package mechanical data In order to meet environmental requirements, ST offers these devices in ECOPACK® packages. These packages have a Lead-free second level interconnect. The category of second Level Interconnect is marked on the package and on the inner box label, in compliance with JEDEC Standard JESD97. The maximum ratings related to soldering conditions are also marked on the inner box label. ECOPACK is an ST trademark. ECOPACK specifications are available at: www.st.com. Figure 11. SOT23-5 - 5-lead small outline transistor package mechanical drawing SOT23-5 18/25 STWD100 Package mechanical data Table 5. SOT23-5 - 5-lead small outline transistor package mechanical data millimeters inches Symbol A Typ Min Max Typ Min Max 1.20 0.90 1.45 0.047 0.035 0.057 A1 0.15 0.006 A2 1.05 0.90 1.30 0.041 0.035 0.051 B 0.40 0.35 0.50 0.016 0.014 0.020 C 0.15 0.09 0.20 0.006 0.004 0.008 D 2.90 2.80 3.00 0.114 0.110 0.118 D1 1.90 E 2.80 0.102 0.118 e 0.95 F 1.60 0.059 0.069 0° 10° 0.004 0.024 K L 0.35 0.075 2.60 3.00 0.110 0.037 1.50 1.75 0° 10° 0.10 0.60 0.063 0.014 19/25 Package mechanical data STWD100 Figure 12. SC70 (SOT323-5) - 5-lead small outline transistor package outline SC70(SOT323-5) 20/25 STWD100 Package mechanical data Table 6. SC70 (SOT323-5) – 5-lead small outline transistor package mechanical data mm inches Symbol Typ Min Max A 0.80 A1 Min Max 1.10 0.031 0.043 0.00 0.10 0.000 0.004 0.80 1.00 0.031 0.039 b 0.15 0.30 0.006 0.012 c 0.10 0.22 0.004 0.009 A2 0.90 Typ 0.035 D 2.00 1.80 2.20 0.079 0.071 0.087 E 2.10 1.80 2.40 0.083 0.071 0.094 E1 1.25 1.15 1.35 0.049 0.045 0.053 e 0.65 0.026 e1 1.30 0.051 L 0.36 0.26 0.46 0.014 0.010 0.018 < – 0° 8° – 0° 8° N 5 5 21/25 Part numbering STWD100 7 Part numbering Table 7. Ordering information scheme Example: STWD100 N P WY 3 Device type STWD100 Output type N: Open drain (active low) P: Push-pull (active low) Device version P: tWD = 3.4 ms, tPW = tWD = 3.4 ms W: tWD = 6.3 ms, tPW = 210 ms X: tWD = 102 ms, tPW = 210 ms Y: tWD = 1.6 s, tPW = 210 ms Package WY: SOT23-5 W8: SC70-5 (SOT323-5) Temperature range 3: –40 to +125 °C Shipping method E: ECOPACK® package, tubes F: ECOPACK® package, tape & reel Note: 22/25 Contact local ST sales office for availability of device versions other than STWD100NPWY3F. F STWD100 Package marking information 8 Package marking information Table 8. Device versions with marking descriptions Part number (1) Watchdog timing period Output configuration Topside marking Bottomside marking(2) twd tpw STWD100NPxxxx 3.4 ms 3.4 ms open drain WNP PYWW STWD100NWxxxx 6.3 ms 210 ms open drain WNW PYWW STWD100NXxxxx 102 ms 210 ms open drain WNX PYWW STWD100NYxxxx 1.6 s 210 ms open drain WNY PYWW STWD100PWxxxx 6.3 ms 210 ms push-pull WPW PYWW STWD100PXxxxx 102 ms 210 ms push-pull WPX PYWW STWD100PYxxxx 1.6 s 210 ms push-pull WPY PYWW 1. Contact local ST sales office for availability of device versions other than STWD100NPWY3F. 2. Description: P = assembly plant code, Y = assembly year (0 to 9), WW = assembly work week ((01 to 52). 23/25 Revision history 9 STWD100 Revision history Table 9. 24/25 Document revision history Date Revision Changes 08-Nov-2007 1 Initial release. 23-Jan-2008 2 Updated cover page and Table 4; document status upgraded to full datasheet. 28-Jan-2008 3 Updated cover page. 17-Mar-2008 4 Updated cover page, Figure 4, 7, 9, and Table 4, 8. 31-Jul-2008 5 Updated Features on cover page and Table 4. STWD100 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 AN AUTHORIZED ST REPRESENTATIVE, 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. © 2008 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 - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 25/25