In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Peter Van der Zee wrote: Hi Tim; Well, you would need to scale it. Presumably you are using a 5volt setup, so 256 counts would represent 0 to 5 volts, so as Bean said, each count represents 5 divided by 256 = 0.019, or approximately 20 millivolts. And if you are reading 85 counts, then this means you are measuring a voltage of 85 times 20 millivolts = 1.7 volts approximately. To display that number you would need to take the reading of 85 and multiply by 20 to see 1700. Optionally you could divide that result by 100 in order to see 17 , and park a decimal between the two digits. Cheers Peter (pjv) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=278052#m278350 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)