Skip to content

Relationship between GPIO ports and Teensy pins #127

Answered by mciantyre
dannymcgee asked this question in Q&A
Discussion options

You must be logged in to vote

Great job working through this, and thanks for sharing your findings.

Sounds like you're correctly interpreting the (common) pin table. But for future readers, here's what we're talking about: Scan down the left-most Pin column to find board pin 4. Then, scan the row until you find GPIO4_IO06 in one of the columns (ignore the "pad ID" column). The GPIO4_IO06 entry indicates that pin 4 works with GPIO port 4. Its offset is 6. This explains why the board pin 4 object pins.p4 only works with gpio4 and not gpio2.

(I'm using the term "offset" to not overload the term "pin." Sometimes it's denoted like GPIO4[6], which looks like an array offset.)

GPIO4_COMBINED_0_15 will pend whenever something…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dannymcgee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants