PDA

View Full Version : Pin as Digital and Analogue



Peter1960
- 16th July 2006, 03:58
Hi,

I would like to use a pin as both analogue and digital inputs.

1st it needs to be digital to allow ICSP, and then

2nd as a analogue input to measure battery condition.

Any suggestions ?

Can i simply change on the fly ? or

When you program ICSP, it ignores the previous program status of the pin
and sets it how you want ?

kind regards

Pete

mister_e
- 16th July 2006, 09:41
When you're using the ICSP, it ignore what you set in the program.