ENGLISH 简体中文 日本語 한국어  

    로그인 | 회원가입 


   
 
키워드나 부품번호를 입력해주세요    




애플리케이션 노트 892

Watchdog Timer Allows Entry to Test Mode

Abstract: The following application note discusses how to enter test modes in microprocessor-based devices using the MAX6360 microprocessor supervisor.

Manuals for microprocessor-based devices often include instructions for entering a "secret mode" in which you can test or reset the device. These instructions typically ask you to depress and hold one or two switches for a minimum time interval. You can adopt several measures to avoid accidentally triggering the test mode: Depress two keys, hold both keys simultaneously and continuously through the minimum interval, and make the interval two to five seconds long.

You can implement such designs with a handful of resistors, capacitors, and diodes and a comparator or two. Even if the circuitry is never used or appreciated by the customer, it raises cost and complexity while lowering system reliability. So a better alternative is to implement the function with minimal additional components.

Figure 1. You can activate IC1 only by depressing S1 and S2 simultaneously for at least 2.9sec.
Figure 1. You can activate IC1 only by depressing S1 and S2 simultaneously for at least 2.9sec.

Microprocessor-based devices usually include a voltage supervisor that monitors the VCC level and, in some cases, the core voltage. When either voltage drops below its threshold, the supervisor issues a reset to the microprocessor. IC1 in Figure 1 monitors two voltages, provides a power-on reset, and includes a watchdog timer. If you don't need the watchdog function elsewhere in the system, it can help to implement the switch-delay circuitry. Fortunately, the watchdog timer self-resets when the WDI (watchdog input) Pin 5 is floating, an indication that the circuit is disabled. Thus, you can implement the switch-delay circuitry by enabling and disabling the watchdog timer. Simply provide an interface between WDI and the switches that enable the test mode. The nominal time-out period for IC1's watchdog timer is 2.9sec.

WDI must float when both switches are open and when you depress only one. When you depress both, WDI must assume either the active-high or the active-low state as specified in the data sheet. Note that WDI can remain floating while sinking 5 µA. The npn transistor isolates WDI from the switches' pulldown resistors. When S2 closes, current flows through the base of the transistor to WDI, which remains floating because the 1MΩ resistor limits the current to less than 5µA. The transistor turns on and forces WDI to the active-high level only when you depress S1 as well. If you depress the switches in reverse order, WDI switches high only when you close S2. You must close both switches to activate the watchdog timer. After the timer activates, IC1 imposes a 2.9sec delay before asserting a reset (Pin 1). If you release either or both switches during this 2.9sec period, the timer resets. Thus, for the minimal cost of an npn transistor and three resistors, the supervisor IC can monitor two voltages, provide a power-on-reset signal, and implement a dual-switch delay function. To monitor one voltage, you can replace IC1 with a MAX823.

A similar version of this article appeared in the July 19, 2001 issue of EDN magazine.


관련 부품  APP 892: Dec 19, 2001
MAX6360 듀얼/트리플 전압 µP 감시 회로 전체 데이터 시트
(PDF, 336kB)
무료 샘플

자동 업데이트
관심 분야의 애플리케이션 노트가 나올 때 자동으로 업데이트를 원하십니까? 그렇다면 EE-Mail™을 신청하십시오.


We Want Your Feedback!



의견을 보내주세요!
위 내용이 도움이 되셨나요?
여러분의 의견을 기다립니다 — Maxim은 보내주신 정정이나 제안사항을 반영하고 있습니다. 이 페이지를 평가하고 의견을 보내주십시오.

 

다운로드, PDF 형식다운로드, PDF 형식 (28kB)
 AN892, AN 892, APP892, Appnote892, Appnote 892

        •         •         •     개인정보보호 정책     •     법적 고지

    Copyright © 2009 by Maxim Integrated Products