Replies: 1 comment 1 reply
-
I'm not sure I understand what you're doing and how the SPISlave demo has any relevance. If I understand what your real app will be doing, it will do a SPI master transaction of 16b to read in a sample, do some math, then do a SPI master transaction of 16b to write it elsewhere. So, no slave mode at all. If that's the case then simply setting up IF you do a large, (order of 16K, not 16b) SPI transfer using DMA (see the The example here even does tons of other things between SPI transactions, including string manipulations and even USB writes (which can block on USB polling) between transactions (I assume when testing speeds you commented out the |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I need to use SPI to read data in and then do some DSP and then write it back out (to a different SPI). I would like the most time I can have to do the DSP, and my data is coming in and going back out at about 100 kHz at 16 bits via SPI. I read that the Pico can do 62.5 MBit/s or close to it, but the fastest I can get SPItoMyself.ino to run is 7 MBit/s by adjusting the spisettings. I tried to make the wires short. I took another board I had with a Raspberry Pi Pico W and since it was closer and the pins were not used by the PCB it was soldered to tested it. Here is a photo of my hardware setup. The waveforms look fine on the scope, so I suspect it is due to the things the software is doing. I'd like to understand why I can't go faster.
Here is my code:
Thanks!
Rob
Beta Was this translation helpful? Give feedback.
All reactions