Restart 8 different DMAs after they've finished their transferts On RP2040

July 8, 2024, 14:57

thepurpleone

I have 8 PIOs reading PWMs and each time they write into their FIFO, i need the DMA to copy the value into a memory buffer. and restart immediatly, always writing the last value into the buffer. I wanna use the least DMAs i can because i might need some for other stuff, How would i acheive the restarts? - I though about interrupts but i could miss some and i dont want the overhead. - I've seen people restart the channels with another channel, but i would need 8x2 DMA channels ? Any ideas?