In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: Update: Peter, that document of yours is the niftiest thing since sliced bread. While the component count ends up being a bit higher than the analogin circuit in the SX/B docs, using the 3 resistors and 2 caps and properly biasing the input yields incredible results -- rock-steady values across the entire range of the chosen bit resolution. In my test last night, a photoresistor that yields an input voltage of about 2.8v-5v resulted in 8-bit values of 3-247. Nice. Thank you, thank you! While I still sometimes (wistfully) wish that the SX had 1-5 analog channels like some of the PICs, this is a superb way to add one or two ADCs to a project without having to purchase an ADC chip. Sweet. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=311165#m312577 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)