OP7100
Memory, I/O Map, and Interrupt Vectors
s
105
Nonmaskable Interrupts
The
/NMI
line normally connects to the power-failure output of the
ADM691 supervisor. A nonmaskable interrupt (NMI) occurs when
PFI
falls to 1.25 V ± 0.05 V. This advanced warning allows the program to
perform some emergency processing before an unwanted power-down
occurs.
The NMI is edge-sensitive and cannot be masked by software. When
activated, the NMI disables all other interrupts (except TRAP), and begins
execution from logical address 0x66.
The following example shows how to handle a power-failure interrupt.
#JUMP_VEC NMI_VEC myint
interrupt retn myint(){
body of interrupt routine
while(!IBIT(WDO,0)){}
// input voltage is still below the threshold
// that triggered the NMI
return;
// if just a power glitch, return
}
Jump Vectors
These special interrupts occur in a different manner. Instead of loading the
address of the interrupt routine from the interrupt vector, these interrupts
cause a jump directly to the address of the vector, which contains a jump
instruction to the interrupt routine. The following example illustrates a
jump vector.
0x66nonmaskable power-failure interrupt
Since nonmaskable interrupts (NMI) can be used for Dynamic C communi-
cations, an interrupt vector for power failure is normally stored just in front
of the Dynamic C program. Use the command
#JUMP_VEC NMI_VEC
name
to store the vector here.
The Dynamic C communication routines relay to the jump vector when the
NMI is caused by a power failure rather than by a serial interrupt.
Содержание 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 ...