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

C8051F310 参数 Datasheet PDF下载

C8051F310图片预览
型号: C8051F310
PDF下载: 下载PDF文件 查看货源
内容描述: 8/16 KB ISP功能的Flash MCU系列 [8/16 kB ISP Flash MCU Family]
分类和应用: 微控制器和处理器
文件页数/大小: 228 页 / 2504 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F310的Datasheet PDF文件第178页浏览型号C8051F310的Datasheet PDF文件第179页浏览型号C8051F310的Datasheet PDF文件第180页浏览型号C8051F310的Datasheet PDF文件第181页浏览型号C8051F310的Datasheet PDF文件第183页浏览型号C8051F310的Datasheet PDF文件第184页浏览型号C8051F310的Datasheet PDF文件第185页浏览型号C8051F310的Datasheet PDF文件第186页  
C8051F310/1/2/3/4/5/6/7  
SFR Definition 16.3. SPI0CKR: SPI0 Clock Rate  
R/W  
SCR7  
Bit7  
R/W  
SCR6  
Bit6  
R/W  
SCR5  
Bit5  
R/W  
SCR4  
Bit4  
R/W  
SCR3  
Bit3  
R/W  
SCR2  
Bit2  
R/W  
SCR1  
Bit1  
R/W  
SCR0  
Bit0  
Reset Value  
00000000  
SFR Address: 0xA2  
Bits 7–0: SCR7–SCR0: SPI0 Clock Rate.  
These bits determine the frequency of the SCK output when the SPI0 module is configured  
for master mode operation. The SCK clock frequency is a divided version of the system  
clock, and is given in the following equation, where SYSCLK is the system clock frequency  
and SPI0CKR is the 8-bit value held in the SPI0CKR register.  
SYSCLK  
2 × (SPI0CKR + 1)  
------------------------------------------------  
=
fSCK  
for 0 <= SPI0CKR <= 255  
Example: If SYSCLK = 2 MHz and SPI0CKR = 0x04,  
2000000  
2 × (4 + 1)  
-------------------------  
=
fSCK  
fSCK = 200kHz  
SFR Definition 16.4. SPI0DAT: SPI0 Data  
R/W  
Bit7  
R/W  
Bit6  
R/W  
Bit5  
R/W  
Bit4  
R/W  
Bit3  
R/W  
Bit2  
R/W  
Bit1  
R/W  
Bit0  
Reset Value  
00000000  
SFR Address: 0xA3  
Bits 7–0: SPI0DAT: SPI0 Transmit and Receive Data.  
The SPI0DAT register is used to transmit and receive SPI0 data. Writing data to SPI0DAT  
places the data into the transmit buffer and initiates a transfer when in Master Mode. A read  
of SPI0DAT returns the contents of the receive buffer.  
182  
Rev. 1.7