Why? Temp conversion C to F code from Rentron (Bruce)


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Why? Temp conversion C to F code from Rentron (Bruce)

    Actually, as my subroutine shows, I am just interested in a routine that returns the temperature in deg F, in a variable (TempF).

    That is why in my example, I have allready removed all the SEROUT statements. And that is where my confusion comes in... after removing all the SEROUT statements I could see the (I believe) redundancy in the code portion we are discussing. BUT after removing the redundancy... I was not getting a correct reading of temperature.

    More testing is needed, it may have been the wee hours that I was doing the testing.

    Thanks
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Why? Temp conversion C to F code from Rentron (Bruce)

    If anybody has more compact code that only gives whole numbers I would be grateful. If anywhere I am weak in PIC Basic programming, it is in the Math area.
    Then just Return after adding 3200 and let the calling routine use digits 4, 3 and 2 of TempF.
    Last edited by Demon; - 17th May 2011 at 18:36.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts