Hi guys this is my first attempt in A/D.
My target is to build a 0-99 Celsius temperature display. (Two digits & no need decimal point)
My temperature sensor is giving 10mV per Celsius. My supply is 5V.
My analog input is AN0.
For 99 C it has to measure = 99 X 10 = 990 mV. So an eight bit resolution is more than enough.
I just checked my input (AN0) by connecting a V/R. My BCD coding gives me 0 to 255 values when I turning the preset (V/R).
My problem is how to convert this 8 bit value to temperature?
I did a small math as in the graph please tell is that correct or not? If you like you can share a method how to convert this 8 bit value to temperature.
Many Thanks
My target is to build a 0-99 Celsius temperature display. (Two digits & no need decimal point)
My temperature sensor is giving 10mV per Celsius. My supply is 5V.
My analog input is AN0.
For 99 C it has to measure = 99 X 10 = 990 mV. So an eight bit resolution is more than enough.
I just checked my input (AN0) by connecting a V/R. My BCD coding gives me 0 to 255 values when I turning the preset (V/R).
My problem is how to convert this 8 bit value to temperature?
I did a small math as in the graph please tell is that correct or not? If you like you can share a method how to convert this 8 bit value to temperature.
Many Thanks
Attachments
Last edited: