Specifications

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules
Fig. 7-8 CM1CON0 Regsiter
Bits of this register are in control of the comparator C1. It mainly affects configuration of its inputs. To understand it
better, look at figure 7-9 below which shows only a part of electronics directly affected by the bits of this register.
Fig. 7-9 Comparator C1 Enable Bit
C1ON - Comparator C1 Enable bit enables comparator C1.
1 - Comparator C1 is enabled; and
0 - Comparator C1 is disabled.
C1OUT - Comparator C1 Output bit is comparator C1 output bit.
If C1POL = 1 (comparator output is inverted)
1 - Analog voltage at C1Vin+ is lower than analog voltage at C1Vin-; and
0 - Analog voltage at C1Vin+ is higher than analog voltage at C1Vin-.
If C1POL = 0 (comparator output is non-inverted)
1 - Analog voltage at C1Vin+ is higher than analog voltage at C1Vin-; and
0 - Analog voltage at C1Vin+ is lower than analog voltage at C1Vin-.
C1OE Comparator C1 Output Enable bit.
http://www.mikroe.com/en/books/picmcubook/ch7/ (9 of 14)5/3/2009 11:34:24 AM