You are here

Continuous data Transfer on SPI via DMA | Cypress Semiconductor

Continuous data Transfer on SPI via DMA

Summary: 3 Replies, Latest post by burakyasin06_1515461 on 01 Sep 2016 12:44 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
burakyasin06_1515461's picture
User
27 posts

Hello,

Recently, I post similar topic but I think I am facing with another problem. I want to take data from accelerometer sensor(mcu9255). I look at the EP56273 example. In this example, when button is switched SPI transmission occurs. I did it in MCU9255. However, in my project, I want to do it continuous cycle with DMA.  But I am facing with some problems. When I did it continuously, my spi rx interrupt work only one time. 
Do you have any experience like that ? 

I just think that it can be do with DMA but I don't know what's the point ! 

Thank you
Burak

user_1377889's picture
User
10108 posts

The SPI component is already working continuously: Increase the Rx and Tx buffers. When sending data, they will be copied into the Tx buffer and transferred interrupt driven. Read off the bytes from Rx buffer in a tight loop until buffer empty. This will give you plenty of time for other jobs.

 

Bob

burakyasin06_1515461's picture
User
27 posts

I think I need to clear a Tx buffer. Also for high sample rate, I need to read rx buffer from DMA too. So I will write data with DMA and read data with DMA which triggered with rx and tx interrupt channels. But in continuous mode, rx interrupt don't give drq signal from rx channel. 

burakyasin06_1515461's picture
User
27 posts

Sorry, I also need to attach the project,

 

Log in to post new comments.