SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 104
Version 1.0
SIO INTERRUPT OPERATION DESCRIPTION
The SIO provides an interrupt function. Users can process SIO data after the SIO interrupt request occurring. There is
an 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