SN8P1700
8-bit micro-controller build-in 12-bit ADC
JmpSub0:
; Subroutine 1
jmp
JmpExit
JmpSub1:
; Subroutine 2
jmp
JmpSub2:
jmp
JmpExit
; Subroutine 3
JmpExit
JmpExit:
ret
;Return Main
;-------------------------------------------------------------------------------
; Isr (Interrupt Service Routine)
; Arguments :
; Returns
:
; Reg Change:
;-------------------------------------------------------------------------------
Isr:
;-----------------------------------
;
Save ACC and system registers
;-----------------------------------
b0xch
push
A,AccBuf
;B0xch instruction do not change C,Z flag
;Remark this line in SN8P1702 registers
;Save 80h ~ 87h system
;Following two lines for SN8X1702 only
;b0mov
;b0mov
A,PFLAG
PflagBuf,A
;-----------------------------------
Check which interrupt happen
;
;-----------------------------------
IntP00Chk:
b0bts1
jmp
b0bts0
jmp
FP00IEN
IntTc0Chk
FP00IRQ
P00isr
;Modify this line for another interrupt
;If necessary, insert another interrupt checking here
IntTc0Chk:
b0bts1
FTC0IEN
IsrExit
FTC0IRQ
TC0isr
jmp
b0bts0
jmp
;Suppose TC0 is the last interrupt which you
;want to check
SONiX TECHNOLOGY CO., LTD
Page 130
Revision 1.94