RT1050 DMA 触发ADC问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1050 DMA 触发ADC问题

1,256 Views
haifeng_jin
Contributor III

hi  NXP:

          我在测试RT1050的时候,发现一个问题,因为有两个ADC模块,我每个模块开了一个通道,然后需要DMA传输

, DMAMUX_SetSource(EXAMPLE_DMAMUX, 0, kDmaRequestMuxADC_ETC);
DMAMUX_SetSource(EXAMPLE_DMAMUX, 1, kDmaRequestMuxADC_ETC);

因为ADC这块,如果用ADC_ETC模块来触发DMA的话,因为DMA的ADC_ETC触发源只有一个,只要任何一个通道完成,都会导致另外一个通道的DMA也会被触发,无法分开的操作,是不是就是这样的?

0 Kudos
1 Reply

858 Views
jimmychan
NXP TechSupport
NXP TechSupport

According to the i.MXRT1050RM Chapter 15,

Capable of triggering dual ADC in SyncMode or AsyncMode:
• In SyncMode ADC1 and ADC2 are controlled by the same trigger source.
• In AsyncMode ADC1 and ADC2 are controlled by separate trigger source.

15.4.1.5 ETC DMA control Register (DMA_CTRL). There are 8 TRIGx_ENABLE and TRIGx_REQ. (where x is 0-7)

0 Kudos