needed help on DMA project

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello,

   

I am trying to do a filtering process on psoc5. I did lots of thing but with small issue I turn back the basic form of the project. I tried to solve problem myself but I couldn't understand the reason of the problem. 

   

Here I am doing with ping pong dma and send datas to sd card with emfile. When I writing the datas to sdcard I am writing an array after that I am doing a shift operation (just for try to solve problem. I will use the results after.)  Like this code. 

   

if(TD_Num==DMA_FilterToAvgFilter_TD[1]){
                FS_Write(pFile, (uint8*)filteredDataP0, (NO_OF_SAMPLES*2));
                for(c=0;c<NO_OF_SAMPLES;c++){
                    filteredDataP0 = filteredDataP0 >> 7;
 }

   

But in graph (you can see in attachments) , I wouldn't think to see shift operation results. But there are. 

   

Firstly, I thought about the clear the isr flag, but it seems clearly that clear isr isn't needed.

   

Do you have any idea about the this problem.

   

Regards

   

Burak 

0 Likes
1 Reply