Hi, I'm using the S32K311 microcontroller, I successfully read in 18 analog inputs (6 channels o ADC0 and 12 channels on ADC1), the ADCs are triggered by the PIT to perform continous measurements, now I want to implement a solution without interrupts, I want to use DMA, but I found one example here in the community, but maybe there is someone out ther because the sample reads 5 ADC channels from one ADC only, how can I read 18 channels, how do I have to configure the DMA driver for this, I want to use BCTU, PIT and DMA to perform the ADC conversions.
Hi,
various triggering concept examples are shown below, but without DMA
https://community.nxp.com/t5/S32K-Knowledge-Base/RTD400-LLD-K344-ADC-SW-HW-trigger/ta-p/1966179
Some examples with DMA implemented...
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-BTCU-ADC-1-BCTU-ADC-DATA-REG-DM...
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-BTCU-parallel-ADC-FIFO-DMA-DS3-...
BR, Petr
How can I use the DMA driver without any interrupt, so that in my application I only would have the interrupt of the PIT and not from the ADC or DMA or anything else so far
Furthermore, how is it possible to read 6 channels on ADC0 and 12 channels on ADC1 with the BCTU, because it can read parallel, but then I would also have to read 12 channels on ADC0 so the result array has the correct values for both ADCs
Hi,
if remember well, a if BCTU FIFO is used a driver needs to have DMA interrupt enabled, so DMA request is reenabled. Unless you will modify RTD code.
If you need to trigger different number of channels on ADC modules then you will need to use separate BCTU triggers for that and those will point to different channel lists.
Maybe it could be better to do parallel conversions and sample again same channels on ADC0 redundantly.
BR, Petr
Adding info current status through the PIT interrupt i read ADC0 with interrupt and ADC1 with interrupt, now I only want to have the interrupt of the PIT, so I need to get the 18 ADC measurements from the DMA