Datasheet
PIC18F46J11 FAMILY
DS39932D-page 368 2011 Microchip Technology Inc.
22.7 Comparator Operation During
Sleep
When a comparator is active and the device is placed
in Sleep mode, the comparator remains active and the
interrupt is functional if enabled. This interrupt will
wake-up the device from Sleep mode when enabled.
Each operational comparator will consume additional
current. To minimize power consumption while in Sleep
mode, turn off the comparators (CON = 0) before
entering Sleep. If the device wakes up from Sleep, the
contents of the CMxCON register are not affected.
22.8 Effects of a Reset
A device Reset forces the CMxCON registers to their
Reset state. This forces both comparators and the
voltage reference to the OFF state.
TABLE 22-3: REGISTERS ASSOCIATED WITH COMPARATOR MODULE
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reset
Values
on Page:
INTCON GIE/GIEH PEIE/GIEL
TMR0IE INT0IE RBIE TMR0IF INT0IF RBIF
69
PIR2 OSCFIF CM2IF CM1IF — BCL1IF LVDIF TMR3IF CCP2IF 72
PIE2
OSCFIE CM2IE CM1IE — BCL1IE LVDIE TMR3IE CCP2IE 72
IPR2 OSCFIP CM2IP CM1IP — BCL1IP LVDIP TMR3IP CCP2IP 72
CMxCON CON COE CPOL EVPOL1 EVPOL0 CREF CCH1 CCH0 70
CVRCON CVREN CVROE CVRR
CVRSS CVR3 CVR2 CVR1 CVR0 74
CMSTAT — — — — — — COUT2 COUT1 73
ANCON0 PCFG7
(1)
PCFG6
(1)
PCFG5
(1)
PCFG4 PCFG3 PCFG2 PCFG1 PCFG0 74
PORTA
RA7 RA6 RA5 — RA3 RA2 RA1 RA0 72
TRISA TRISA7 TRISA6 TRISA5 — TRISA3 TRISA2 TRISA1 TRISA0 72
Legend: — = unimplemented, read as ‘0’, r = reserved. Shaded cells are not related to comparator operation.
Note 1: These bits and/or registers are not implemented on 28-pin devices.