UART based buffer filling and reading via DMA - Cypress.com Forums http://www.cypress.com/? Re: UART based buffer filling and reading via DMA http://www.cypress.com/?rID=50782 Meenz, Can you attach the project. So that we can see the topdesign as well. 

]]>
Thu, 28 Apr 2011 00:03:32 -0600
Re: UART based buffer filling and reading via DMA http://www.cypress.com/?rID=50651 The code snippet looks like this

for(;;){

while(eof==0){

   if(flag==1 ){
        DMA_DmaRelease();         


        VDAC8_Stop();       

        eof=1;


         for(i=0;i<NUM_TD;i++){


            CyDmaTdFree(td[i]);          


        }      


        CyDmaChFree(channel);


        // CyDmaChSetRequest(channel,CPU_TERM_CHAIN);         

         Timer_Stop();


          break;          
      }      

      else{

       ......

     }

  }

  if(eof=1){

           initialise_dma();   //(Fill buffer-> Dma Initilaize-> td allocate->, td set config->td set address ->

                                                                                                   //set initaltd -> dma channel enable )

         Timer_Start();


            VDAC8_Start();       


          eof=0;

  }

}

 

Regards

Meenz

]]>
Mon, 25 Apr 2011 08:20:27 -0600
Re: UART based buffer filling and reading via DMA http://www.cypress.com/?rID=50638 Hi,

I had tried using CyDmaChDisable(channel) also and the result was similar.

Is there some delay associated with the DMA function  calls(is it not completely blocking).

Could you suggest the sequence of steps I should carry out to release the DMA channel and initialise a new one

 

Regards

Meenz

]]>
Mon, 25 Apr 2011 07:50:18 -0600
Re: UART based buffer filling and reading via DMA http://www.cypress.com/?rID=50630 Hi meenz,

 

Are you using CyDMAChDisable/ CyDMAChDisable APIs?

 

 

]]>
Mon, 25 Apr 2011 07:20:20 -0600