Join David as he explores Direct Memory Access (DMA) for the RP2040. Included are examples of how DMA works with PIO and IRQ.
00:00 - Introduction
00:44 - DMA Structure
02:57 - Simple DMA-PWM Fade LED Example
03:39 - Initialize PWM
05:09 - Configure DMA
08:10 - Rune the DMA-PWM Example
08:41 - DMA-PIO-IRQ LED Example
09:31 - PIO Program
12:01 - Main C program
12:34 - Interrupt Handler
14:13 - Configure PIO
14:43 - Configure DMA
16:30 - Run the DMA-PIO-IRQ Example
16:44 - Closing
Links:
Files for this episode:
https://github.com/LifeWithDavid/Raspberry-Pi-Pico-PIO/commit/d060dead08dc1f8abf97eb4c92e5cfe83da5d1a5
RP204 Datasheet:
https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf
Raspberry Pi Pico C/C++ SDK:
https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-c-sdk.pdf
Craig Chadwick's DMA BLOG:
https://gregchadwick.co.uk/blog/playing-with-the-pico-pt2/
Music:
(Pinnacle 19.5 royalty-free music):
Pulsing Dance
House Fever
Reaction Time
City Night Groove