HI,
I have to configure ADC0 to 5 channels and ADC1 to 2 channels
Hi Shruthi_C,
Please refer to :
Example S32K144 PDB ADC DMA S32DS.ARM.2018.R1
Example S32K148 PDB0-PDB1 ring S32DS3.4 RTM4.0.3
Example S32K148 PDB0-PDB1 ring DMA S32DS3.4 RTM4.0.3
These examples select LPIT hardware trigger, you can use the SW trigger instead.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
HI Robin,
Can we use Software trigger for multiple channels of ADC and a\can we read the results ?
As in data sheet given like this
Sorry for the misunderstanding with my previous reply.
If you have to configure ADC in software trigger mode (when SC2[ADTRG]=0), then you may need to write SC1A[ADCH] values one by one for ADC0 and ADC1 respectively to achieve ADC sample.
But I think you can configure ADC in hardware trigger mode (when SC2[ADTRG]=1), and select PDB trigger ADC. Select software trigger for PDB, writing 1 to PDB_SC[SWTRIG] resets and restarts the counter of PDB.
For more detail please have a look at 43.7 ADC Trigger Sources of S32K-RM.
Hi Robin, Thanks for your support