When using the POT command in PicBasic Pro to read a potentiometer,
does the pin that the potentiometer is attached to have to have ADC, or
can any I/O pin be used?
Thanks!
Scott
POT command question...
Started by ●October 25, 2005
Reply by ●October 26, 20052005-10-26
clayforge wrote:
> When using the POT command in PicBasic Pro to read a potentiometer,
> does the pin that the potentiometer is attached to have to have ADC, or
> can any I/O pin be used?
In old picbasic it used a digital io pin, it sent the pin low, switched
the pin to an input, and timed how long it took to go back to a high
level via a cap/resistor network. this (timed)value was returned.
never used it though!
Reply by ●October 26, 20052005-10-26
It can be any pin with the possible exception of the
open collector
pin. usually portA.4 I believe.
Jim
----- Original Message -----From: clayforgeTo: p...@yahoogroups.comSent: Tuesday, October 25, 2005 8:55 PMSubject: [piclist] POT command question...When using the POT command in PicBasic Pro to read a potentiometer,
does the pin that the potentiometer is attached to have to have ADC, or
can any I/O pin be used?
Thanks!
Scott
Reply by ●October 31, 20052005-10-31
Just wanted to say thanks for the answer! I appreciate the help.
Scott
--- In piclist@picl..., "clayforge" <festave@t...> wrote:
>
> When using the POT command in PicBasic Pro to read a potentiometer,
> does the pin that the potentiometer is attached to have to have ADC, or
> can any I/O pin be used?
>
> Thanks!
>
> Scott
>
Scott
--- In piclist@picl..., "clayforge" <festave@t...> wrote:
>
> When using the POT command in PicBasic Pro to read a potentiometer,
> does the pin that the potentiometer is attached to have to have ADC, or
> can any I/O pin be used?
>
> Thanks!
>
> Scott
>