Analog input channel #0 is an LM-34A temperature sensor used to read temperatures from -50 to 200 P. Using Equation [10.9], the conversion gain is:
ConvGain = 0.061050
From Equation [10.10], the conversion offset is:
ConvOffset counts =
ConvOffset counts = -307.125 The temperature at the LM34A is given by Equation [10.11] and is:
[10.32] Temperature<,F = (ADCcounts + ConvOffsetcount^ x ConvGain
Temperature^ = (ADCcounts- 307.125^ xOj
Because the LM-34A only needs to be read once per second, the pass counter for the channel will be set to 10 (i.e., 10 X 100 mS scan period).
Was this article helpful?