I am testing some code with Teeensy 3.2 and using PWM function on pins 3,4,5,6,9. I’d like to update PWM duty cycle inside an IntervalTimer function based on some ADC value readings. The PWM frequency is chosen based on the table on https://www.pjrc.com/teensy/td_pulse.html. The pin 5 seem to jump to 100% duty cyle and it does not change when analogWrite is used to set it to other/lower value.
I wonder if there is any timer conflict having to do with the pin selection since I know that different hardware timers are used for different PWM pins.
I can also post code if that is helpful
Thanks a lot for your help and any advice that might be helpful,
George
I wonder if there is any timer conflict having to do with the pin selection since I know that different hardware timers are used for different PWM pins.
I can also post code if that is helpful
Thanks a lot for your help and any advice that might be helpful,
George