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

C8051F530-IM 参数 Datasheet PDF下载

C8051F530-IM图片预览
型号: C8051F530-IM
PDF下载: 下载PDF文件 查看货源
内容描述: 8/4/2 KB ISP功能的Flash MCU系列 [8/4/2 kB ISP Flash MCU Family]
分类和应用:
文件页数/大小: 220 页 / 2701 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F530-IM的Datasheet PDF文件第159页浏览型号C8051F530-IM的Datasheet PDF文件第160页浏览型号C8051F530-IM的Datasheet PDF文件第161页浏览型号C8051F530-IM的Datasheet PDF文件第162页浏览型号C8051F530-IM的Datasheet PDF文件第164页浏览型号C8051F530-IM的Datasheet PDF文件第165页浏览型号C8051F530-IM的Datasheet PDF文件第166页浏览型号C8051F530-IM的Datasheet PDF文件第167页  
C8051F52x-53x  
It is important to note that in all these equations the results must be rounded down to the nearest integer.  
The following example calculates the factors for a Master node running at 24.5 MHz and communicating at  
19.2 Kbits/sec. First, the multiplier will be calculated:  
20000  
19200  
--------------  
multiplier =  
– 1 = 0.0417 0  
After this step the prescaler is calculated:  
24500000  
(0 + 1) × 19200 × 200 ln2  
1
----------------------------------------------------- -------  
prescaler = ln  
×
– 1 = 1.674 1  
Then the divider is calculated:  
24500000  
(1 + 1) × (0 + 1) × 19200  
------------------------------------------------------------  
2
divider =  
= 319.010 319  
These values will lead to the following bit_rate:  
24500000  
------------------------------------------------------  
2
bit_rate =  
19200.63  
(1 + 1) × (0 + 1) × 319  
The following code fragment programs the interface in Master mode, using the Enhanced Checksum and  
enabling the interface to operate at 9600 bits/sec from a system clock (SYSCLK) of 24.5 MHz.  
LINCF = 0x80;  
// Activate the interface  
LINADDR = 0x09;// Point to the status register  
LINCF |= 0x40;// Set the part as Master  
LINADDR = 0x0D;// Point to the LINMUL register  
// Initialize the register (prescaler, multiplier and bit 8 of divider)  
LINDATA = (_0x01 << 6 ) + (_0x00 << 1 ) + ( (_0x13F & 0x0100 ) >> 8 );  
LINADDR = 0x0C;// Point to the LINDIV register  
LINDATA = (unsigned char)_0x13F;// Initialize LINDIV  
LINADDR = 0x0B;// Point to the LINSIZE register  
LINDATA |= 0x80;  
LINADDR = LINCTRL;  
// Initialize the checksum as Enhanced  
// Point to LINCTRL register  
LINDATA = RSTERR | RSTINT;  
// Reset any error and the interrupt  
Table 17.3 presents some typical values of system clock and bit rate along with their factors:  
Rev. 0.3  
163  
 复制成功!