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

C8051F363 参数 Datasheet PDF下载

C8051F363图片预览
型号: C8051F363
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用:
文件页数/大小: 288 页 / 2659 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F363的Datasheet PDF文件第68页浏览型号C8051F363的Datasheet PDF文件第69页浏览型号C8051F363的Datasheet PDF文件第70页浏览型号C8051F363的Datasheet PDF文件第71页浏览型号C8051F363的Datasheet PDF文件第73页浏览型号C8051F363的Datasheet PDF文件第74页浏览型号C8051F363的Datasheet PDF文件第75页浏览型号C8051F363的Datasheet PDF文件第76页  
C8051F360/1/2/3/4/5/6/7/8/9  
CP0+  
VIN+  
VIN-  
+
CP0  
_
OUT  
CP0-  
CIRCUIT CONFIGURATION  
Positive Hysteresis Voltage  
(Programmed with CP0HYP Bits)  
VIN-  
Negative Hysteresis Voltage  
(Programmed by CP0HYN Bits)  
INPUTS  
VIN+  
VOH  
OUTPUT  
VOL  
Negative Hysteresis  
Disabled  
Maximum  
Negative Hysteresis  
Positive Hysteresis  
Disabled  
Maximum  
Positive Hysteresis  
Figure 8.3. Comparator Hysteresis Plot  
The Comparator hysteresis is software-programmable via the Comparator Control registers CPT0CN and  
CPT1CN. The user can program both the amount of hysteresis voltage (referred to the input voltage) and  
the positive and negative-going symmetry of this hysteresis around the threshold voltage.  
The Comparator hysteresis is programmed using Bits30 in the Comparator Control registers CPT0CN  
and CPT1CN (shown in SFR Definition 8.1 and SFR Definition 8.4). The amount of negative hysteresis  
voltage is determined by the settings of the CP0HYN and CP1HYN bits. As shown in Figure 8.3, settings of  
20, 10 or 5 mV of negative hysteresis can be programmed, or negative hysteresis can be disabled. In a  
similar way, the amount of positive hysteresis is determined by the setting the CP0HYP and CP1HYP bits.  
Comparator interrupts can be generated on both rising-edge and falling-edge output transitions. (For Inter-  
rupt enable and priority control, see Section “10. Interrupt Handler” on page 107). The CP0FIF or CP1FIF  
flag is set to logic ‘1’ upon a Comparator falling-edge occurrence, and the CP0RIF or CP1RIF flag is set to  
logic ‘1’ upon the Comparator rising-edge occurrence. Once set, these bits remain set until cleared by soft-  
ware. The Comparator rising-edge interrupt mask is enabled by setting CP0RIE or CP1RIE to a logic ‘1’.  
The Comparator falling-edge interrupt mask is enabled by setting CP0FIE or CP1FIE to a logic ‘1’.  
The output state of the Comparator can be obtained at any time by reading the CP0OUT or CP1OUT bit.  
The Comparator is enabled by setting the CP0EN or CP1EN bit to logic ‘1’, and is disabled by clearing this  
bit to logic ‘0’.  
Note that false rising edges and falling edges can be detected when the comparator is first powered on or  
if changes are made to the hysteresis or response time control bits. Therefore, it is recommended that the  
rising-edge and falling-edge flags be explicitly cleared to logic ‘0’ a short time after the comparator is  
enabled or its mode bits have been changed. This Power Up Time is specified in Table 8.1 on page 79.  
72  
Rev. 1.0  
 复制成功!