English
Language : 

AN929 Datasheet, PDF (14/22 Pages) Microchip Technology – Temperature Measurement Circuits for Embedded Applications
AN929
STATE VARIABLE OSCILLATOR
The state variable oscillator shown in Figure 20 con-
sists of integrators A1, A2 and inverter circuit A3. Each
integrator provides a phase shift of 90°, while the
inverter adds an additional 180° phase shift. The total
phase shift of the three amplifiers is equal to 360° and
an oscillation is produced when the output of the third
amplifier is fed back to the first amplifier. The addition
of capacitor C4 helps ensure oscillation start-up. The
dual element RTD represented by R1 and R2 is used to
increase the difference in the oscillation frequency from
the minimum to the maximum sensed temperature.
C1
R1 = RTDA
A1
VDD/2
C2
R2 = RTDB
A2
VDD/2
C4
R4
R3
A3
VDD/2
R8
R7
A5
VDD/2
VOUT
VDD
R5
R6
VDD
A4
C5
VDD/2
fO = 2--1--π--
-----------R----4-----------
R1R2C1C2
If R1 = R2 = R, C1 = C2 = C, and R3 = R4
then fO
=
-------1-------
2πRC
R1 = R2 = RTD
R3 = R4 = R5 = R6 = R7 = 1 kΩ
R8 = 1 MΩ
C1 = C2 = 100 nF
C4 = 20 pF
C5 = 1 µF
FIGURE 20:
State Variable RTD Oscillator.
The state variable circuit offers the advantage that a
limit circuit is not required if rail-to-rail input/output
(RRIO) amplifiers are used and the gain of the inverter
stage A3 is equal to one (i.e., R3 = R4). In contrast, most
oscillators require a limit or clamping circuit to prevent
the amplifiers from saturating. Amplifier A4 is used to
provide the mid-supply reference voltage (VDD/2)
required for the single-supply voltage circuit. Resistors
R5 and R6 form a voltage divider, while capacitor C5 is
used to provide additional noise filtering. A comparator
circuit A5 is used to convert the sinewave output to a
square wave digital signal. The comparator functions
as a zero-crossing detector with a switching threshold
that is equal to VDD/2. Resistor R8 is used to provide
additional hysteresis (VHYS) to the comparator.
Design Procedure:
Set R1 = R2 = R, C1 = C2 = C, R3 = R4 and RO is the
RTD resistance at 0°C.
1. Select a desired nominal oscillation frequency.
2. C = 1 / (2πRofo).
where: Ro = RTD resistance @ 0°C.
3. Select an op amp with a GBWP ≥ 100 x fmax
where: fmax = 1 / (2πRminC) and Rmin = RTD
resistance at coldest sensing temperature.
4. Select R3 = R4 equal to 1 to 10 times Ro.
5. Select C4 using the following equations:
f-3dB = 1 / (2πR4C4)
C4 ≈ 1 / (2πR4f-3dB)
where: f-3dB ≅ op amp’s GBWP
RELAXATION OSCILLATOR
The relaxation oscillator shown in Figure 21 provides a
simple circuit to interface a RTD to a microcontroller.
This circuit requires only a comparator, capacitor and a
few resistors to generate a frequency output that is
proportional to the RTD resistance. The accuracy of
this circuit is limited by the poor tolerance and large
temperature coefficient available with the required,
relatively large, capacitor C1.
The relaxation oscillator functions as a comparator.
Resistors R2, R3 and R4 form a voltage divider that sets
the hysteresis and voltage trip levels. Resistor R1 and
capacitor C1 form the RC time constant that determines
the charge and discharge rate or oscillation frequency.
If VOUT equals VDD, C1 charges from the comparator’s
low threshold (VTL) to the high threshold (VTH), causing
VOUT to toggle to VSS. If VOUT equals VSS, C1
discharges from VTH to VTL and VOUT switches to VDD.
The voltage-switching process then repeats, which
generates the oscillation.
The accuracy of the relaxation oscillator can be
improved by using a comparator rather than an op amp
for the amplifier. A comparator offers several advan-
tages over an op amp in a non-linear switching circuit,
such as a square wave oscillator. An op amp is
intended to operate as a linear amplifier, while the com-
parator is designed to function as a fast switch. The
switching specifications (such as propagation delay
and rise/fall time) of a comparator are typically much
better than an op amp’s specifications. Also, the
switching characteristics of an op amp typically consist
of only a slew rate specification. The accuracy of the
relaxation oscillator can be improved by using a higher
DS00929A-page 14
 2004 Microchip Technology Inc.