English
Language : 

COP8SGE5_14 Datasheet, PDF (49/82 Pages) Texas Instruments – COP8SG Family 8-Bit CMOS ROM Based and OTP Microcontrollers with 8k to 32k Memory, Two Comparators and USART
www.ti.com
COP8SGE5, COP8SGE7, COP8SGH5
COP8SGK5, COP8SGR5, COP8SGR7
SNOS516E – JANUARY 2000 – REVISED APRIL 2013
Figure 36. VIS Flowchart
Programming Example: External Interrupt
PSW
=00EF
CNTRL
=00EE
RBIT
0,PORTGC
RBIT
0,PORTGD
SBIT
IEDG, CNTRL
SBIT
EXEN, PSW
SBIT
GIE, PSW
WAIT:
JP
WAIT
.
.
.
.=0FF
VIS
.
.
.
.=01FA
.ADDRW SERVICE
INT_EXIT:
SERVICE:
.
.
RETI
.
.
RBIT
EXPND, PSW
.
; 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
Copyright © 2000–2013, Texas Instruments Incorporated
Submit Documentation Feedback
49
Product Folder Links: COP8SGE5 COP8SGE7 COP8SGH5 COP8SGK5 COP8SGR5 COP8SGR7