PIO code for 8-bit parallel #2470
troisiemetype
started this conversation in
Raspberry Pi Pico
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Currently rebooting a project started on the ESP32 to make profit of the PIO, I spent the major part of yesterday playing with PIO and understanding exactly what your PIO code do, and what functions are calling it at which precises steps.
That brings me to two things :
out pins, 24
lines do : I first supposed they drop unwanted values, but in both case they are used, as they are followed by a clock edge.So, as I understand it : bits 8-31 are output to pins (OSR is read from the left), with only bits 8-15 being effectively taken into account, bits 16-31 being out of PIO output mask.
Then the remaining 8 bits are output.
And the reason for that is that display controllers want MSB first data. That configuration makes it difficult to use the autopull and pull threshold that are built into the PIO. 16 bits would imply shifting the OSR to the right, but then the data would be sent LSB first.
Is that it, or am I missing something ?
Beta Was this translation helpful? Give feedback.
All reactions