SN8F2280 Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
Example: Master, duplex transfer and transmit data on rising edge
MOV
B0MOV
MOV
B0MOV
MOV
B0MOV
B0BSET
A,TXDATA
SIOB,A
A,#0FEH
SIOR,A
A,#10000000B
SIOM,A
FSTART
; Load transmitted data into SIOB register.
; Set SIO clock
; Setup SIOM and enable SIO function.
; Start transfer and receiving SIO data.
; Wait the end of SIO operation.
; Save SIOB data into RXDATA buffer.
CHK_END:
B0BTS0
JMP
B0MOV
MOV
FSTART
CHK_END
A,SIOB
RXDATA,A
Example: Slave, duplex transfer and transmit data on rising edge
MOV
B0MOV
MOV
B0MOV
B0BSET
A,TXDATA
SIOB,A
A,# 10000100B
SIOM,A
; Load transfer data into SIOB register.
; Setup SIOM and enable SIO function.
; Start transfer and receiving SIO data.
; Wait the end of SIO operation.
FSTART
CHK_END:
B0BTS0
JMP
B0MOV
MOV
FSTART
CHK_END
A,SIOB
; Save SIOB data into RXDATA buffer.
RXDATA,A
SONiX TECHNOLOGY CO., LTD
Page 127
Version 1.1