Teensy 3.2 I/O pins 34 or 39

Status
Not open for further replies.
Sorry if this is a silly question but I can't find a answer to my question.
In all documentation of teensy 3.1/3.2 say they have 34 I/O pins but in board have pins 0- 23 (some of this pins are analog pins A0-A9) plus A10,A11,A14 and in the back of board have pads for pin 24-33 (some of this pins are analog pins A15-A20) plus A12,A13.

If whe have pins 0-33 pins (34 pins) and A10-A14 pins (+5 pins) this is a total of 39 pins.

Can use all this pins or not? why in specs say only have 34 I/O pins?

Thanks.
 
On the 3.2, pins starting at 34:
  • 34: A10 (inside through hole pin)
  • 35: A11 (inside through hole pin)
  • 36: A12 (underneath solder pad)
  • 37: A13 (underneath solder pad)
  • 38: Not a pin, but if you do analogRead (38) it gives the internal temp sensor
  • 39: Not a pin, but if you do analogRead (39) it returns VREF
  • 40: A14 (back through hole pin)

can only be used with analogRead. You cannot use them for digitialRead, digitalWrite.

One of the pins (A14) can also be used for analogWrite. In this case, it modifies the voltage level and can be used with amplification for mono sound.

The other pins that support analogWrite do so by rapidly flashing on/off, so that the aggregate will be at the voltage level. You can only use those pins for sound by using a small capacitor to smooth over the differences.

<edit>
I should mention these analog input only pins are limited to 3.3v. If you put more than 3.3v to the pin, you risk damaging your Teensy 3.2. On the Teensy 3.2, the other 34 pins can get 5v as input. Note if you do analogRead on pins A0..A9 and the voltage is over 3.3v, the analogRead function will return the highest value (typically 1023).
 
Last edited:
why in specs say only have 34 I/O pins?

Because we're kinda conservative about over-promising what the hardware can really do. Some pins only support certain features and can't be used as normal digital I/O.

MichaelMeissner covered the details perfectly. Hopefully you can also see those details on the pinout card that came with your Teensy?
 
On the 3.2, pins starting at 34:
  • 34: A10 (inside through hole pin)
  • 35: A11 (inside through hole pin)
  • 36: A12 (underneath solder pad)
  • 37: A13 (underneath solder pad)
  • 38: Not a pin, but if you do analogRead (38) it gives the internal temp sensor
  • 39: Not a pin, but if you do analogRead (39) it returns VREF
  • 40: A14 (back through hole pin)

can only be used with analogRead. You cannot use them for digitialRead, digitalWrite.

One of the pins (A14) can also be used for analogWrite. In this case, it modifies the voltage level and can be used with amplification for mono sound.

The other pins that support analogWrite do so by rapidly flashing on/off, so that the aggregate will be at the voltage level. You can only use those pins for sound by using a small capacitor to smooth over the differences.

<edit>
I should mention these analog input only pins are limited to 3.3v. If you put more than 3.3v to the pin, you risk damaging your Teensy 3.2. On the Teensy 3.2, the other 34 pins can get 5v as input. Note if you do analogRead on pins A0..A9 and the voltage is over 3.3v, the analogRead function will return the highest value (typically 1023).

Thanks, this explanation could not be more clear.
 
Because we're kinda conservative about over-promising what the hardware can really do. Some pins only support certain features and can't be used as normal digital I/O.

MichaelMeissner covered the details perfectly. Hopefully you can also see those details on the pinout card that came with your Teensy?

:cool:
Thanks.
 
I work in a project and I need to use almost all pins ( the only pins I don't use are A10, A11, A14) More of the pins I use are digital only, 4 pins for interrupt function for two encoders, one serial port, can bus port, two analog reads, two pwm outputs and one I2C port.
All pins are mapped correctly, and just have the doubt about why the specs say only 34 pins.
 
Status
Not open for further replies.
Back
Top