Microchip Technology MA330028 Data Sheet

Page of 530
 2011-2013 Microchip Technology Inc.
DS70000657H-page 315
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
22.0
CHARGE TIME 
MEASUREMENT UNIT (CTMU) 
The Charge Time Measurement Unit is a flexible analog
module that provides accurate differential time measure-
ment between pulse sources, as well as asynchronous
pulse generation. Its key features include:
• Four Edge Input Trigger Sources
• Polarity Control for Each Edge Source
• Control of Edge Sequence
• Control of Response to Edges
• Precise Time Measurement Resolution of 1 ns
• Accurate Current Source Suitable for Capacitive 
Measurement
• On-Chip Temperature Measurement using a 
Built-in Diode
Together with other on-chip analog modules, the CTMU
can be used to precisely measure time, measure
capacitance, measure relative changes in capacitance
or generate output pulses that are independent of the
system clock.
The CTMU module is ideal for interfacing with
capacitive-based sensors.The CTMU is controlled
through three registers: CTMUCON1, CTMUCON2
and CTMUICON. CTMUCON1 and CTMUCON2
enable the module and control edge source selection,
edge source polarity selection and edge sequencing.
The CTMUICON register controls the selection and
trim of the current source.
Note 1:
This data sheet summarizes the
features of the dsPIC33EPXXXGP50X,
dsPIC33EPXXXMC20X/50X and
PIC24EPXXXGP/MC20X family of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to “Charge Time Measure-
ment Unit (CTMU)”
 (DS70661) in the
dsPIC33/PIC24 Family Reference Man-
ual”
, which is available on the Microchip
www.microchip.com
).
2:
Some registers and associated bits
described in this section may not be
available on all devices. Refer to
 in
this data sheet for device-specific register
and bit information.