I'm using the nrf52832 and I need to stream audio from an SPI connected memory chip, to an I2S connected amplifier. Is there a way I can have the SPI device stream data directly to the I2S device, without having to manually double buffer it?
I'm using the nrf52832 and I need to stream audio from an SPI connected memory chip, to an I2S connected amplifier. Is there a way I can have the SPI device stream data directly to the I2S device, without having to manually double buffer it?
No there isn't - you'll have to DMA it into memory and DMA it out again.
Thank you very much for the reply, PPI sounds ideal, I'll dig into that more if double buffering doesn't pan out (I've already got most of a double buffering solution I think). I've got EasyDMA working for SPI to RAM, and RAM to I2S, so now I just need to make that happen concurrently. Also I'm trying to find a work around for the SPIM 256 byte transfer limit, and I think the SPI array list is the solution, I just need to figure out how to make it work. :)
Thank you very much for the reply, PPI sounds ideal, I'll dig into that more if double buffering doesn't pan out (I've already got most of a double buffering solution I think). I've got EasyDMA working for SPI to RAM, and RAM to I2S, so now I just need to make that happen concurrently. Also I'm trying to find a work around for the SPIM 256 byte transfer limit, and I think the SPI array list is the solution, I just need to figure out how to make it work. :)