rp2 DMA: 'treq_sel' value for 'no throttling'? #18727
Replies: 3 comments 5 replies
-
|
OK, found it... there are extra values defined in the definition for 'CH0_CTRL_TRIG'. So it's '0x3f', and it appears to work... shouldn't that be the default value though? |
Beta Was this translation helpful? Give feedback.
-
If you talk to hardware, you need to use the proper DREQ for that device. |
Beta Was this translation helpful? Give feedback.
-
|
Guess this counts as a side-question, but if I need to set the 'treq' how can I programmatically figure out which PIO a State-Machine is allocated to?
Documentation does not say... |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
The rp2040 datasheet suggests that DMA can be 'un-throttled', ie running as-fast-as-possible.
With my code only transferring 4x 32-bit words into the PIO's FIFO that should be able to happen, without slowing to however fast the StateMachine is being clocked (and can handling/processing the

pull()/auto-pull).However if I create a
DMA()object, the default value for 'treq_sel' is 0, which is 'DREQ_PIO0_TX0'...?https://docs.micropython.org/en/latest/library/rp2.DMA.html#rp2.DMA.pack_ctrl
So how do I select 'no-throttle'?
Beta Was this translation helpful? Give feedback.
All reactions