Datasheet

PIC24FV16KM204 FAMILY
DS30003030B-page 242 2013 Microchip Technology Inc.
FIGURE 24-1: TYPICAL CONNECTIONS AND INTERNAL CONFIGURATION FOR
CAPACITANCE MEASUREMENT
24.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 24-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 24-2: TYPICAL CONNECTIONS AND INTERNAL CONFIGURATION FOR
TIME MEASUREMENT
PIC24F Device
A/D Converter
CTMU
ANx
CAPP
Output Pulse
EDG1STAT
EDG2STAT
RPR
ANy
Timer1
Current Source
PIC24F Device
A/D Converter
CTMU
CTED
X
CTEDX
ANx
Output Pulse
EDG1STAT
EDG2STAT
CAD
RPR
Current Source