943,600 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 3515
  • Assembly RSS
Jun 16th, 2005
0

Temperauture Conversion

Expand Post »
Hello, I just created a digital thermometer using a 8085 microprocessor. But the problem is we only had LM36 which measures temperauture in celsius, so we had to convert form celsius to farenheit, using hardware. But on a lab question the teacher wants us to convert the tempauture using software and not hardware, but I have no clue as how to do this in software, can somebdoy point me in the right direction to do this. Thanks in advance.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
jfountain02 is offline Offline
21 posts
since Feb 2005
Jun 16th, 2005
0

Re: Temperauture Conversion

The formula itself is quite simple:

F = (9/5)*C+32

Not sure if you want to do this in 8085 assembly?
Reputation Points: 15
Solved Threads: 3
Junior Poster in Training
JoetjeF is offline Offline
67 posts
since Jun 2005
Jun 16th, 2005
0

Re: Temperauture Conversion

Yeah, I already knew what the formula was, I just can't figure out on how to do it on a 8085 microprocessor.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
jfountain02 is offline Offline
21 posts
since Feb 2005
Dec 4th, 2006
0

Re: Temperauture Conversion................

Hello, I just created a digital thermometer using a 8085 microprocessor. But the problem is we only had LM36 which measures temperauture in celsius, so we had to convert form celsius to farenheit, using hardware. But on a lab question the teacher wants us to convert the tempauture using software and not hardware, but I have no clue as how to do this in software, can somebdoy point me in the right direction to do this. Thanks in advance.
...........................:-|
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ebtehal is offline Offline
1 posts
since Dec 2006
Dec 4th, 2006
0

Re: Temperauture Conversion

Yeah, I already knew what the formula was, I just can't figure out on how to do it on a 8085 microprocessor.

If 8085 is anything like 8086 it goes:

xor ah,ah
mov al, celcius
mov bh, 9
mul bh
mov bh, 5
div bh
add al, 32
mov farenheit, al
Reputation Points: 14
Solved Threads: 4
Junior Poster
mathematician is offline Offline
149 posts
since Nov 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: inline assembly getting user input.(djgpp)
Next Thread in Assembly Forum Timeline: sort program assembly





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC