It is that simple. The only drawback is that your values will approximate, unless you need just a few values and translate a range to a single value. Isaac Em 13/09/2015 09:45, David C Brown escreveu: > I want to set values into this eight pin PIC and not having enough pins t= o > do it digitally I thought that I will use the ADCs. A pot across the > rails, wiper to an input, set Vref to Vdd and sample at about 4Hz. > > But it seems too easy. Are there hidden gotchas that require other > components? > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .