dac cosine and dma write, PR? #18532
Unanswered
NicasioSirvent
asked this question in
ESP32
Replies: 1 comment 2 replies
-
|
Interesting that you bring this up My rationales for the cosine generator:
so I'm not sure if it's worth it to weigh down the firmware and C code based on the above rationale. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first time contributor, so best i ask here first...
I needed this functionality, so i have extended machine_dac to include cosine and dma write, following ESP-IDF new sdks.
Testing w oscillocope and esp32s2, cosine can go to 300Khz full amplitude and to 1Mhz or more with 16db att.
And write_continuous can be used to write from dma custom waveforms from lists...etc, at similar speeds.
So, IMHO, heavy improvement versus the time-interrumpt based code in the models with dac support (esp32 and esp32s2)
But... before open a PR, best to ask here: is this PR ready?
https://github.com/NicasioSirvent/micropython/tree/esp32-dac
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions