SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 157
Revision 1.93
SIO INTERRUPT OPERATION DESCRIPTION
The SIO provides an interrupt function. Users can process SIO data after the SIO interrupt request occurring. There is
a example for the application as following.
Example: SIO interrupt demo routine.
Main:
MOV
A,# 10000100B
; Setup SIOM and enable SIO function. Falling edge.
B0MOV
SIOM,A
B0BSET
FSTART
; Start transfer SIO data.
. .
. .
JMP
MAIN
ORG
8
; Interrupt vector
B0XCH
A,
ACCBUF
PUSH
B0BTS1
FSIOIRQ
JMP
INT_EXIT
B0MOV
A,SIOB
; Save SIOB data into RXDATA buffer.
MOV
RXDATA,A
B0BCLR
FSIOIRQ
;
Clear
SIO interrupt request flag.
INT_EXIT:
POP
B0XCH
A,
ACCBUF