MPC5746C BCTU DMA trigger

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

MPC5746C BCTU DMA trigger

Jump to solution
1,062 Views
saurabh1
Contributor II

Hello,

I have configured the BCTU to trigger ADC conversion from the EMIOs timer. Additionally, I need to configure the DMA to transfer the sampled value in ADC1DR of BCTU to a buffer defined in memory. After configuring, if I trigger the DMA using a software trigger, EDMA_DRV_TriggerSwRequest(0), the DMA transfer works. But, it does not get triggered by the BCTU even after setting the trigger source as EDMA_REQ_BCTU_0. I have also set the DMA enable mask in the BCTU MCR register.

Is there some configuration that I am missing?

 

Thanks,

Saurabh

0 Kudos
1 Solution
1,025 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I think EDMA_REQ_BCTU_1 should be selected for ADC1DR in DMA setting. IN BCTU try to set both DMA1 and IEN1 mask bits in MCR.

BR, Petr

View solution in original post

2 Replies
997 Views
saurabh1
Contributor II

Thanks @PetrS, selecting EDMA_REQ_BCTU_1 as the source in DMAMUX1 worked! In BCTU I still just have the DMA_EN and not the IE1 mask in MCR.

0 Kudos
1,026 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I think EDMA_REQ_BCTU_1 should be selected for ADC1DR in DMA setting. IN BCTU try to set both DMA1 and IEN1 mask bits in MCR.

BR, Petr