Hello,
In practial terms, I have to convert 5 adc, these are ADC0_SE3, ADC0_SE8, ADC0_SE15, ADC1_SE4, ADC1_SE5. And the sample values are saved in a array[5]. It's said that the LPIT could be used as the ADC hardware trigger source through TRGMUX in the refernce manual. But how to configure the LPIT, ADC,TRGMUX using S32K144_SDK_gcc in S32 Design Studio v2.0?
The demo "adc_swtrigger_s32k144" is using endless loop to wait for converting finish, there is not in line with the actual project.
Hello,
Unfortunately, we don’t have such a sample code.
There is only adc_hwtrigger_s32k144 SDK example that shows use of PDB.
LPIT can trigger only 4 channels of each ADC module (ADHWTS A-D).
But TRGMUX allows to select one LPIT channel as a trigger source for one channel of both ADC modules.
So both ADC modules can be triggered simultaneously.
Do you have any specific problem with the SDK setting?
Regards,
Daniel