Rev. 1.50
86
April 28, 2020
BS83B08-3/B12-3/B16-3/B16G-3/C24-3
8-Bit Touch Key Flash MCU
S I M E N = 1
W r i t e D a t a
i n t o S I M D
W C O L = 1 ?
C l e a r W C O L
Y
T r a n s m i s s i o n
c o m p l e t e d ?
( T R F = 1 ? )
N
Y
R e a d D a t a
f r o m S I M D
C l e a r T R F
T r a n s f e r
F i n i s h e d ?
N
Y
E N D
m a s t e r o r
s l a v e
?
M a s t e r
S l a v e
A
A
S P I t r a n s f e r
C o n f i g u r e C K P O L B ,
C K E G , C S E N a n d M L S
S I M [ 2 : 0 ] = 0 0 0 ,
0 0 1 , 0 1 0 , 0 1 1 o r 1 0 0
S I M [ 2 : 0 ] = 1 0 1
N
SPI Transfer Control Flowchart
S C K ( C K P O L B = 1 )
S C K ( C K P O L B = 0 )
S D O
S C S
S D I D a t a C a p t u r e
D 7 / D 0
D 6 / D 1
D 5 / D 2
D 4 / D 3
D 3 / D 4
D 2 / D 5
D 1 / D 6
D 0 / D 7
W r i t e t o S I M D
( S D O c h a n g e s a s s o o n a s w r i t i n g o c c u r s ; S D O i s f l o a t i n g i f S C S = 1 )
N o t e : F o r S P I s l a v e m o d e , i f S I M E N = 1 a n d C S E N = 0 , S P I i s a l w a y s e n a b l e d
a n d i g n o r e s t h e S C S l e v e l .
SPI Slave Mode Timing
-
CKEG=1