SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 153
Revision 1.93
RISING EDGE TRANSMITTER/RECEIVER MODE
Example: Slave Tx/Rx rising edge
MOV
A,TXDATA
; Load transfer data into SIOB register.
B0MOV
SIOB,A
MOV
A,# 10000111B
; Setup SIOM and enable SIO function. Rising 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
DI0
DO6
DO1
DI5
DI4
DO7
SI
DI1
DO2
DI7
DI2
SCK1
MSB
DO0
DI6
SO
LSB
DO4
TX/RX data
DI3
DO3
DO5
DI7
DO0
DO4
MSB
DO5
DI4
DI5
DO2
SO
DI6
DO3
TX/RX data
LSB
DI2
SCK2
DO6
DI1
DI3
DI0
DO1
SI
DO7
Figure 9-9. The Rising Edge Timing Diagram of Slave Transfer and Receiving Operation