Hello,
I have an i.MXRT1160 EVK and I want to perform some ADC measurements.
I reviewed the adc_etc_hardware_trigger_conv_cm7 example and found something strange related to the ADC power and performance mode.
I have checked two configurations to speed up the sample rate.
one of them is this
LPADC_GetDefaultConfig(&lpadcConfig);
lpadcConfig.enableAnalogPreliminary = true;
lpadcConfig.powerLevelMode = kLPADC_PowerLevelAlt1;
LPADC_Init(DEMO_ADC_BASE, &lpadcConfig);
and the other is
LPADC_GetDefaultConfig(&lpadcConfig);
lpadcConfig.enableAnalogPreliminary = true;
lpadcConfig.powerLevelMode = kLPADC_PowerLevelAlt4;
LPADC_Init(DEMO_ADC_BASE, &lpadcConfig);
With those settings, and according to the reference manual, the second setup should run faster than the previous one, since it was set to the highest power setting.
However, I have carried out some profile measurements and the first configuration is faster than the second. Isn't it supposed to be the other way around? Why is the second configuration slower?
Thank you