Datasheet
2010 Microchip Technology Inc. Preliminary DS39964B-page 413
PIC18F47J53 FAMILY
24.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.
24.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 24-3: REGISTERS ASSOCIATED WITH COMPARATOR MODULE
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
INTCON GIE/GIEH PEIE/GIEL
TMR0IE INT0IE RBIE TMR0IF INT0IF RBIF
PIR2
OSCFIF CM2IF CM1IF USBIF BCL1IF HLVDIF TMR3IF CCP2IF
PIR5 — —CM3IFTMR8IF TMR6IF TMR5IF TMR5GIF TMR1GIF
PIE2 OSCFIE CM2IE CM1IE USBIE BCL1IE HLVDIE TMR3IE CCP2IE
PIE5
— —CM3IETMR8IE TMR6IE TMR5IE TMR5GIE TMR1GIE
IPR2 OSCFIP CM2IP CM1IP USBIP BCL1IP HLVDIP TMR3IP CCP2IP
IPR5 — —CM3IPTMR8IP TMR6IP TMR5IP TMR5GIP TMR1GIP
CMxCON CON COE CPOL EVPOL1 EVPOL0 CREF CCH1 CCH0
CVRCON CVREN CVROE CVRR CVRSS CVR3 CVR2 CVR1 CVR0
CMSTAT
— — — — —COUT3COUT2 COUT1
ANCON0
PCFG7
(Leg
end:)
PCFG6
(Leg-
end:)
PCFG5
(Le
gend:)
PCFG4 PCFG3 PCFG2 PCFG1 PCFG0
ANCON1
VBGEN — —PCFG12PCFG11 PCFG10 PCFG9 PCFG8
TRISA
TRISA7 TRISA6 TRISA5 — TRISA3 TRISA2 TRISA1 TRISA0
Legend: — = unimplemented, read as ‘0’. Shaded cells are not related to comparator operation.