- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content