PIO push direction... #17988
-
Hello everyone I'm really lost and just can't see the solution here anymore. I'm reading Pins 0,1,2 and 3 with in_(pins, 4). I want to read everything into a bufferarray and than later on convert it to binary. Also when pushing ISR into FIFO and FIFO to Bytearray, new push should be at the end of the bytearray: Now, in my understanding I have to shift left. Because as I understand it: ISR before first in_ and so one until autopush with 32. So everything moves to the left. So, am I right with SHIFT LEFT or should it be SHIFT RIGHT? I'm asking, because I'm reading an LCD-Signal who outputs 4 bit pixel at once: The only way of getting the right picture is using SHIFT RIGHT with PIO and then HMSB. But as I said, in my head it doesn't make sense to me. Greetings |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
To clarify my thoughts: With shift left I would expect out of the RX FIFO: But maybe I see, that there could be another problem: |
Beta Was this translation helpful? Give feedback.
The DMA puts the 32 bit word into the memory, hight order byte first with bswap=True, or the opposite with bswap=False. The DMA does not know what a bytearray is, it just knows a target address.