Jump to content


Recommended Posts

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

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...