SN8P1700
8-bit micro-controller build-in 12-bit ADC
;-----------------------------------
; Exit interrupt service routine
;-----------------------------------
IsrExit:
; Following two lines for SN8X1702 only
;b0mov
;b0mov
A,PFLAG
PflagBuf,A
pop
;Remark this line in SN8P1702
;Restore 80h ~ 87h system registers
b0xch
reti
A,AccBuf
;B0xch instruction do not change C,Z flag
;Exit the interrupt routine
;-------------------------------------------------------------------------------
INT0 interrupt service routine
;
;-------------------------------------------------------------------------------
P00isr:
b0bclr
;Process P0.0 external interrupt here
jmp IsrExit
FP00IRQ
;-------------------------------------------------------------------------------
TC0 interrupt service routine
;
;-------------------------------------------------------------------------------
TC0isr:
b0bclr
;Process TC0 timer interrupt here
jmp IsrExit
;-------------------------------------------------------------------------------
FTC0IRQ
;
;
SysInit
Initialize I/O, Timer, Interrupt, etc.
;-------------------------------------------------------------------------------
SysInit:
ret
SONiX TECHNOLOGY CO., LTD
Page 131
Revision 1.94