Accessing DMA timers #17227
Unanswered
DavideRossi
asked this question in
RP2040 / Pico
Replies: 0 comments
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.
-
The problem:
treq_sel
inDMA.pack_ctrl
can be set to one of the 4 DMA timers by using values from 0x3b to 0x3e. But I found no Python API to set up these timers.I worked around this by accessing the timers' registers via
machine.mem32[0x50000000 + offset]
where offset can be one of 0x420, 0x424, 0x428, 0x42c. Is there a more refined solution?Beta Was this translation helpful? Give feedback.
All reactions