954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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.

jfountain02
Newbie Poster
21 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 

The formula itself is quite simple:

F = (9/5)*C+32

Not sure if you want to do this in 8085 assembly?

JoetjeF
Junior Poster in Training
67 posts since Jun 2005
Reputation Points: 15
Solved Threads: 3
 

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

jfountain02
Newbie Poster
21 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 
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.

...........................:-| ;)

ebtehal
Newbie Poster
1 post since Dec 2006
Reputation Points: 10
Solved Threads: 0
 
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

mathematician
Junior Poster
161 posts since Nov 2006
Reputation Points: 14
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You