Hello,
I am working with MCU: S32K118.
I'm trying to enable the HW average option in several Adc gropus from the same AdcHwUnit. The problem is that after enabling it in two of the three adc groups I have, one is working as expected but the rest are either not updated or return 0 constantly.
The configuration was the following:
AdcHwUnit:
- Adc transfer type: ADC_INTERRUPT
- Adc resolution: 12 bits.
Adc group 1 and 2:
- Adc Group Access Mode: ADC_ACCESS_MODE_SINGLE
- Adc Group Conversion Mode: ADC_CONV_MODE_ONESHOT
- Adc Hardware Average Enable
- Adc Hardware Average Select: SAMPLES_8
- Adc Sample Time Duration (2 -> 256) : 256
- Adc Clock Divide Select: DIV_8
Adc group 3:
- Adc Group Access Mode: ADC_ACCESS_MODE_SINGLE
- Adc Group Conversion Mode: ADC_CONV_MODE_ONESHOT
- Adc Hardware Average Disable
Any idea about what can be happening?
Thanks in advance,
Juan Francisco