OP7100
26
s
Hardware
ADM691 Supervisor Chip
A voltage divider consisting of R29 and R30 across the DC input provides
a
PFI
signal to the ADM691 watchdog supervisor. The ADM691 chip
performs the following services.
Watchdog timer resets the microprocessor if software hangs.
Power-failure shutdown and reset.
Generates an early warning power-failure interrupt (PFI) that lets the
system know when power is about to fail.
Memory protection feature prevents writes to RAM when power is low.
Supports battery backup.
Handling Power Fluctuations
During a normal power-down, an interrupt service routine is used in
response to a nonmaskable interrupt (NMI) to save vital state information
for the application for when power recovers. The amount of code that the
interrupt serive routine can execute depends on the voltage rate of de-
crease.
Theoretically, a power failure would cause a single
NMI.
Then, the inter-
rupt service routine would restore data from the previous state when the
voltage recovers.
However, fluctuations in the
DC
input line could cause the ADM691 to see
multiple crossings of the
1.3 V
input power-reset threshold. These multiple
negative-edge transitions would, in turn, cause the Z180 to see multiple
NMI
s.
When the Z180 generates an NMI, it saves the program counter (PC) on
the processors stack. It next copies the maskable interrupt flag, IEF1, to
IEF2 and zeroes IEF1. The Z180 will restore saved state information when
it executes a RETN (return from nonmaskable interrupt) instruction.
Ideally, the Z180 should be able to pop the stack and return to the location
where the program was first interrupted. But the original IEF1 flag is not
recoverable because the second and subsequent NMIs will have saved
IEF1 = 0 to IEF2. Also, depending on the number of fluctuations of the DC
input (and hence, the number of stacked NMIs), the processors stack can
overflow, possibly into your programs code or data.
The following sample program shows how to handle an
NMI
.
Содержание OP7100
Страница 1: ...OP7100 Serial Graphic Display User s Manual 019 0065 020418 J ...
Страница 10: ...OP7100 x s About This Manual ...
Страница 16: ...OP7100 16 s Overview ...
Страница 50: ...OP7100 50 s Hardware ...
Страница 51: ...OP7100 Software s 51 CHAPTER 4 SOFTWARE Chapter 4 describes the Dynamic C functions used with the OP7100 ...
Страница 72: ...OP7100 72 s Software ...
Страница 80: ...OP7100 80 s Graphics Programming ...
Страница 86: ...OP7100 86 s Installation ...
Страница 96: ...OP7100 96 s Specifications ...
Страница 110: ...110 s Serial Interface Board 2 OP7100 ...
Страница 111: ...OP7100 Backup Battery s 111 APPENDIX E BACKUP BATTERY ...
Страница 114: ...OP7100 114 s Backup Battery ...
Страница 122: ...OP7100 122 s Index ...