I'm just reading the documentation regarding the analog digital converter and wonder why there is one bit in the configuration register for every analog input. What will happen when I set more than one bit in CONFIG.D?
cheers Torsten
I'm just reading the documentation regarding the analog digital converter and wonder why there is one bit in the configuration register for every analog input. What will happen when I set more than one bit in CONFIG.D?
cheers Torsten
Hi
Each PSEL bits in the ADC config register represent one AIN input pin. I think you should not enable more than one analog pin at each time for the ADC. You can however sample on multiple pins in time-multiplex fashion, like done in this example.
So the answer to my question would be something like: „There is no special reason; possibly this way the hardware design was easier„? I mean using 3 (lb 8) bits to simply address the analog input would be more intuitive to me ;-) But thank you for the feedback!