Application Examples
EXAMPLE 2: POWER-FAIL/WATCHDOG TIMER
Objectives
•
Write routines for system initialization and system restart after
power-fail.
•
Write a routine that handles the non-maskable interrupt that may
be caused by power-fail.
•
Write a routine that handles the maskable interrupt from the
watchdog timer timeout.
•
Determine in the main program whether system restart or system
initialization is in process. Call the appropriate routine and
execute it.
System Level Issues
As discussed in Chapter 3, "Theory of Operation," AC power-fail
protection makes use of the non-maskable interrupt to indicate that
AC power is failing and DC power will soon follow. As shown in the
following example, the AC power detection inputs to the board may
also be used to detect DC power failure, as is the case with a system
powered solely by a large battery.
Adjusting the DC input voltage level is accomplished on the
ZT 8809A by changing the resistor divider network R1 and R2 so that
the input voltage to the power monitor chip, the DS 1231-35, is above
2.5 V when power is good. An equation for adjusting these values is
given on page 4-29. Refer to the discussion in Chapter 3 for further
detail.
4-28
Содержание ZT 8809A
Страница 15: ...Tables Table B 9 J5 Pin Assignments B 17 Table B 10 J6 Pin Assignments B 18 Table B 11 J7 Pin Assignments B 19...
Страница 334: ...Jumper Configurations W49 W48 A W47 B A B W37 W66 A W50 B C J7 W67 Figure A 11 W37 W47 50 W66 W67 Jumper Blocks A 34...
Страница 346: ...Jumper Configurations W61 W60 W62 W63 W64 A B A B W65 Figure A 13 W60 W65 Jumper Block A 46...