Mac 67 Posted July 8, 2011 Share Posted July 8, 2011 Hey guys. I was wondering if there was any interest in assembly language code examples? It's kind of a learning exercise for me so I'm wondering if I should just keep these snippets to myself until I have a completed program to share. Let me know what you think? This example converts the 16 bit raw Celsius data from a Maxim/Dallas DS18B20 OneWire?? temperature sensor to degrees Fahrenheit rounded to one decimal place. The raw Celsius data looks like this, SSSSSNNN NNNNFFFF, where the S bits are sign bits, the N bits are the integer portion of the temperature (0..127), and the F bits are the fractional portion of the temperature (1/16th or 0.0625 RobG, bluehash, jsolarski and 1 other 4 Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.