FTM timer conflict with audio shield

Status
Not open for further replies.

philq

Member
I am working on getting my first Teensy project off the ground with 3.5
I need to drive 4 steppers, 12 pwm LED outputs and an audio adapter board rev c

I am allocating pins. audio will use 7,9,10,11,12,13,14,18,19 (plus power/gnd)
Driving the 4 steppers with the 4 PIT timers through isr on pins 24,26,31and34(dir 25,27,32,33)
The PWM outputs use analogWrite() function and FTM0, FTM1 and FTM3 pins that were not already used by the audio shield board, so 5,6,20,21,3,4,2,8,35,36,37 and 38

Now I am questioning whether there is going to be a conflict between the analogWrite() and the shield which is also using PWM pins from FTM0 and FTM3. I have used analogWriteFrequency() and understand when you set it for one PWM pin you set it for all PWM pins on that FTM, so is that going to conflict with the audio shield or is the audio shield using all of these potentially conflicting pins 7,9,10,14,22 and 23 in some other non PWM configuration?

I would love to have the knowledge to be able to dig into the libraries myself and figure it out but only have so many days left on this earth!
 
Status
Not open for further replies.
Back
Top