Teensy 4.1 Pin Mapping

Hi,
I am in the process on creating a custom board for driving a configuration of two 32x64 panels with a Teensy 4.1. I also wanted to access I2S audio output and input for the project.

I made a (rather hurried) first version of the design, but the screen does not light up at all. I had essentially remapped all the pins to other locations (included below) and upon some deeper reading its looking like that wasn’t the best idea. :expressionless:

As it looks like I will probably need to do a redesign, I just wanted to check first. Are the pins mapped in the Teensy 4 V5 board critically placed, or is there scope for remapping? Is this based off a FlexIO configuration? Sorry if this is written in the documentation/forums somewhere, but I’ve not seen it around.

Thanks in advance, any help would be greatly appreciated!

Cheers,
Michael.


Teensy Pin Net
27 R1
28 G1
29 B1
30 R2
31 B2
32 G2
33 OE
34 LAT
35 CLK

It’s probably not well documented, but the pins are very critically placed, and there’s little option for remapping. There’s no way to use the I2S input/output pins (pins 7/8) simultaneously, that’s why the jumper was added. I don’t think those signals are available on other pins, though maybe they are on the back or on the extra 4.1 pins. Check the wiki and the schematic for some more documentation, and maybe you can ask @easone who did the Teensy 4.1 port either here on on the PJRC forum for more details, as I don’t know a ton about FlexIO

There is some limited room to change pins when designing a custom board, but there are restrictions relating to FlexIO and FlexPWM.

In fact it is possible to have both I2S input and output available if you are using T4.1, it just wasn’t possible to do this and keep it compatible with T4.0 (without needing to solder to the bottom pads, that is)…

Any of the pin configurations in this Google Sheets document should work, although I certainly haven’t tested them all. The I2S capability is listed under the column “Audio Shield”.

1 Like

Thanks to you both for getting back to me - I’m super grateful for your time and effort!

That spreadsheet is awesome, thanks @easone! I’ll check it out in more detail and see what requires the least amount of change from what I have currently mapped. Might be time to get Frankensteiny! :zombie:

I’ll let you know how I get along.

Cheers,
Michael.

Little update here.

I used the spreadsheet of awesomeness and honed it down to the most convenient row, given my needs. I cut some traces and soldered some wires about the place on my board, updated the pin mapping in my test firmware and Bam! Worked first go!

This gives me some solid direction for the redesign and a prototype to test with in the meantime.

Thanks again for your help guys! I really appreciate it.

Cheers,
Michael.

Glad it worked!
Hopefully the spreadsheet will be useful in the future. For example, if someone wanted to have SPI available, there is a custom configuration in there that should work.

I’m sure it will be. It could be worth adding a link to it in the documentation if there is a section on custom boards, perhaps?

Just for reference, I used the configuration detailed in Row 118 for my board (below).

Cheers,
Michael


Net Pin
R1 6
G1 9
B1 10
R2 11
G2 12
B2 32
LAT 36
OE 37
CLK 35