Datasheet

PIC24FV32KA304 FAMILY
DS39995D-page 232 2011-2013 Microchip Technology Inc.
FIGURE 25-1: TYPICAL CONNECTIONS AND INTERNAL CONFIGURATION FOR
CAPACITANCE MEASUREMENT
25.2 Measuring Time
Time measurements on the pulse width can be similarly
performed using the A/D module’s Internal Capacitor
(CAD) and a precision resistor for current calibration.
Figure 25-2 displays the external connections used for
time measurements, and how the CTMU and A/D
modules are related in this application. This example
also shows both edge events coming from the external
CTEDx pins, but other configurations using internal
edge sources are possible.
FIGURE 25-2: TYPICAL CONNECTIONS AND INTERNAL CONFIGURATION FOR TIME
MEASUREMENT
PIC24F Device
A/D Converter
CTMU
ANx
CAPP
Output Pulse
EDG1
EDG2
RPR
ANy
Timer1
Current Source
PIC24F Device
A/D Converter
CTMU
CTED
X
CTEDX
ANx
Output Pulse
EDG1
EDG2
CAD
RPR
Current Source