Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Teensy 4.x Pins Overview for fast read/write

  1. #1
    Junior Member
    Join Date
    Apr 2022
    Posts
    13

    Teensy 4.x Pins Overview for fast read/write

    I've added as txt file the Pin Overview of the Fast Ports and Bits for the Teensy 4.x and some read write and direction lines so that you do not have to search for everything in the forum.

    This gives you a quick overview of how it is possible to read or write numerous pins in parallel as quickly as possible (for data ports, for example).


    Click image for larger version. 

Name:	pic.jpg 
Views:	28 
Size:	61.3 KB 
ID:	28729
    Attached Files Attached Files

  2. #2
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    756
    Click image for larger version. 

Name:	Bad Teensy 4 Pins dot txt.png 
Views:	13 
Size:	43.8 KB 
ID:	28733You should really say what program should be used to display the .txt file when you attempt to align columns in a text file. As you can see the columns do NOT line up when viewed with notepad in Windows.
    The only program I can find to display it correctly is Word and viewing in Landscape.
    What editor did you use to produce this file.
    Perhaps a spreadsheet may have been better where alignment can be guaranteed.
    All that having bee said the information is very useful.
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Apr 2022
    Posts
    13
    You can see it in the picture... then you can move the GPIO lines in the right direction, in every program.

    Or you can use a monospaced font, or you can copy it into the Arduino IDE.

  4. #4
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    756
    If you look at it properly it's NOT just the top line, that would be easy.
    Look at GPIO7 does 32 belong under 19 or 20? pin 9 under 18 or 19 etc?

  5. #5
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    756
    Teensy 4 Pins.xls
    Above is a spreadsheet version of @Richardsons excellent info.

  6. #6
    Junior Member
    Join Date
    Apr 2022
    Posts
    13
    Good excel table. About "Max Contiguous bits" ... its not so relevant, because the left and right shifts are damn fast. The whole read write process is very very fast also with a lot left and right shifts also with some direction changes (with 816 Mhz).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •