DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

SN8P2606 Просмотр технического описания (PDF) - Sonix Technology Co., Ltd

Номер в каталоге
Компоненты Описание
производитель
SN8P2606
SONiX
Sonix Technology Co., Ltd SONiX
SN8P2606 Datasheet PDF : 112 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
SN8P2608
8-Bit Micro-Controller
2.1.1.2 INTERRUPT VECTOR (0008H)
A 1-word vector address area is used to execute interrupt request. If any interrupt service executes, the program
counter (PC) value is stored in stack buffer and jump to 0008h of program memory to execute the vectored interrupt.
Users have to define the interrupt vector and the first instruction at ORG 8 must be “JMP” or “NOP”. The following
example shows the way to define the interrupt vector in the program memory.
’ Note: ”PUSH”, “POP” instructions save and load ACC/PFLAG without (NT0, NPD). PUSH/POP buffer is a
unique buffer and only one level.
’ Note: The first instruction at ORG 8 must be “JMP” or “NOP”.
¾ Example: Defining Interrupt Vector. The interrupt service routine is following ORG 8.
.CODE
ORG
JMP
0
START
; 0000H
; Jump to user program address.
ORG
8
NOP
PUSH
POP
RETI
; Interrupt vector.
; The first instruction at ORG 8.
; Save ACC and PFLAG register to buffers.
; Load ACC and PFLAG register from buffers.
; End of interrupt service routine
START:
JMP
START
; The head of user program.
; User program
; End of user program
ENDP
; End of program
SONiX TECHNOLOGY CO., LTD
Page 14
Version 1.4

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]