English
Language : 

HT82A623R Datasheet, PDF (68/98 Pages) Holtek Semiconductor Inc – A/D Type Full Speed USB 8-Bit MCU with SPI
HT82A623R/HT82A6208/HT82A6216
Error Detection
The WCOLA/B bit in the SBCRA/B register is provided
to indicate errors during data transfer. The bit is set by
the Serial Interface but must be cleared by the applica-
tion program. This bit indicates a data collision has oc-
curred which happens if a write to the SBDRA/B register
takes place during a data transfer operation and will pre-
vent the write operation from continuing. The bit will be
set high by the Serial Interface but has to be cleared by
the user application program. The overall function of the
WCOLA/B bit can be disabled or enabled by a configu-
ration option.
b7
CKS M 1
b0
M 0 S B E N M L S C S E N W C O L T R F S B C R A /S B C R B R e g is te r
T r a n s m itt/R e c e iv e fla g
0 : N o t c o m p le te
1 : T r a n s m is s io n /r e c e p tio n c o m p le te
W r ite c o llis io n b it
0 : C o llis io n fr e e
1 : C o llis io n d e te c te d
S e le c tio n s ig n a l e n a b le /d is a b le b it
0 : S C S A /S C S B flo a tin g
1 : E n a b le
M S B /L S B fir s t b it
0 : L S B s h ift fir s t
1 : M S B s h ift fir s t
S e r ia l B u s e n a b le /d is a b le b it
0 : D is a b le
1 : E n a b le
D e p e n d e n t u p o n C S E N A /C S E N B b it
M a s te r /S la v e /B a u d r a te b its
M1 M0
0 0 M a s te r , b a u d r a te : fS IO
0 1 M a s te r , b a u d r a te : fS IO /4
1 0 M a s te r , b a u d r a te : fS IO /1 6
1 1 S la v e m o d e
C lo c k s o u r c e s e le c t b it
0 : fS IO = fS Y S /4
1 : fS IO = fS Y S
SPI Interface Control Register
Rev. 1.10
68
October 30, 2009