Thx ericgibbs for ur suggestion. It solve part of my problem. Now, im facing a problem before the conversion in 8051.
As mentioned, im using LM35 to ADC0808 to AT89S51. Now, my design is like follow:
Step Size = (Vref+ - Vref-)/256=(2.56 - 0)/256= 10 mv.
Dout = Vin /step Size.
For example, let Vin=0.253V (which represent 25.3 Celcius in LM35)
Therefore, Dout=0.253V/10mV=25.3 But due to 8 bit binary conversion, it will oni output decimal 25 which is 0001 1001 binary into the 8051 microcontroller.
Thus, what shud i do to get 25.3 instead of 25 in the microcontroller (Because after that i hve to display it on LCD)? Anyone can hlp me? Thx in advance!!