I'm a bit confused about the definitions for the positive and negative mux inputs on my SAMD21 ADC. I have 8 inputs into the ADC and I want to configure each one individually. It looks to me like the positive mux inputs are 0-7 but I don't know the value for negative mux value which I want to set as Internal ground.
Based on google results, I have tried this:
adc_sync_set_inputs(&ADC_0, 0, 0x18, 0) // Input 0
adc_sync_set_inputs(&ADC_0, 1, 0x18, 1) // Input 1
adc_sync_set_inputs(&ADC_0, 2, 0x18, 2) // Input 2
but this does not work for me. Any clues on what I'm doing wrong?
thanks for your help