Join David as he takes a deeper dive into Direct Memory Access (DMA) and Pulse Width Modulation (PWM) for the RP2040. Included is an example on sequencing through a series of GPIO pins without any processor involvement after the sequence has started.
00:00 - Introduction
01:32 - DMA refresher
02:15 - DMA chaining and aliases
05:00 - PWM details, slices, and channels
07:30 - Detailed example
08:15 - PWM code
09:50 - DMA code
18:45 - Closing
Links:
Files for this episode:
https://github.com/LifeWithDavid/Raspberry-Pi-Pico-PIO/blob/main/dma_step_fade.c
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
PWM basics video:
https://www.youtube.com/watch?v=GQLED3gmONg&t=434s
Music:
(Pinnacle 19.5 royalty-free music):
Pulsing Dance
House Fever
Reaction Time
City Night Groove