SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 149
Revision 1.93
FALLING EDGE TRANSMITTER/RECEIVER MODE
Example: Master Tx/Rx falling edge
MOV
A,TXDATA
; Load transmitted data into SIOB register.
B0MOV
SIOB,A
MOV
A,#0FFH
; Set SIO clock with auto-reload function.
B0MOV
SIOR,A
MOV
A,#10000001B
; Setup SIOM and enable SIO function. Falling edge.
B0MOV
SIOM,A
B0BSET
FSTART
; Start transfer and receiving SIO data.
CHK_END:
B0BTS0
FSTART
; Wait the end of SIO operation.
JMP
CHK_END
B0MOV
A,SIOB
; Save SIOB data into RXDATA buffer.
MOV
RXDATA,A
DO2
SCK
DO1
TX/RX data
DO0
DI7
DI6
DI5
DI4
SI
DI3
DO7
DI2
DO6
SO
DI1
DO5
DI0
MSB
DO4
LSB
DO3
Figure 9-5. The Falling Edge Timing Diagram of Master Transfer and Receiving Operation