欢迎访问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文件第50页浏览型号C8051F339的Datasheet PDF文件第51页浏览型号C8051F339的Datasheet PDF文件第52页浏览型号C8051F339的Datasheet PDF文件第53页浏览型号C8051F339的Datasheet PDF文件第55页浏览型号C8051F339的Datasheet PDF文件第56页浏览型号C8051F339的Datasheet PDF文件第57页浏览型号C8051F339的Datasheet PDF文件第58页  
C8051F336/7/8/9  
7.3.2. Window Detector In Differential Mode  
Figure 7.6 shows two example window comparisons for right-justified, differential data, with  
ADC0LTH:ADC0LTL = 0x0040 (+64d) and ADC0GTH:ADC0GTH = 0xFFFF (1d). In differential mode, the  
measurable voltage between the input pins is between –VREF and VREF x (511/512). Output codes are  
represented as 10-bit 2s complement signed integers. 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 0xFFFF (–1d) < ADC0H:ADC0L < 0x0040 (64d)). In the  
right example, an 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 < 0xFFFF (–1d) or  
ADC0H:ADC0L > 0x0040 (+64d)). Figure 7.7 shows an example using left-justified data with the same  
comparison values.  
ADC0H:ADC0L  
0x01FF  
ADC0H:ADC0L  
0x01FF  
Input Voltage  
(Px.x - Px.x)  
Input Voltage  
(Px.x - Px.x)  
VREF x (511/512)  
VREF x (511/512)  
AD0WINT  
not affected  
AD0WINT=1  
0x0041  
0x0041  
VREF x (64/512)  
VREF x (-1/512)  
0x0040  
0x003F  
ADC0LTH:ADC0LTL  
VREF x (64/512)  
VREF x (-1/512)  
0x0040  
0x003F  
ADC0GTH:ADC0GTL  
AD0WINT  
not affected  
AD0WINT=1  
0x0000  
0xFFFF  
0x0000  
0xFFFF  
ADC0GTH:ADC0GTL  
ADC0LTH:ADC0LTL  
0xFFFE  
0xFFFE  
AD0WINT=1  
AD0WINT  
not affected  
0x0200  
0x0200  
-VREF  
-VREF  
Figure 7.6. ADC Window Compare Example: Right-Justified Differential Data  
ADC0H:ADC0L  
0x7FC0  
ADC0H:ADC0L  
0x7FC0  
Input Voltage  
(Px.x - Px.x)  
Input Voltage  
(Px.x - Px.y)  
VREF x (511/512)  
VREF x (511/512)  
AD0WINT  
not affected  
AD0WINT=1  
0x1040  
0x1040  
VREF x (64/512)  
VREF x (-1/512)  
0x1000  
0x0FC0  
ADC0LTH:ADC0LTL  
VREF x (64/512)  
VREF x (-1/512)  
0x1000  
0x0FC0  
ADC0GTH:ADC0GTL  
AD0WINT  
not affected  
AD0WINT=1  
0x0000  
0xFFC0  
0x0000  
0xFFC0  
ADC0GTH:ADC0GTL  
ADC0LTH:ADC0LTL  
0xFF80  
0xFF80  
AD0WINT=1  
AD0WINT  
not affected  
0x8000  
0x8000  
-VREF  
-VREF  
Figure 7.7. ADC Window Compare Example: Left-Justified Differential Data  
54  
Rev. 0.2