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

PIC16F630-I/ST 参数 Datasheet PDF下载

PIC16F630-I/ST图片预览
型号: PIC16F630-I/ST
PDF下载: 下载PDF文件 查看货源
内容描述: 14引脚基于闪存的8位CMOS微控制器 [14-Pin FLASH-Based 8-Bit CMOS Microcontrollers]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 130 页 / 1924 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F630-I/ST的Datasheet PDF文件第40页浏览型号PIC16F630-I/ST的Datasheet PDF文件第41页浏览型号PIC16F630-I/ST的Datasheet PDF文件第42页浏览型号PIC16F630-I/ST的Datasheet PDF文件第43页浏览型号PIC16F630-I/ST的Datasheet PDF文件第45页浏览型号PIC16F630-I/ST的Datasheet PDF文件第46页浏览型号PIC16F630-I/ST的Datasheet PDF文件第47页浏览型号PIC16F630-I/ST的Datasheet PDF文件第48页  
PIC16F630/676  
REGISTER 6-2:  
VRCON — VOLTAGE REFERENCE CONTROL REGISTER (ADDRESS: 99h)  
R/W-0  
VREN  
U-0  
R/W-0  
VRR  
R/W-0  
R/W-0  
VR3  
R/W-0  
VR2  
R/W-0  
VR1  
R/W-0  
VR0  
bit 7  
bit 0  
bit 7  
VREN: CVREF Enable bit  
1= CVREF circuit powered on  
0= CVREF circuit powered down, no IDD drain  
bit 6  
bit 5  
Unimplemented: Read as '0'  
VRR: CVREF Range Selection bit  
1= Low range  
0= High range  
bit 4  
Unimplemented: Read as '0'  
bit 3-0  
VR3:VR0: CVREF value selection 0 VR [3:0] 15  
When VRR = 1: CVREF = (VR3:VR0 / 24) * VDD  
When VRR = 0: CVREF = VDD/4 + (VR3:VR0 / 32) * VDD  
Legend:  
R = Readable bit  
W = Writable bit  
’1’ = Bit is set  
U = Unimplemented bit, read as ‘0’  
’0’ = Bit is cleared x = Bit is unknown  
- n = Value at POR  
The user, in the Interrupt Service Routine, can clear the  
interrupt in the following manner:  
6.9  
Comparator Interrupts  
The comparator interrupt flag is set whenever there is  
a change in the output value of the comparator.  
Software will need to maintain information about the  
status of the output bits, as read from CMCON<6>, to  
determine the actual change that has occurred. The  
CMIF bit, PIR1<3>, is the comparator interrupt flag.  
This bit must be reset in software by clearing it to ‘0’.  
Since it is also possible to write a '1' to this register, a  
simulated interrupt may be initiated.  
a) Any read or write of CMCON. This will end the  
mismatch condition.  
b) Clear flag bit CMIF.  
A mismatch condition will continue to set flag bit CMIF.  
Reading CMCON will end the mismatch condition and  
allow flag bit CMIF to be cleared.  
Note: If a change in the CMCON register (COUT)  
should occur when a read operation is  
being executed (start of the Q2 cycle), then  
the CMIF (PIR1<3>) interrupt flag may not  
get set.  
The CMIE bit (PIE1<3>) and the PEIE bit  
(INTCON<6>) must be set to enable the interrupt. In  
addition, the GIE bit must also be set. If any of these  
bits are cleared, the interrupt is not enabled, though the  
CMIF bit will still be set if an interrupt condition occurs.  
TABLE 6-2:  
REGISTERS ASSOCIATED WITH COMPARATOR MODULE  
Value on  
Value on  
POR, BOD  
Address  
Name  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
all other  
RESETS  
0Bh/8Bh  
0Ch  
INTCON  
PIR1  
GIE  
EEIF  
PEIE  
ADIF  
COUT  
ADIE  
T0IE  
INTE  
RAIE  
CMIF  
CIS  
T0IF  
INTF  
RAIF  
0000 0000 0000 000u  
TMR1IF 00-- 0--0 00-- 0--0  
CM0  
TMR1IE 00-- 0--0 00-- 0--0  
19h  
CMCON  
PIE1  
CINV  
CM2  
CM1  
-0-0 0000 -0-0 0000  
8Ch  
EEIE  
CMIE  
85h  
TRISA  
VRCON  
TRISA5 TRISA4 TRISA3 TRISA2 TRISA1 TRISA0 --11 1111 --11 1111  
VRR VR3 VR2 VR1 VR0 0-0- 0000 0-0- 0000  
99h  
VREN  
Legend:  
x = unknown, u = unchanged, – = unimplemented, read as ‘0’. Shaded cells are not used by the comparator module.  
DS40039E-page 42  
© 2007 Microchip Technology Inc.  
 复制成功!