I have wired PortA as below:
Do I need to "set" the portA pin2 to "input" or will it automatically assume a High/Low depending on the applied input voltage ?
I have looked at some older threads such as:
http://www.picaxeforum.co.uk/showthread.php?t=12901&highlight=porta
and
http://www.picaxeforum.co.uk/showthread.php?t=11994&highlight=porta
but those do not mention having to "set" the pins to digital or analogue inputs.
The manual is quite clear on how to us the pins but I am unsure of the "setting-up"......
Can I now test PortA pin2 for high/low state while still doing ADc reading on adc0 and adc1 ?adc0(leg2)=analogue
adc1(leg3)=analogue
adc2(leg4)--------|
. |
. dig input---/\//\/\/\----0v
. 10k
Do I need to "set" the portA pin2 to "input" or will it automatically assume a High/Low depending on the applied input voltage ?
I have looked at some older threads such as:
http://www.picaxeforum.co.uk/showthread.php?t=12901&highlight=porta
and
http://www.picaxeforum.co.uk/showthread.php?t=11994&highlight=porta
but those do not mention having to "set" the pins to digital or analogue inputs.
The manual is quite clear on how to us the pins but I am unsure of the "setting-up"......
Last edited: