PIC32MX1XX/2XX/5XX 64/100-PIN FAMILY
26.0 CHARGE TIME
MEASUREMENT UNIT (CTMU)
Note:
This data sheet summarizes the features
of the PIC32MX1XX/2XX/5XX 64/100-pin
family of devices. It is not intended to be
a comprehensive reference source. To
complement the information in this data
sheet, refer to Section 37. “Charge
Time Measurement Unit (CTMU)”
(DS60001167) in the “PIC32 Family
Reference Manual”, which is available
from the Microchip web site
(www.microchip.com).
The Charge Time Measurement Unit (CTMU) is a
flexible analog module that has a configurable current
source with a digital configuration circuit built around it.
The CTMU can be used for differential time
measurement between pulse sources and can be used
for generating an asynchronous pulse. By working with
other on-chip analog modules, the CTMU can be used
for high resolution time measurement, measure
capacitance, measure relative changes in capacitance
or generate output pulses with a specific time delay.
The CTMU is ideal for interfacing with capacitive-based
sensors.
The CTMU module includes the following key features:
• Up to 13 channels available for capacitive or time
measurement input
• On-chip precision current source
• 16-edge input trigger sources
• Selection of edge or level-sensitive inputs
• Polarity control for each edge source
• Control of edge sequence
• Control of response to edges
• High precision time measurement
• Time delay of external or internal signal asynchro-
nous to system clock
• Integrated temperature sensing diode
• Control of current source during auto-sampling
• Four current source ranges
• Time measurement resolution of one nanosecond
A block diagram of the CTMU is shown in Figure 26-1.
FIGURE 26-1:
CTED1
•
•
•
CTED13
Timer1
OC1
IC1-IC3
CMP1-CMP2
PBCLK
CTMU BLOCK DIAGRAM
CTMUCON1 or CTMUCON2
CTMUICON
ITRIM<5:0>
IRNG<1:0>
Current Source
Edge
Control
Logic
EDG1STAT
EDG2STAT
Current
Control
TGEN
CTMU
Control
Logic
CTMUT
(To ADC)
Temperature
Sensor
CTMUP
CTMUI
(To ADC S&H capacitor)
C2INB
Pulse
Generator
CDelay
External capacitor
for pulse generation
Comparator 2
ADC
Trigger
CTPLS
Current Control Selection
CTMUT
CTMUI
CTMUP
No Connect
TGEN
0
0
1
1
EDG1STAT, EDG2STAT
EDG1STAT = EDG2STAT
EDG1STAT EDG2STAT
EDG1STAT EDG2STAT
EDG1STAT = EDG2STAT
2014-2017 Microchip Technology Inc.
DS60001290E-page 279