I did ask a similar question a while ago but didn't get any answers; only Technical can give a definitive answer.
There are two possible scenarios (1) as you and BeanieBots suggests, analaogue inputs could be made analogue when READADC is executed and then return to digital inputs when the command completes, or (2) they could be made analogue and stay that way until some explicit command ( INPUT, COUNT, PULSIN etc ) makes them digital inputs again.
The reason behind my question was, what to do in program initialisation when pins start off as digital inputs; is it worth issuing a READADC for analogue pins to make them analogue, or is that pointless because they automatically return to digital afterwards ?
I'm not sure what you are hoping to achieve Jeremy, but it reads like you are hoping they will return to digital and high impedance to reduce current consumption ?
That may not work, and there are explicit warnings about this in the 16F88 (18X) datasheet in section 12.8 - "Analog levels on any pin that is defined as a digital input, may cause the input buffer to consume current out of the device specification".
That to me reads as operating a PICAXE with analogue inputs connected with pins not configured for analogue not only won't minimise current consumption but could have adverse effects.
If READADC does return pins to digital inputs then this could create a potentially adverse condition, and that could be said to be a potentially 'inherent design flaw' in the PICAXE Firmware, but I don't want to be scare-mongering here as I'm not in possession of the full facts.
On the 16F88, the datasheet also says, "When reading the Port register, all pins configured as analog input channels will read as cleared (a low level)". If the inputs stay as analogue after a READADC, then a 'PEEK $05,var' ( read PORTA ) should show that channel low, even if pulled up to +V, so that may be a way to determine what is happening in the Firmware ( I've no 18X to hand to test with ).
The behaviour may vary across PICAXE types, and almost certainly for the 08/18 which use comparators rather than ADC.
Edited by - hippy on 19/07/2006 12:23:59