Hi everyone,
on my XMC4400, I have added an instance of the ADC_MEASUREMENT (v 4.1.20) app with 10 measurements. I selected the 10 bit fast conversion mode with 67ns sample time, I enabled continuous conversion and I chose to start the conversions after initialization.
The app initializes fine, returning success, but when I try to ask for a result (here for a DC current) by either calling
uint32_t result = ADC_MEASUREMENT_GetDetailedResult(&ADC_MEASUREMENT _I_DC_handle) & VADC_G_RES_RESULT_Msk;
or by calling
uint32_t result = (uint32_t)ADC_MEASUREMENT_GetResult(&ADC_MEASUREME NT_I_DC_handle);
both routines will give me just a zero. For every of my 10 channels. Of course the actual voltage to be measured is NOT zero and of course I have assigned the right pins to the 10 channels.
When I change the app configuration parameter to 10-bit normal conversion mode instead, everything works just fine!!! Is there a bug in the app in the fast 10-bit mode, maybe something with the continuous conversion or the start after initialization?
It would be great to get some help! Thank you and kind regards
Niklas
on my XMC4400, I have added an instance of the ADC_MEASUREMENT (v 4.1.20) app with 10 measurements. I selected the 10 bit fast conversion mode with 67ns sample time, I enabled continuous conversion and I chose to start the conversions after initialization.
The app initializes fine, returning success, but when I try to ask for a result (here for a DC current) by either calling
uint32_t result = ADC_MEASUREMENT_GetDetailedResult(&ADC_MEASUREMENT _I_DC_handle) & VADC_G_RES_RESULT_Msk;
or by calling
uint32_t result = (uint32_t)ADC_MEASUREMENT_GetResult(&ADC_MEASUREME NT_I_DC_handle);
both routines will give me just a zero. For every of my 10 channels. Of course the actual voltage to be measured is NOT zero and of course I have assigned the right pins to the 10 channels.
When I change the app configuration parameter to 10-bit normal conversion mode instead, everything works just fine!!! Is there a bug in the app in the fast 10-bit mode, maybe something with the continuous conversion or the start after initialization?
It would be great to get some help! Thank you and kind regards
Niklas