Empty TX FIFO of PIO #16149
-
Hi, please is there a way to empty TX (!!not RX!!) FIFO of the PIO before the PIO start? I kind of think that the FIFO content survives the state machine reset and such. What I need is to repeatedly restart the PIO that fetches data from RAM and on every restart, I need to start with the same sequence of bytes sent to PIO, however when the PIO is stopped, there may be some data in TX FIFO left orphaned and I need to flush those and fill with the correct sequence beginning data instead. I found only one way to do so: statemachine.exec("pull()") - this fortunately seems to work for me - is there any other way, please? It is easy to poll the number of items in the FIFO, indeed, but I couldn't find any uPy command to empty it... Thank You so much, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
-- thank You, Raul, for confirming. |
Beta Was this translation helpful? Give feedback.
statemachine.exec("pull()")
was my method of choice and I had no problem with using it whenever needed.
Afaik or recall now there is no other method.