欢迎访问ic37.com |
会员登录 免费注册
发布采购

SN8F2250B 参数 Datasheet PDF下载

SN8F2250B图片预览
型号: SN8F2250B
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 133 页 / 1554 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8F2250B的Datasheet PDF文件第110页浏览型号SN8F2250B的Datasheet PDF文件第111页浏览型号SN8F2250B的Datasheet PDF文件第112页浏览型号SN8F2250B的Datasheet PDF文件第113页浏览型号SN8F2250B的Datasheet PDF文件第115页浏览型号SN8F2250B的Datasheet PDF文件第116页浏览型号SN8F2250B的Datasheet PDF文件第117页浏览型号SN8F2250B的Datasheet PDF文件第118页  
SN8F2250B Series  
USB 2.0 Full-Speed 8-Bit Micro-Controller  
10.3 SIOB DATA BUFFER  
0B6H  
Bit 7  
SIOB7  
R/W  
0
Bit 6  
SIOB6  
R/W  
0
Bit 5  
SIOB5  
R/W  
0
Bit 4  
SIOB4  
R/W  
0
Bit 3  
SIOB3  
R/W  
0
Bit 2  
SIOB2  
R/W  
0
Bit 1  
SIOB1  
R/W  
0
Bit 0  
SIOB0  
R/W  
0
SIOB  
Read/Write  
After reset  
SIOB is the SIO data buffer register. It stores serial I/O transmit and receive data.  
10.4 SIOR REGISTER DESCRIPTION  
0B5H  
SIOR  
Read/Write  
After reset  
Bit 7  
SIOR7  
W
Bit 6  
SIOR6  
W
Bit 5  
SIOR5  
W
Bit 4  
SIOR4  
W
Bit 3  
SIOR3  
W
Bit 2  
SIOR2  
W
Bit 1  
SIOR1  
W
Bit 0  
SIOR0  
W
0
0
0
0
0
0
0
0
The SIOR is designed for the SIO counter to reload the counted value when end of counting. It is like a post-scaler of  
SIO clock source and let SIO has more flexible to setting SCK range. Users can set the SIOR value to setup SIO  
transfer time. The valid SIOR value = 0x0 to 0xFD. To setup SIOR value equation to desire transfer time is as  
following.  
SCK frequency = SIO rate / (256 - SIOR);  
SIOR = 256 - ( 1 / ( SCK frequency ) * SIO rate )  
Example: Setup the SIO clock to be 2MHz. Fosc = 12MHz. SIO’s rate = Fcpu/2. Fcpu = Fosc/1 = 12MHz.  
SIOR = 256 – (1/(2MHz) * 12MHz/2)  
= 256 – 3  
= 253  
= 0xFD  
Example: Master, duplex transfer and transmit data on rising edge  
MOV  
B0MOV  
MOV  
B0MOV  
MOV  
B0MOV  
B0BSET  
A,TXDATA  
SIOB,A  
A,#0FEH  
SIOR,A  
A,#10000000B  
SIOM,A  
FSTART  
; Load transmitted data into SIOB register.  
; Set SIO clock  
; Setup SIOM and enable SIO function.  
; Start transfer and receiving SIO data.  
; Wait the end of SIO operation.  
; Save SIOB data into RXDATA buffer.  
CHK_END:  
B0BTS0  
JMP  
B0MOV  
MOV  
FSTART  
CHK_END  
A,SIOB  
RXDATA,A  
Example: Slave, duplex transfer and transmit data on rising edge  
MOV  
B0MOV  
MOV  
B0MOV  
B0BSET  
A,TXDATA  
SIOB,A  
A,# 10000100B  
SIOM,A  
; Load transfer data into SIOB register.  
; Setup SIOM and enable SIO function.  
; 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  
SONiX TECHNOLOGY CO., LTD  
Page 114  
Version 1.1  
 
 复制成功!