Microchip Technology TDGL019 Data Sheet

Page of 330
PIC32MX1XX/2XX
DS60001168F-page 218
© 2011-2014 Microchip Technology Inc.
REGISTER 24-1:
CTMUCON: CTMU CONTROL REGISTER
Bit 
Range
Bit
31/23/15/7
Bit
30/22/14/6
Bit
29/21/13/5
Bit
28/20/12/4
Bit
27/19/11/3
Bit
26/18/10/2
Bit
25/17/9/1
Bit
24/16/8/0
31:24
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
EDG1MOD EDG1POL
EDG1SEL<3:0>
EDG2STAT EDG1STAT
23:16
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
U-0
U-0
EDG2MOD EDG2POL
EDG2SEL<3:0>
15:8
R/W-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
ON
CTMUSIDL
TGEN
(1)
EDGEN
EDGSEQEN IDISSEN
(2)
CTTRIG
7:0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
ITRIM<5:0>
IRNG<1: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 31
EDG1MOD: 
Edge1 Edge Sampling Select bit
1
 = Input is edge-sensitive
0
 = Input is level-sensitive
bit 30
EDG1POL:
 Edge 1 Polarity Select bit
1
 = Edge1 programmed for a positive edge response
0
 = Edge1 programmed for a negative edge response
bit 29-26 EDG1SEL<3:0>: Edge 1 Source Select bits
1111
 = C3OUT pin is selected
1110
 = C2OUT pin is selected
1101
 = C1OUT pin is selected
1100
 = IC3 Capture Event is selected
1011
 = IC2 Capture Event is selected
1010
 = IC1 Capture Event is selected
1001
 = CTED8 pin is selected
1000
 = CTED7 pin is selected
0111
 = CTED6 pin is selected
0110
 = CTED5 pin is selected
0101
 = CTED4 pin is selected
0100
 = CTED3 pin is selected
0011
 = CTED1 pin is selected
0010
 = CTED2 pin is selected
0001
 = OC1 Compare Event is selected
0000
 = Timer1 Event is selected
bit 25
EDG2STAT:
 Edge2 Status bit 
Indicates the status of Edge2 and can be written to control edge source
1
 = Edge2 has occurred
0
 = Edge2 has not occurred
Note 1:
When this bit is set for Pulse Delay Generation, the EDG2SEL<3:0> bits must be set to ‘1110’ to select 
C2OUT.
2:
The ADC module Sample and Hold capacitor is not automatically discharged between sample/conversion 
cycles. Software using the ADC as part of a capacitive measurement, must discharge the ADC capacitor 
before conducting the measurement. The IDISSEN bit, when set to ‘1’, performs this function. The ADC 
module must be sampling while the IDISSEN bit is active to connect the discharge sink to the capacitor 
array.
3:
Refer to the CTMU Current Source Specifications (
 for current values.
4:
This bit setting is not available for the CTMU temperature diode.