COP8-REF-FL1 National Semiconductor, COP8-REF-FL1 Datasheet - Page 42

no-image

COP8-REF-FL1

Manufacturer Part Number
COP8-REF-FL1
Description
KIT REF DESIGN FOR COP8SDR9
Manufacturer
National Semiconductor
Series
COP8™r
Type
MCUr
Datasheet

Specifications of COP8-REF-FL1

Design Resources
COP8 Flash Ref Design Flyer
Contents
PCB, Control Interface, Documentation and 9V Battery
For Use With/related Products
COP8SDR9
Lead Free Status / RoHS Status
Not applicable / Not applicable
www.national.com
9.0 Interrupts
user program should contain the Software Trap routine to
perform a recovery procedure rather than a return to normal
execution.
Under normal conditions, the STPND flag is reset by a
RPND instruction in the Software Trap service routine. If a
Programming Example: External Interrupt
WAIT:
PSW
CNTRL
RBIT
RBIT
SBIT
SBIT
SBIT
JP
.
.
.
.=0FF
VIS
.
.
.
.=01FA
.ADDRW SERVICE
.
.
(Continued)
=00EF
=00EE
0,PORTGC
0,PORTGD
IEDG, CNTRL
GIE, PSW
EXEN, PSW
WAIT
FIGURE 25. VIS Flow Chart
; G0 pin configured Hi-Z
; Ext interrupt polarity; falling edge
; Set the GIE bit
; Enable the external interrupt
; Wait for external interrupt
; The interrupt causes a
; branch to address 0FF
; The VIS causes a branch to
; interrupt vector table
; Vector table (within 256 byte
; of VIS inst.) containing the ext
; interrupt service routine
42
programming error or hardware condition (brownout, power
supply glitch, etc.) sets the STPND flag without providing a
way for it to be cleared, all other interrupts will be locked out.
To alleviate this condition, the user can use extra RPND
instructions in the main program and in the Watchdog ser-
vice routine (if present). There is no harm in executing extra
RPND instructions in these parts of the program.
20026434

Related parts for COP8-REF-FL1