Hi, I'm trying to create a digital thermometer which shows the current = temperature on a LCD. I was thinking of using the LM335 as the = temperature probe, as it is a linear temperate/voltage relationship. I = was planning on using the PIC16F877 because of the 10 Bit ADC and the = vast number of IO pins. My problem is, I have only used basic Asm before, and finding how to do = this in any other language is also difficult, as I must somehow do: ADC Ouput (10bit)/ Vref (10bit)=3D A number here. Divide by Vref to get = an accurate temperature even if the voltage isn't as constant as one = would like. Then substitute it into a formula like: 0.15 + (3 * output above) to find the temperature. Does anyone know how to do this, or an easier way of doing this. I've = been looking around and i can't find how PIC's would represent = fractions, and how to substitute into formulas like the above.=20 Thanks, -Peter -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads