I can't change the channel ID of the ADC using swtrigger to complete the conversion.
The number of the channel can only be 0,i can't get the result of conversion if i change it.
In the RM,i find this sentence: None of the SC1B-SC1n registers are used for
software trigger operation and therefore writes to the SC1BSC1n registers do not initiate
a new conversion.
So,should i have to enable the pdb to use multiple channels for AD conversion at the same time?
Hope to get a reply as soon as possible.
Hi,
You could also use SDK Peripheral Abstraction Layer (ADC PAL).
Which allows you to trigger a group of ADC conversions with a single SW or HW trigger.
SDK v0.8.5 includes adc_pal_example_s32k144
Regards,
Daniel
Hi,
I’m sorry for the late response.
Yes, only SCIA (SC1[chanIndex == 0]) can be used for software trigger.
And you can trigger only a single channel with a write to SCIA.
If you want to trigger more channels in a back-to-back conversion, use PDB.
You may refer to: https://community.nxp.com/docs/DOC-339644
Regards,
Daniel