PIC12F635-E/MD MICROCHIP [Microchip Technology], PIC12F635-E/MD Datasheet - Page 81
![no-image](/images/no-image-200.jpg)
PIC12F635-E/MD
Manufacturer Part Number
PIC12F635-E/MD
Description
8/14-Pin, Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC12F635-EMD.pdf
(234 pages)
- Current page: 81 of 234
- Download datasheet (5Mb)
7.7
The comparator, if enabled before entering Sleep mode,
remains active during Sleep. The additional current
consumed by the comparator is shown separately in the
Section 15.0 “Electrical Specifications”. If the
comparator is not used to wake the device, power
consumption can be minimized while in Sleep mode by
turning off the comparator. The comparator is turned off
by selecting mode CM<2:0> = 000 or CM<2:0> = 111
of the CMCON0 register.
A change to the comparator output can wake-up the
device from Sleep. To enable the comparator to wake
the device from Sleep, the CxIE bit of the PIE1 register
and the PEIE bit of the INTCON register must be set.
The instruction following the Sleep instruction always
executes following a wake from Sleep. If the GIE bit of
the INTCON register is also set, the device will then
execute the Interrupt Service Routine.
REGISTER 7-1:
© 2007 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
U-0
—
Operation During Sleep
Unimplemented: Read as ‘0’
COUT: Comparator Output bit
When CINV = 0:
1 = V
0 = V
When CINV = 1:
1 = V
0 = V
Unimplemented: Read as ‘0’
CINV: Comparator Output Inversion bit
1 = Output inverted
0 = Output not inverted
CIS: Comparator Input Switch bit
When CM<2:0> = 110 or 101:
1 = CIN+ connects to V
0 = CIN- connects to V
When CM<2:0> = 0xx or 100 or 111:
CIS has no effect.
CM<2:0>: Comparator Mode bits (See Figure 7-5)
000 = CIN pins are configured as analog, COUT pin configured as I/O, Comparator output turned off
001 = CIN pins are configured as analog, COUT pin configured as Comparator output
010 = CIN pins are configured as analog, COUT pin configured as I/O, Comparator output available internally
011 = CIN- pin is configured as analog, CIN+ pin is configured as I/O, COUT pin configured as
100 = CIN- pin is configured as analog, CIN+ pin is configured as I/O, COUT pin is configured as I/O, Comparator output
101 = CIN pins are configured as analog and multiplexed, COUT pin is configured as
110 = CIN pins are configured as analog and multiplexed, COUT pin is configured as I/O,
111 = CIN pins are configured as I/O, COUT pin is configured as I/O, Comparator output disabled, Comparator off.
COUT
IN
IN
IN
IN
R-0
+ > V
+ < V
+ < V
+ > V
CMCON0: COMPARATOR CONFIGURATION REGISTER (PIC12F635)
Comparator output, CV
available internally, CV
Comparator output, CV
Comparator output available internally, CV
IN
IN
IN
IN
-
-
-
-
W = Writable bit
‘1’ = Bit is set
IN
U-0
IN
—
-
-
REF
REF
REF
is non-inverting input
is non-inverting input
is non-inverting input
R/W-0
PIC12F635/PIC16F636/639
CINV
REF
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
is non-inverting input
7.8
A device Reset forces the CMCON0 and CMCON1
registers to their Reset states. This forces the Compar-
ator module to be in the Comparator Reset mode
(CM<2:0> = 000). Thus, all comparator inputs are
analog inputs with the comparator disabled to consume
the smallest current possible.
R/W-0
CIS
Effects of a Reset
R/W-0
CM2
x = Bit is unknown
R/W-0
CM1
DS41232D-page 79
R/W-0
CM0
bit 0
Related parts for PIC12F635-E/MD
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC12F635-I/SN](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 1KX14 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F635-I/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 1KX14 8DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F635-I/MD](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 8DFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F635-E/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 1KX14 8DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F635-I/MF](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 1KX14 8DFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F635-E/MF](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 1KX14 8DFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F635-E/SN](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,8PIN,PLASTIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F639](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
(PIC12F635 / PIC12F636 / PIC12F639) 8/14-PIN FLASH-BASED / 8-BIT CMOS MICROCONTROLLERS WITH NANOWATT TECHNOLOGY
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F1840-I/P](/photos/16/3/160349/pdip8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI
Manufacturer:
Microchip Technology
Datasheet:
![PIC12LF1840-I/MF](/photos/16/0/160077/dfn8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet:
![PIC12F1840-I/MF](/photos/16/0/160077/dfn8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 DFN
Manufacturer:
Microchip Technology
![PIC12F1840-I/SN](/photos/16/3/160347/soic8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 SOI
Manufacturer:
Microchip Technology
![PIC12LF1840-E/MF](/photos/16/0/160077/dfn8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet:
![PIC12LF1840-E/P](/photos/16/3/160349/pdip8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet:
![PIC12LF1840-E/SN](/photos/16/3/160347/soic8_tmb.jpg)
Part Number:
Description:
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer:
Microchip Technology
Datasheet: