# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# PIC24FJ64GA004

- 1
- 2
…
- 202
- 203
- 204
- 205
- 206
…
- 277
- 278

PIC24FJ64GA004 FAMILY
DS39881E-page 204  2010-2013 Microchip Technology Inc.
REGISTER 22-1: CMCON: COMPARATOR CONTROL REGISTER
R/W-0 U-0 R/C-0 R/C-0 R/W-0 R/W-0 R/W-0 R/W-0
CMIDL  C2EVT C1EVT C2EN C1EN C2OUTEN
(1)
C1OUTEN
(2)
bit 15 bit 8
R-0 R-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
C2OUT C1OUT C2INV C1INV C2NEG C2POS C1NEG C1POS
bit 7 bit 0
Legend: C = Clearable bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as 0
-n = Value at POR 1 = Bit is set 0 = Bit is cleared x = Bit is unknown
bit 15 CMIDL: Comparator Stop in Idle Mode bit
1 = When device enters Idle mode, module does not generate interrupts; module is still enabled
0 = Continues normal module operation in Idle mode
bit 14 Unimplemented: Read as 0
bit 13 C2EVT: Comparator 2 Event
1 = Comparator output changed states
0 = Comparator output did not change states
bit 12 C1EVT: Comparator 1 Event
1 = Comparator output changed states
0 = Comparator output did not change states
bit 11 C2EN: Comparator 2 Enable
1 = Comparator is enabled
0 = Comparator is disabled
bit 10 C1EN: Comparator 1 Enable
1 = Comparator is enabled
0 = Comparator is disabled
bit 9 C2OUTEN: Comparator 2 Output Enable
(1)
1 = Comparator output is driven on the output pad
0 = Comparator output is not driven on the output pad
bit 8 C1OUTEN: Comparator 1 Output Enable
(2)
1 = Comparator output is driven on the output pad
0 = Comparator output is not driven on the output pad
bit 7 C2OUT: Comparator 2 Output bit
When C2INV =
0:
1 = C2 VIN+ > C2 V IN-
0 = C2 V
IN+ < C2 VIN-
When C2INV = 1:
0 = C2 VIN+ > C2 V IN-
1 = C2 V
IN+ < C2 VIN-
Note 1: If C2OUTEN = 1, the C2OUT peripheral output must be configured to an available RPn pin. See
Section 10.4 “Peripheral Pin Select (PPS)” for more information.
2: If C1OUTEN = 1, the C1OUT peripheral output must be configured to an available RPn pin. See
Section 10.4 “Peripheral Pin Select (PPS)” for more information.

- 1
- 2
…
- 202
- 203
- 204
- 205
- 206
…
- 277
- 278