Specifications
12
AVR064
2529A–AVR–11/02
Temperature Calculation In this function the voltage over the NTC thermistor will be measured and the tempera-
ture calculated.
Figure 11. Temperature Calculation
Start by doing an A/D conversion. The average of 32 ADC results is used in a formula to
calculate the corresponding temperature. The heating or cooling pin are set depending
on the difference between the calculated temperature and the temperature set point.
The temperature set point is selected by the user. The bigger the difference is, the
brighter the heating or cooling LED will shine.
Run an
Analog to
Digital
Conversion.
Measured
Temperature 32
Times?
YES
NO
Calculate the Voltage
from the ADC Value,
and Use it in a Formula
to Calulate the
Corresponding
Temperature.
Find the Difference
Between the Measured
Temperature and the
Setpoint, and if
Necessary, set Heating
or Cooling Pin.
Return
ADC_conversion
Increment the
Number of A/D
Converions