Deep Dive w/Scott: RP2040 audio and DMA debugging

  Переглядів 6,279

Adafruit Industries

Adafruit Industries

День тому

This week we talk audio playback with the RP2040. Ladyada drops by as well to chat about the RP2040 and CircuitPython.
I’m sponsored by Adafruit to work on CircuitPython. Support them, and by extension me, by purchasing hardware from adafruit.com
Chat with me and a lot of others on the Adafruit Discord at adafru.it/discord.
Deep Dive happens every week. Normally Fridays at 2pm Pacific but occasionally shifted to Thursday at 2pm. Typically goes for two hours or more. Questions are welcome. Next week is on Friday.
Links
Adafruit AR for pin overlay on Pico blog.adafruit.com/2021/02/05/...
RP2040 die photos / 1355092011829719046
Working branch for Audio github.com/tannewt/circuitpyt...
0:00 Welcome and hellos
07:47 Housekeeping
13:32 - tiny uft channel created
15:00 Scott’s FPGA fantasy: ( no credit to dcd :-) )
William D Jones Is working on adding Lattice MachXO2 support to the OS FGPA Tools / 1356042679608606721
15:40 ​Is UART planned in CircuitPython for the Pico?
18:00 Ryzen discussion ( 5 seconds to build rp2040 build on ASUS ROG Crosshair VIII Hero, while rpi build took minutes )
22:24 I tried looking at sleep on the nrf, can you explain the esp32s2 code and where the calls would differ? Also, where do the nrf specific libraries live?
23:49 Sleep. Continued
27:28 NRF datasheet 5.2.1.1
32:00 NFR power on github
35:27 Circuit Python in space satellite - see adafruit blog - blog.adafruit.com/2021/02/02/...
38:40 Adafruit AR app for RP2040 and iOS
47:24 Audio on the Adafruit Feather!
51:20 review code.py for audio
52:30 foamyguy streaming tomorrow morning 10am central time
53:00 back to code.py…
53:50 Logic analyzer ( Logic 2 )
55:30 PWM output - verified that the code doesn’t work :-)
57:30 Stema Speaker for audio
1:10:30 RP2040 Datasheet for PWM
1:15:08 audio_dma.c code
1:17:33 Ladyada / mystery guest
1:20:01 Arm vs RISCV choice ( Why do you think they went with ARM and not RISCV? )
1:22:26 @arturo182 has the same RP2040 Zero sized so you both have one and wait for the chip?
1:23:30 Adding easy for people to add new boards to CP ( RP 2040 might bring the board count to 200 )
1:26:30 Audio algorithm discussion PWM / sine wave
1:28:00 Timers on RP 2040
1:31:50 Not enough pins on the “gameboy” thing
1:35:17 - Issue #4 - buffering data from the adc…
1:42:02 WM 8960 for I2S ( UDA chip discontinued )
1:44:42 - goodbye LadyAdy
1:45:00 resync / questions ….
1:48:45 X-Ray scans ( also decapped RP 2040 ) / 1355093011923750912
1:52:40 RP 2040 interpolator and divider peripherals
1:54:22 Interpolator in the Datasheet 2.3..1 SIO ( under Processor subsystem )
2:00:00 UART from PrimeCell UART (PL011)
2:01:20 back to Interpolator
2:03:05 back to conversion code in audio_dma.c
2:04:00 RP2040 desired ‘improvements’
2:05:55 pioasm complete? Missing features.
2:06:30 github rp2040_audiopwmio
2:07:29 plans for second rp2040 second core
2:10:59 wrap up ( mistakes credit to dcd :-) )
2:13:53 pet the cat
2:14:36 signs off

КОМЕНТАРІ: 8
@Johnny.Fedora
@Johnny.Fedora 2 роки тому
The convention for attaching peripherals to a powered-up board is in this order: ground, Vcc/Vdd, and then, signal line(s). If you attach Vcc/Vdd and then the signal line with no ground, you can cause some problems.
@MordecaiV
@MordecaiV 2 роки тому
Thanks for this! I'm planning on implementing some audio mixing things in C on the pico, and the 'mario cart accelerator' as Luke described it might come in handy... We'll see.
@MordecaiV
@MordecaiV 2 роки тому
As for my least favorite part of the 2040 _so far_ it's that the power of the PIO seems to be much easier to use for the Out rather than In, but I'm still learning a lot!
@Johnny.Fedora
@Johnny.Fedora 2 роки тому
When you say that Python is doing stuff in the background (moving audio samples?), don't you mean the DMA hardware? You're just setting up the DMA registers through a Python call, rather than doing concurrency in Python. Right?
@Electronics-Rocks
@Electronics-Rocks 3 роки тому
also helps Raspberry PI and ARM offices are near each other. Also this will help ARM sales as people learn on the PI so when you move into business you go for what you like. So it would be worth ARM to give away the core to there neighbours at the Raspberry Pi foundation.
@rayamos4681
@rayamos4681 2 роки тому
pro tip: watch series on flixzone. I've been using them for watching all kinds of movies recently.
@franklinoscar2615
@franklinoscar2615 2 роки тому
@Ray Amos Definitely, been using Flixzone for since november myself :D
@paulmaydaynight9925
@paulmaydaynight9925 3 роки тому
c.o steven behnke very useful info everyone should know. if you add a momentary switch to the 'run' pin and ground you can use it as a reset ,hold the new reset button, press 'boot sel' button at the same time , then release the reset, you dont need to keep replugging the usb power any more. btw i dont get why you/they used the M0+ instead of the M4 with real fpu as the base, adding more QSPI next time for MR10Q010, 1Mb QSPI MRAM. etc in a new variant please, and for fun port carl's github.com/rebol/rebol to pico too if you know someone that can, officially unsupported is fine as long as it works
#370 Raspberry Pi Pico vs ESP32 (-S2) and STM32 Blackpill
15:53
Andreas Spiess
Переглядів 382 тис.
GPIO for any PC or Laptop: Adafruit FT232H
19:18
ExplainingComputers
Переглядів 193 тис.
ФОКУС С ЧИПСАМИ (секрет)
00:44
Masomka
Переглядів 1,3 млн
RPG Maker MZ script calls: Show Text
23:59
BimLab
Переглядів 4
Arduino vs Pico - Which is the Best Microcontroller For You?
20:38
Gary Explains
Переглядів 276 тис.
What is VGA and How to Use it With a Raspberry Pi Pico
18:28
Gary Explains
Переглядів 48 тис.
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18
GreatScott!
Переглядів 578 тис.
PicoMiteVGA: Raspberry Pi Pico Boot-to-BASIC Microcomputer
23:58
ExplainingComputers
Переглядів 119 тис.
The Great Search: Z80 Processors #TheGreatSearch #DigiKey @DigiKey
8:39
Adafruit Industries
Переглядів 3,5 тис.
The new Raspberry Pi Pico W is just $6
7:56
Jeff Geerling
Переглядів 422 тис.
Pi Pico + KMK = the perfect combo for Custom Keyboards
7:41
Jan Lunge
Переглядів 58 тис.
Raspberry Pi Pico - Control the (I/O) World
1:03:16
DroneBot Workshop
Переглядів 596 тис.
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Переглядів 855 тис.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Переглядів 14 млн
I had no idea SHEIN sold PC parts…
27:10
Linus Tech Tips
Переглядів 631 тис.
Распаковка айфона в воде😱 #shorts
0:25
НЭКС
Переглядів 22 тис.