9 Replies Latest reply on Feb 14, 2014 3:21 AM by esa.malo

    DMA transfer to Control Reg

    esa.malo

      Has anyone used successfully DMA transfer to Control Reg? I have tried many times without success.

         

      The difficult part seems to be the correct address of the Control Register. What is wrong with the following TD address definition?

         

       

         

              CyDmaTdSetAddress(DMA_1_TD[0], LO16((uint32)ADC_SAR_1_SAR_WRK0_PTR),
                            LO16((uint32)Control_Reg_1_Control_PTR));

         

       

         

      DMA transfer to DAC register works fine.