Reply by clayforge 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
>




Reply by JCullins 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: clayforge
To: p...@yahoogroups.com
Sent: Tuesday, October 25, 2005 8:55 PM
Subject: [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 Lez 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 clayforge October 25, 20052005-10-25
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