samerafach
Member
I'm learning how to use PWM on Teensy 3.6, and I stumbled upon an issue determining what pins to use on Teensy to get the FTM channels to pins.
So starting from this thread: https://forum.pjrc.com/threads/4082...-clock-for-FTM-timers?highlight=telephoneBill, we see that in that code (which works perfectly, thanks to @TelephoneBill), the values 0x300 and 0x400 were used for the pins register (PORTB_PCR0). Now looking at the K66 manual, page 221, all we can see are MUX values "Alternative X", where X goes from 1-7, and that code uses 3 and 4. So my question is: What's the relation between this MUX number and FTM channels Teensy 3.6 appear? Where can I find the association?
I can so far relate the FTMn_CHm channel from section 11.3.1, and then find that on the Teensy schematic. But then from the table to the Teensy pin is a relation I wasn't able to find.
To give an example: How to I get the pin associated with FTM3_CH0, which is connected to A5 according to the table, and to pin 2 according to the schematic of Teensy 3.6. What's the value that has to go to the PORTB register?
Thanks in advance
So starting from this thread: https://forum.pjrc.com/threads/4082...-clock-for-FTM-timers?highlight=telephoneBill, we see that in that code (which works perfectly, thanks to @TelephoneBill), the values 0x300 and 0x400 were used for the pins register (PORTB_PCR0). Now looking at the K66 manual, page 221, all we can see are MUX values "Alternative X", where X goes from 1-7, and that code uses 3 and 4. So my question is: What's the relation between this MUX number and FTM channels Teensy 3.6 appear? Where can I find the association?
I can so far relate the FTMn_CHm channel from section 11.3.1, and then find that on the Teensy schematic. But then from the table to the Teensy pin is a relation I wasn't able to find.
To give an example: How to I get the pin associated with FTM3_CH0, which is connected to A5 according to the table, and to pin 2 according to the schematic of Teensy 3.6. What's the value that has to go to the PORTB register?
Thanks in advance
Last edited: