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:
github.com/LifeWithDavid/Rasp...
RP204 Datasheet:
datasheets.raspberrypi.com/rp...
Raspberry Pi Pico C/C++ SDK:
datasheets.raspberrypi.org/pi...
Craig Chadwick's DMA BLOG:
gregchadwick.co.uk/blog/playi...
Music:
(Pinnacle 19.5 royalty-free music):
Pulsing Dance
House Fever
Reaction Time
City Night Groove
5 авг 2024