Em 13/5/2010 10:09, Olin Lathrop escreveu: > alan smith wrote: > = >> So looking for a little help in implementing this >> >> temp_F =3D (temp_C * 9 / 5) + 32 >> = > Step back and ask yourself whether you really really need the temperature > representation in the PIC to be specifically in F or C. Unless the result > will be displayed to a user directly by the PIC, the answer is most likely > "no". Pick whatever representation has the resolution and range you need, > and is otherwise convenient inside the PIC. > > I've done a lot of PIC applications that have to measure something as part > of their operation, and its very very rare these need to be converted to = any > standard units. > = I also like this approach. Once I designed a battery charger for a very specific product (all parameters fixed, no display, just an LED). Internally I only dealt with ADC units, not even one conversion needed. Isaac __________________________________________________ Fale com seus amigos de gra=E7a com o novo Yahoo! Messenger = http://br.messenger.yahoo.com/ = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist