cop87l88rb National Semiconductor Corporation, cop87l88rb Datasheet - Page 40

no-image

cop87l88rb

Manufacturer Part Number
cop87l88rb
Description
8-bit Cmos Otp Microcontrollers With 16k Or 32k Memory, Can Interface, 8-bit A/d, And Usart
Manufacturer
National Semiconductor Corporation
Datasheet
www.national.com
Interrupts
Programming Example: External Interrupt
WAIT:
INT_EXIT:
SERVICE:
PSW
CNTRL
RBIT
RBIT
SBIT
SBIT
SBIT
JP
.
.
.
.=0FF
VIS
.
.
.
.=01FA
.ADDRW SERVICE
.
.
RETI
.
.
RBIT
.
.
.
JP
(Continued)
INT_EXIT
EXPND, PSW
=00EF
=00EE
0,PORTGC
0,PORTGD
IEDG, CNTRL
EXEN, PSW
GIE, PSW
WAIT
; G0 pin configured Hi-Z
; Ext interrupt polarity; falling edge
; Enable the external interrupt
; Set the GIE bit
; 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
; Interrupt Service Routine
; Reset ext interrupt pend. bit
; Return, set the GIE bit
40

Related parts for cop87l88rb