In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: PJ Allen, The 8-bit ADC example in the help file uses the comparitor to compare the input voltage to the voltage generated from the PWM output. The analogin is a different method. It does not use the comparitor, and can use any two pins. It looks to me like both schematics you post are correct for the method being used. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=244365#m245161 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)