View Full Version : Add additional AnalogWrite() PWM Pins

05-23-2013, 10:47 PM
As topic, request adding AnalogWrite() 'pins' to the Pads available on the bottom of the Teensy3 - they have the same PWM capability as the existing Analog Pins on the headers (FTM1).

void analogWrite(uint8_t pin, int val)

Smileys attached:
:) :) :)

06-02-2013, 04:35 AM
OK I looked into it a bit more and need to shoot this idea down myself so not to waste Paul's time on it.

Summary :- Pin 24/33 on the SMD pads on the underside whilst PWM/FlexTimer pins, can't be used because the FlexTimers are currently used to drive Pin 9/23.

Below was what I just started typing up before realising this :(
Reference :
(1) http://www.pjrc.com/teensy/pinout.html
(2) http://www.pjrc.com/teensy/schematic.html
(3) https://www.pjrc.com/teensy/K20P64M50SF0RM.pdf

From (1), the underbelly of the Teensy3 has SMD pads for 'pins' 24 through 33.
Teensy3 'pins' 24 & 33 are in the same group of FlexTimer capable pins used by the current AnalogWrite() for PWM.

From (2) & (3)
T3 Pin - K20 Pin - PWM Channel - Current Code assigned pin
24 27(PTA5) - FTM0_CH2 - PTC3(Teensy3 Pin 9)
33 26(PTA4) - FTM0_CH1 - PTC2(Teensy3 Pin 23)