欢迎访问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文件第54页浏览型号C8051F502-IM的Datasheet PDF文件第55页浏览型号C8051F502-IM的Datasheet PDF文件第56页浏览型号C8051F502-IM的Datasheet PDF文件第57页浏览型号C8051F502-IM的Datasheet PDF文件第59页浏览型号C8051F502-IM的Datasheet PDF文件第60页浏览型号C8051F502-IM的Datasheet PDF文件第61页浏览型号C8051F502-IM的Datasheet PDF文件第62页  
C8051F50x-F51x  
M U X S e le c t  
P x .x  
R M U X  
C S A M P L E  
R C In p u t= R M U X * C S A M P L E  
Figure 6.5. ADC0 Equivalent Input Circuit  
6.3. Selectable Gain  
ADC0 on the C8051F50x-F51x family of devices implements a selectable gain adjustment option. By writ-  
ing a value to the gain adjust address range, the user can select gain values between 0 and 1.016.  
For example, three analog sources to be measured have full-scale outputs of 5.0 V, 4.0 V, and 3.0 V,  
respectively. Each ADC measurement would ideally use the full dynamic range of the ADC with an internal  
voltage reference of 1.5 V or 2.2 V (set to 2.2 V for this example). When selecting the first source (5.0 V  
full-scale), a gain value of 0.44 (5 V full scale x 0.44 = 2.2 V full scale) provides a full-scale signal of 2.2 V  
when the input signal is 5.0 V. Likewise, a gain value of 0.55 (4 V full scale x 0.55 = 2.2 V full scale) for the  
second source and 0.73 (3 V full scale x 0.73 = 2.2 V full scale) for the third source provide full-scale ADC0  
measurements when the input signal is full-scale.  
Additionally, some sensors or other input sources have small part-to-part variations that must be  
accounted for to achieve accurate results. In this case, the programmable gain value could be used as a  
calibration value to eliminate these part-to-part variations.  
6.3.1. Calculating the Gain Value  
The ADC0 selectable gain feature is controlled by 13 bits in three registers. ADC0GNH contains the 8  
upper bits of the gain value and ADC0GNL contains the 4 lower bits of the gain value. The final GAINADD  
bit (ADC0GNA.0) controls an optional extra 1/64 (0.016) of gain that can be added in addition to the  
ADC0GNH and ADC0GNL gain. The ADC0GNA.0 bit is set to 1 after a power-on reset.  
The equivalent gain for the ADC0GNH, ADC0GNL and ADC0GNA registers is as follows:  
GAIN  
4096  
1
64  
---------------  
-----  
gain =  
+ GAINADD   
Equation 6.2. Equivalent Gain from the ADC0GNH and ADC0GNL Registers  
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  
58  
Rev. 1.1  
 复制成功!