kcnypmeknaj
Member
Hi,
I am using a project where my main PCB has to support either Teensy LC and Teensy 3.2 boards. When I need CAN I use the 3.2, otherwise I use the LC.
I want to read in, 2 low frequencies (< 1KHz) and so I use FreqMeasureMulti on pin D6 and D9. So Far everything OK, for use with LC or 3.2
Now I want to use another output to generate a different frequency with different PWM if necessary.
On the LC
I use TimerOne on pin D17 or D16 which has another timer (FTM1) than D6 or D9 (FTM0).
This works fine.
On the 3.2
I can not use pin D17 or D16 because these are no PWM outputs on the 3.2 and I can not use D3 or D4 since I need them to read CAN signals
So the frequency output pin on the LC and 3.2 has to be a common pin because I want to use the same PCB main board.
My question is now can I read in a frequency on a digital pin with FreqMeasureMulti and use another digital pin with the same FTM Timer and use analogWriteFrequency to generate a desired frequency and pwm?
If yes, I could use for example the common D20, D22 or D23 pins with analogWriteFrequency on the LC and 3.2.
Thanks in advance,
I am using a project where my main PCB has to support either Teensy LC and Teensy 3.2 boards. When I need CAN I use the 3.2, otherwise I use the LC.
I want to read in, 2 low frequencies (< 1KHz) and so I use FreqMeasureMulti on pin D6 and D9. So Far everything OK, for use with LC or 3.2
Now I want to use another output to generate a different frequency with different PWM if necessary.
On the LC
I use TimerOne on pin D17 or D16 which has another timer (FTM1) than D6 or D9 (FTM0).
This works fine.
On the 3.2
I can not use pin D17 or D16 because these are no PWM outputs on the 3.2 and I can not use D3 or D4 since I need them to read CAN signals
So the frequency output pin on the LC and 3.2 has to be a common pin because I want to use the same PCB main board.
My question is now can I read in a frequency on a digital pin with FreqMeasureMulti and use another digital pin with the same FTM Timer and use analogWriteFrequency to generate a desired frequency and pwm?
If yes, I could use for example the common D20, D22 or D23 pins with analogWriteFrequency on the LC and 3.2.
Thanks in advance,