Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules
C2CH1 C2CH0 Comparator C2Vin- input
0 0 Input C2Vin- is connected to the C12IN0- pin
0 1 Input C2Vin- is connected to the C12IN1- pin
1 0 Input C2Vin- is connected to the C12IN2- pin
1 1 Input C2Vin- is connected to the C12IN3- pin
Table 7-5 Comparator C2 Channel Select Bit
CM2CON1 Register
Fig. 7-12 CM2CON1 Register
MC1OUT Mirror Copy of C1OUT bit
MC2OUT Mirror Copy of C2OUT bit
C1RSEL Comparator C1 Reference Select bit
● 1 - Selectable voltage CVref is used in voltage reference C1Vref source; and
● 0 - Fixed voltage reference 0.6V is used in voltage reference C1Vref source.
C2RSEL - Comparator C2 Reference Select bit
● 1 - Selectable voltage CVref is used in voltage reference C2Vref source; and
● 0 - Fixed voltage reference 0.6V is used in voltage reference C2Vref source.
T1GSS - Timer1 Gate Source Select bit
● 1 - Timer T1gate source is T1G; and
● 0 - Timer T1gate source is comparator SYNCC2OUT.
C2SYNC - Comparator C2 Output Synchronization bit
● 1 - Comparator C2 output is synchronized to falling edge of Timer TMR1 clock; and
● 0 - Comparator output is asynchronous signal.
VRCON Register
http://www.mikroe.com/en/books/picmcubook/ch7/ (12 of 14)5/3/2009 11:34:24 AM