S32 DS USing ADC without interrupt on the S32K311

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32 DS USing ADC without interrupt on the S32K311

1,171件の閲覧回数
SAL_111
Contributor II

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.

0 件の賞賛
返信
4 返答(返信)

1,114件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

1,110件の閲覧回数
SAL_111
Contributor II

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

0 件の賞賛
返信

1,029件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

1,166件の閲覧回数
SAL_111
Contributor II

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

0 件の賞賛
返信