2 Replies Latest reply on Oct 17, 2018 5:07 PM by xzng

    Move two 8 bit array data to two control registers using a DMA

    user_249511659

      Currently I am taking 16 bit waveform data stored in an array, splitting it into two 8 bit bytes, and sending to two control registers. This works great, but I want the DMA to do this so I do not have to run the waveform in a forever loop. See the current wave generating code below.

       

      while(1)

      {

      Wave_Data_MSB_Write(MSBData[i]);

      Wave_Data_LSB_Write(LSBData[i]);

      CyDelayCycles(var_delay);

      i++;

      }

       

       

      Could someone guide me to do this with the DMA? I attached a picture of the control register set up... I placed DMAs as I think they would be used. I added Status regs but I do not think I even need them. I just want the data to stream over to the control registers. I will adjust the speed with the clocks after it is working...

       

       

       

      I do not know what to do here...