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

C8051F339 参数 Datasheet PDF下载

C8051F339图片预览
型号: C8051F339
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用:
文件页数/大小: 234 页 / 3348 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F339的Datasheet PDF文件第49页浏览型号C8051F339的Datasheet PDF文件第50页浏览型号C8051F339的Datasheet PDF文件第51页浏览型号C8051F339的Datasheet PDF文件第52页浏览型号C8051F339的Datasheet PDF文件第54页浏览型号C8051F339的Datasheet PDF文件第55页浏览型号C8051F339的Datasheet PDF文件第56页浏览型号C8051F339的Datasheet PDF文件第57页  
C8051F336/7/8/9  
7.3.1. Window Detector In Single-Ended Mode  
Figure 7.4 shows two example window comparisons for right-justified, single-ended data, with  
ADC0LTH:ADC0LTL = 0x0080 (128d) and ADC0GTH:ADC0GTL = 0x0040 (64d). In single-ended mode,  
the input voltage can range from ‘0’ to VREF x (1023/1024) with respect to GND, and is represented by a  
10-bit unsigned integer value. In the left example, an AD0WINT interrupt will be generated if the ADC0  
conversion word (ADC0H:ADC0L) is within the range defined by ADC0GTH:ADC0GTL and  
ADC0LTH:ADC0LTL (if 0x0040 < ADC0H:ADC0L < 0x0080). In the right example, and AD0WINT interrupt  
will be generated if the ADC0 conversion word is outside of the range defined by the ADC0GT and  
ADC0LT registers (if ADC0H:ADC0L < 0x0040 or ADC0H:ADC0L > 0x0080). Figure 7.5 shows an exam-  
ple using left-justified data with the same comparison values.  
ADC0H:ADC0L  
0x03FF  
ADC0H:ADC0L  
0x03FF  
Input Voltage  
(Px.x - GND)  
Input Voltage  
(Px.x - GND)  
VREF x (1023/1024)  
VREF x (1023/1024)  
AD0WINT  
not affected  
AD0WINT=1  
0x0081  
0x0081  
VREF x (128/1024)  
VREF x (64/1024)  
0x0080  
0x007F  
ADC0LTH:ADC0LTL  
VREF x (128/1024)  
VREF x (64/1024)  
0x0080  
0x007F  
ADC0GTH:ADC0GTL  
AD0WINT  
not affected  
AD0WINT=1  
0x0041  
0x0040  
0x0041  
0x0040  
ADC0GTH:ADC0GTL  
ADC0LTH:ADC0LTL  
0x003F  
0x003F  
AD0WINT=1  
AD0WINT  
not affected  
0x0000  
0x0000  
0
0
Figure 7.4. ADC Window Compare Example: Right-Justified Single-Ended Data  
ADC0H:ADC0L  
0xFFC0  
ADC0H:ADC0L  
0xFFC0  
Input Voltage  
(Px.x - GND)  
Input Voltage  
(Px.x - GND)  
VREF x (1023/1024)  
VREF x (1023/1024)  
AD0WINT  
not affected  
AD0WINT=1  
0x2040  
0x2040  
VREF x (128/1024)  
VREF x (64/1024)  
0x2000  
0x1FC0  
ADC0LTH:ADC0LTL  
VREF x (128/1024)  
VREF x (64/1024)  
0x2000  
0x1FC0  
ADC0GTH:ADC0GTL  
AD0WINT  
not affected  
AD0WINT=1  
0x1040  
0x1000  
0x1040  
0x1000  
ADC0GTH:ADC0GTL  
ADC0LTH:ADC0LTL  
0x0FC0  
0x0FC0  
AD0WINT=1  
AD0WINT  
not affected  
0x0000  
0x0000  
0
0
Figure 7.5. ADC Window Compare Example: Left-Justified Single-Ended Data  
Rev. 0.2  
53