# Vault 7: Projects

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

### Protego

# PIC24FJ32MC10X -- Charge Time Measurement Unit

- 1
- 2
- 3
- 4
- 5
- 6
…
- 33
- 34

PIC24F Family Reference Manual
DS39724B-page 11-4 © 2010 Microchip Technology Inc.
11.2 REGISTERS
Depending on the device variant, there are up to three control registers available for the CTMU:
CTMUCON and CTMUICON or CMTUCON1, CTMUCON2 and CTMUICON.
The CTMUCON, CTMUCON1 and CTMUCON2 registers (Register 11-1 through Register 11-3)
contain control bits for configuring the CTMU module edge source selection, edge source polarity
selection, edge sequencing, A/D trigger, analog circuit capacitor discharge and enables. The
CTMUICON register (Register 11-4) has bits for selecting the current source range and current
source trim.
Register 11-1: CTMUCON: CTMU Control Register
R/W-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CTMUEN
 CTMUSIDL TGEN EDGEN EDGSEQEN IDISSEN CTTRIG
bit 15 bit 8
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
EDG2POL
EDG2SEL1
(1)
EDG2SEL0
(1)
EDG1POL
EDG1SEL1
(1)
EDG1SEL0
(1)
EDG2STAT EDG1STAT
bit 7 bit 0
Legend:
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 CTMUEN: CTMU Enable bit
1 = Module is enabled
0 = Module is disabled
bit 14 Unimplemented: Read as 0
bit 13 CTMUSIDL: Stop in Idle Mode bit
1 = Discontinue module operation when device enters Idle mode
0 = Continue module operation in Idle mode
bit 12 TGEN: Time Generation Enable bit
1 = Enables edge delay generation
0 = Disables edge delay generation
bit 10 EDGEN: Edge Enable bit
1 = Edges are not blocked
0 = Edges are blocked
bit 10 EDGSEQEN: Edge Sequence Enable bit
1 = Edge 1 event must occur before Edge 2 event can occur
0 = No edge sequence is needed
bit 9 IDISSEN: Analog Current Source Control bit
1 = Analog current source output is grounded
0 = Analog current source output is not grounded
bit 8 CTTRIG: Trigger Control bit
1 = Trigger output is enabled
0 = Trigger output is disabled
bit 7 EDG2POL: Edge 2 Polarity Select bit
1 = Edge 2 programmed for a positive level response
0 = Edge 2 programmed for a negative level response
Note 1: Refer to the particular device data sheet for specific edge source types and assignments.

- 1
- 2
- 3
- 4
- 5
- 6
…
- 33
- 34