|Top Previous Next|
Gets or sets which pins of Port A are analog inputs.
A bit mask identifying pins on Port A that are analog inputs.
Each pin of Port A has a corresponding bit value, as shown in the table:
To set a single analog input, assign its bit value to the enable property. To set multiple analog inputs, OR the bit values together and assign the result to enable.
// Make pins A0, A1, & A7 analog
Cell.ADC.enable = 0x01 | 0x02 | 0x80;
// Make pin A7 digital again
Cell.ADC.enable &= ~0x80;