hi,
i would like to use analog port of 16f877 to get digits chosen by a user using potentiometer. First of all i wonder whether such a one-turn potentiometers are used for that purpose. Generally i have seen dip switches or BCD switches, however one should use so many pins of pic for getting a single digit. To make the matter more clear, the user will choose a number by turning the one-turn potentiometer; lets say it is "6" and 2.2 V [10111011] obtained by the analog port of the pic. If that binary that is in the range of "6" a variable in the pic will be set to 6 [00000110].
It seems pretty easy at first look, but i do not know the reliability of the system. Does anyone help me in understanding possible failure of that application ? and have they ever seen a smd one-turn potentiometer with 10-step resistor [ i mean when you turn it becomes 0 - 1k ohm - 2 ohm - 3 ohm -....10k ohm]