AnsweredAssumed Answered

MPC5674F EDMA_A to EDMA_B channel linking is possible ?

Question asked by Umit Kayacik on Dec 9, 2015
Latest reply on Dec 11, 2015 by Umit Kayacik

Hi ,

 

Actually my problem is QADC DMA trigger, as you know there are two ADC module on MPC5674F QADC_A and QADC_B. I want to make convertion to all 64 channels in one cycle because of that I have to use both QADC_A and QADC_B. Simply, I want to link from EDMA_A channel 0 to EDMA_B channel 0.

 

How can I do that in without cpu intervention? I use TCD MAJOR LINK register to link but I dont know how can I link to other DMA Engine ?

 

    /*** linking ***/

    EDMA_A.TCD[CFIFO_0_DMA_chnl].CITERE_LINK = 0;

    EDMA_A.TCD[CFIFO_0_DMA_chnl].BITERE_LINK = 0;

    EDMA_A.TCD[CFIFO_0_DMA_chnl].MAJORE_LINK = 1;

    EDMA_A.TCD[CFIFO_0_DMA_chnl].MAJORLINKCH = CFIFO_2_DMA_chnl;

 

Note: ADC_A CFIFO0 DMA is in EDMA_A CH0 and ADC_B CFIFO0 DMA is in EDMA_B CH0.

 

Best Regards,

Umit.

Outcomes