configAD
 
Syntax

#define configAD(int channel);
Description

 

Dual Use AD pins

ARMexpress LITE version

The ARMexpress LITE supports up to 6 channels of AD converters. 

On the ARMexpress LITE and ARMweb these pins are configured as digital IOs at reset, but must be switched to AD using configAD(channel) which is a #define for channels 0-7. 

 AD(0)  IO( 7 )
 AD(1)  IO( 10 )
 AD(2)  IO( 8 )
 AD(3)            not available
 AD(4)  not available
 AD(5)  IO( 9 ) 
 AD(6)  IO( 11 )
 AD(7)

 IO( 12 )

Example

    configAD(1);             // switch IO(10) to AD(1) 

See also