martianredskies
Well-known member
I'm trying to figure out which pins to assign to a 12-bit parallel data line (all sync'd). At first i thought I'd group the pins by GPIO port, for example on t3.6 GPIOC has pins 15,22,23,9,10,13,11,12,35,36,37 & 38 as the lower 12-bits. But then i realized that these don't share a common FTM timer;
15 - Unknown
22 - FTM0
23 - FTM0
9 - FTM0
10 - FTM0
13 - UNKNOWN
11 - UNKNOWN
12 - UNKNOWN
35 - FTM3
36 - FTM3
37 - FTM3
38 - FTM3
First obvious question. Are FTM's only associated with pins marked as PWM on the teensy board?
2nd question, does it makes sense to simply group together data lines that should be sync'd to a common FTM timer, so you don't ruin the ability to use PWM's (say as 8-bit analog outs) associated with other timers? My idea of grouping them by GPIO port was to grab all 12-bits in one go as a single variable, without a common port I'd likely default to digitalReadFast and digitalWritefast commands one by one, maybe a slower than the all-in-one-go option?
Is this a complete list below of pins associated with FTM timers, or are ones on the back ignored?
Board Timer PWM Pins Default Frequency
Teensy 3.6
FTM0 5, 6, 9, 10, 20, 21, 22, 23
FTM1 3, 4 488.28 Hz
FTM2 29, 30
FTM3 2, 7, 8, 14, 35, 36, 37, 38
TPM1 16, 17
15 - Unknown
22 - FTM0
23 - FTM0
9 - FTM0
10 - FTM0
13 - UNKNOWN
11 - UNKNOWN
12 - UNKNOWN
35 - FTM3
36 - FTM3
37 - FTM3
38 - FTM3
First obvious question. Are FTM's only associated with pins marked as PWM on the teensy board?
2nd question, does it makes sense to simply group together data lines that should be sync'd to a common FTM timer, so you don't ruin the ability to use PWM's (say as 8-bit analog outs) associated with other timers? My idea of grouping them by GPIO port was to grab all 12-bits in one go as a single variable, without a common port I'd likely default to digitalReadFast and digitalWritefast commands one by one, maybe a slower than the all-in-one-go option?
Is this a complete list below of pins associated with FTM timers, or are ones on the back ignored?
Board Timer PWM Pins Default Frequency
Teensy 3.6
FTM0 5, 6, 9, 10, 20, 21, 22, 23
FTM1 3, 4 488.28 Hz
FTM2 29, 30
FTM3 2, 7, 8, 14, 35, 36, 37, 38
TPM1 16, 17