V
C
V
or V
CC
REF0
V
REF1
Phase I:
Charge
Phase II:
Discharge
Phase III:
Charge
t
ref
Phase IV
Discharge
t
meas
t
R
meas
R
ref
Rref
Rmeas
+
-
VREF
Capture
Input Of a Timer
CE0
Px.x
Px.y
COMP_E Operation
921
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
Comparator E (COMP_E) Module
Figure 35-6. Temperature Measurement System
The resources used to calculate the temperature sensed by Rmeas are:
•
Two digital I/O pins charge and discharge the capacitor.
•
I/O is set to output high (V
CC
) to charge capacitor, reset to discharge.
•
I/O is switched to high-impedance input with CEPDx set when not in use.
•
One output charges and discharges the capacitor through Rref.
•
One output discharges capacitor through Rmeas.
•
The + terminal is connected to the positive terminal of the capacitor.
•
The – terminal is connected to a reference level, for example 0.25 × V
CC
.
•
The output filter should be used to minimize switching noise.
•
CEOUT is used to gate a timer capturing capacitor discharge time.
More than one resistive element can be measured. Additional elements are connected to CE0 with
available I/O pins and switched to high impedance when not being measured.
The thermistor measurement is based on a ratiometric conversion principle. The ratio of two capacitor
discharge times is calculated as shown in
Figure 35-7. Timing for Temperature Measurement Systems
The V
CC
voltage and the capacitor value should remain constant during the conversion but are not critical,
because they cancel in the ratio: