![SONiX TECHNOLOGY CO. SN8F22711B Скачать руководство пользователя страница 100](http://html1.mh-extra.com/html/sonix-technology-co/sn8f22711b/sn8f22711b_user-manual_1321532100.webp)
SN8F2270B Series
USB 2.0 Low-Speed 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 100
Version 1.3
10.3 SIOB DATA BUFFER
0B6H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
SIOB
SIOB7 SIOB6 SIOB5 SIOB4 SIOB3 SIOB2 SIOB1 SIOB0
Read/Write
R/W R/W R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0
SIOB is the SIO data buffer register. It stores serial I/O transmit and receive data.
10.4 SIOR REGISTER DESCRIPTION
0B5H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
SIOR
R7 SIOR6 SIOR5 SIOR4 SIOR3 SIOR2 SIOR1 SIOR0
SIO
Read/W
W W W W W W W
rite
W
After
res
0 0 0 0 0 0 0
et
0
he SIOR is designed for the SIO counter to reload the counted value when end of counting. It is like a post-scaler of
lock
lexible to setting SCK range. Users can set the SIOR value to setup SIO
transfer tim
lue = 0x0 to 0xFD.
To setup SIOR value equation to desire transfer time is as
following.
ncy = SIO rate / (256 - SIOR);
SIOR = 256 - ( 1 / ( SCK frequency ) * SIO rate )
T
SIO c
source and let SIO has more f
e.
The valid SIOR va
SCK freque
Example:
Fosc = 6MHz. SIO’s rate = Fcpu/2. Fcpu = Fosc/1 = 6MHz.
– 3
= 0xFD
Setup the SIO clock to be 1MHz.
SIOR = 256 – (1/(2MHz) * 12MHz/2)
= 256
= 253