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

C8051F502-IM 参数 Datasheet PDF下载

C8051F502-IM图片预览
型号: C8051F502-IM
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用: 微控制器和处理器外围集成电路PC时钟
文件页数/大小: 312 页 / 2813 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F502-IM的Datasheet PDF文件第55页浏览型号C8051F502-IM的Datasheet PDF文件第56页浏览型号C8051F502-IM的Datasheet PDF文件第57页浏览型号C8051F502-IM的Datasheet PDF文件第58页浏览型号C8051F502-IM的Datasheet PDF文件第60页浏览型号C8051F502-IM的Datasheet PDF文件第61页浏览型号C8051F502-IM的Datasheet PDF文件第62页浏览型号C8051F502-IM的Datasheet PDF文件第63页  
C8051F50x-F51x  
For example, if ADC0GNH = 0xFC, ADC0GNL = 0x00, and GAINADD = 1, GAIN = 0xFC0 = 4032, and the  
resulting equation is as follows:  
4032  
------------  
1
64  
------  
GAIN =  
+ 1   
= 0.984 + 0.016 = 1.0  
4096  
The table below equates values in the ADC0GNH, ADC0GNL, and ADC0GNA registers to the equivalent  
gain using this equation.  
ADC0GNH Value  
ADC0GNL Value  
GAINADD Value  
GAIN Value  
Equivalent Gain  
0xFC (default)  
0x7C  
0x00 (default)  
0x00  
1 (default)  
4032 + 64  
1984 + 64  
3008 + 64  
960 + 64  
4095 + 0  
4096 + 64  
1.0 (default)  
0.5  
1
1
1
0
1
0xBC  
0x3C  
0xFF  
0xFF  
0x00  
0x00  
0xF0  
0xF0  
0.75  
0.25  
~1.0  
1.016  
For any desired gain value, the GAIN registers can be calculated by the following:  
1
64  
  
  
-----  
GAIN = gain GAINADD   
4096  
Equation 6.3. Calculating the ADC0GNH and ADC0GNL Values from the Desired Gain  
Where:  
GAIN is the 12-bit word of ADC0GNH[7:0] and ADC0GNL[7:4]  
GAINADD is the value of the GAINADD bit (ADC0GNA.0)  
gain is the equivalent gain value from 0 to 1.016  
When calculating the value of GAIN to load into the ADC0GNH and ADC0GNL registers, the GAINADD bit  
can be turned on or off to reach a value closer to the desired gain value.  
For example, the initial example in this section requires a gain of 0.44 to convert 5 V full scale to 2.2 V full  
scale. Using Equation 6.3:  
1
64  
  
  
-----  
GAIN = 0.44 GAINADD   
4096  
If GAINADD is set to 1, this makes the equation:  
1
64  
  
  
-----  
GAIN = 0.44 – 1   
4096 = 0.424 4096 = 1738 = 0x06CA  
The actual gain from setting GAINADD to 1 and ADC0GNH and ADC0GNL to 0x6CA is 0.4399. A similar  
gain can be achieved if GAINADD is set to 0 with a different value for ADC0GNH and ADC0GNL.  
Rev. 1.1  
59  
 复制成功!