SN8P1700
8-bit micro-controller build-in 12-bit ADC
SIO MASTER OPERATING DESCRIPTION
Under master-transmitter situation, the SCK has two directions as following.
SCK
SCK
Figure 10-3. The Two SCK Directions of SIO Master Operation
RISING EDGE TRANSMITTER/RECEIVER MODE
ꢃExample: Master Tx/Rx rising edge
MOV
B0MOV
MOV
B0MOV
MOV
B0MOV
B0BSET
A,TXDATA
SIOB,A
A,#0FFH
SIOR,A
A,#10000011B
SIOM,A
; Load transmitted data into SIOB register.
; Set SIO clock with auto-reload function.
; Setup SIOM and enable SIO function. Rising edge.
; 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
TX/RX data
SCK
SI
DI0
DI1
DI2
DI3
DI4
DI5
DI6
DI7
SO
DO0 DO1 DO2 DO3 DO4 DO5 DO6 DO7
LSB
MSB
Figure 10-4. The Rising Edge Timing Diagram of Master Transfer and Receiving Operation
SONiX TECHNOLOGY CO., LTD
Page 104
Revision 1.94