Discussion forum for the BasicX family of microcontroller chips.
|
Does anyone know if the GetADC() functions always run code to re-configure the input pins to A/D type, regardless of whether they were already set that way? I would have thought that there was a processor overhead associated with that method and that a coding scheme such as: Call ConfigADC(pinnumber) 'configure the pin as A/D Do iV = GetADC(pinnumber) 'faster as pin is already configured Loop would be better. I doubt many applications switch pins from one mode to another as the input circuitry would not support this very easily. Ian |