Teensy 4.0 Pinout

Teensy 4.0 component-side reference, covering the side and end contacts and their documented GPIO functions.

Main pinout

Teensy 4.0 component-side reference, covering the side and end contacts and their documented GPIO functions. The notes and PJRC rear pinout card describe additional underside contacts.

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Advanced functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

33 visible
PinMCU pinTypesNotes
GNDCommon ground reference.
GPIOPWMUARTSPICANTeensy digital pin 0. PJRC pinout functions: RX1, CS1, CRX2, PWM.
GPIOPWMUARTSPICANTeensy digital pin 1. PJRC pinout functions: TX1, MISO1, CTX2, PWM.
GPIOPWMAudioTeensy digital pin 2. PJRC pinout functions: OUT2, PWM.
GPIOPWMAudioTeensy digital pin 3. PJRC pinout functions: LRCLK2, PWM.
GPIOPWMAudioTeensy digital pin 4. PJRC pinout functions: BCLK2, PWM.
GPIOPWMAudioTeensy digital pin 5. PJRC pinout functions: IN2, PWM.
GPIOPWMAudioTeensy digital pin 6. PJRC pinout functions: OUT1D, PWM.
GPIOPWMUARTAudioTeensy digital pin 7. PJRC pinout functions: RX2, OUT1A, PWM.
GPIOPWMUARTAudioTeensy digital pin 8. PJRC pinout functions: TX2, IN1, PWM.
GPIOPWMAudioTeensy digital pin 9. PJRC pinout functions: OUT1C, PWM.
GPIOPWMSPIAudioTeensy digital pin 10. PJRC pinout functions: CS, MQSR, PWM.
GPIOPWMSPICANTeensy digital pin 11. PJRC pinout functions: MOSI, CTX1, PWM.
GPIOPWMSPIAudioTeensy digital pin 12. PJRC pinout functions: MISO, MQSL, PWM.
PowerBoard supply input; 3.6–5.5 V according to the PJRC pinout.
GNDCommon ground reference.
PowerRegulated 3.3 V output; the PJRC pinout specifies 250 mA maximum.
GPIOAnalogPWMCANAudioTeensy digital pin 23. PJRC pinout functions: A9, CRX1, MCLK1, PWM.
GPIOAnalogPWMCANTeensy digital pin 22. PJRC pinout functions: A8, CTX1, PWM.
GPIOAnalogUARTAudioTeensy digital pin 21. PJRC pinout functions: A7, RX5, BCLK1.
GPIOAnalogUARTAudioTeensy digital pin 20. PJRC pinout functions: A6, TX5, LRCLK1.
GPIOAnalogPWMI2CTeensy digital pin 19. PJRC pinout functions: A5, SCL0, PWM.
GPIOAnalogPWMI2CTeensy digital pin 18. PJRC pinout functions: A4, SDA0, PWM.
GPIOAnalogUARTI2CTeensy digital pin 17. PJRC pinout functions: A3, TX4, SDA1.
GPIOAnalogUARTI2CTeensy digital pin 16. PJRC pinout functions: A2, RX4, SCL1.
GPIOAnalogPWMUARTAudioTeensy digital pin 15. PJRC pinout functions: A1, RX3, S/PDIF IN, PWM.
GPIOAnalogPWMUARTAudioTeensy digital pin 14. PJRC pinout functions: A0, TX3, S/PDIF OUT, PWM.
GPIOPWMSPICANTeensy digital pin 13. PJRC pinout functions: SCK, LED, PWM, CRX1.
ControlOn/off control for board power management.
ControlProgram contact for the bootloader.
GNDCommon ground contact.
PowerRegulated 3.3 V output.
Power3 V backup battery input for the RTC and power management.

Specifications

Microcontroller
NXP i.MX RT1062 Cortex-M7, up to 600 MHz
Memory
1 MB RAM; 2 MB onboard flash
Power / logic
VIN 3.6–5.5 V; GPIO 3.3 V
I/O
40 digital I/O, 14 analog inputs, 31 PWM
Interfaces
7 UART, 3 SPI, 3 I2C; USB device / host

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Teensy 4.0Official front pinout cardPJRCSide and control contacts and peripheral functions.Datasheet
Teensy 4.0Official rear pinout cardPJRCAdditional GPIO, SDIO, USB and power contacts.Datasheet
MIMXRT1062Microcontroller datasheetNXPElectrical characteristics and package details.Datasheet

Board notes

Rear GPIO and SDIO
GPIO 24–33 are underside pads: 24 (A10, TX6, SCL2, PWM); 25 (A11, RX6, SDA2, PWM); 26 (A12, MOSI1); 27 (A13, SCK1); 28 (RX7, PWM); 29 (TX7, PWM); 30 (CRX3); 31 (CTX3); 32 (OUT1B); 33 (MCLK2, PWM). SDIO uses 34 (DAT1, MISO2, PWM); 35 (DAT0, MOSI2, PWM); 36 (CLK, CS2, PWM); 37 (CMD, SCK2, PWM); 38 (DAT3, RX5, PWM); 39 (DAT2, TX5, PWM), with separate 3V3 and GND pads. The board has no onboard microSD socket; see the PJRC rear card for locations.
USB host
The underside provides USB host D- and D+ solder pads, plus a separate VUSB contact. USB host requires suitable external data and power connections.
Voltage
GPIO uses 3.3 V logic and is not 5 V tolerant. The 3.3 V output capacity and VIN input range are described on the PJRC pinout card.
RTC backup
VBAT can use a 3 V coin cell for real-time clock and power-management backup.