Temperauture Conversion

Reply

Join Date: Feb 2005
Posts: 21
Reputation: jfountain02 is an unknown quantity at this point 
Solved Threads: 1
jfountain02 jfountain02 is offline Offline
Newbie Poster

Temperauture Conversion

 
0
  #1
Jun 16th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 67
Reputation: JoetjeF is an unknown quantity at this point 
Solved Threads: 3
JoetjeF JoetjeF is offline Offline
Junior Poster in Training

Re: Temperauture Conversion

 
0
  #2
Jun 16th, 2005
The formula itself is quite simple:

F = (9/5)*C+32

Not sure if you want to do this in 8085 assembly?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 21
Reputation: jfountain02 is an unknown quantity at this point 
Solved Threads: 1
jfountain02 jfountain02 is offline Offline
Newbie Poster

Re: Temperauture Conversion

 
0
  #3
Jun 16th, 2005
Yeah, I already knew what the formula was, I just can't figure out on how to do it on a 8085 microprocessor.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 1
Reputation: ebtehal is an unknown quantity at this point 
Solved Threads: 0
ebtehal ebtehal is offline Offline
Newbie Poster

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

 
0
  #4
Dec 4th, 2006
Originally Posted by jfountain02 View 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.
...........................:-|
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster

Re: Temperauture Conversion

 
0
  #5
Dec 4th, 2006
Originally Posted by jfountain02 View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC