You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use these:
Timer1.initialize(Time_LOW); // sets timer1 to a period of "Time_LOW" microseconds
TCCR1A |= (1 << COM1B1) | (1 << COM1B0); // inverting mode for Pin OC1B --> D4
Timer1.attachInterrupt( timerIsr ); // attach the service routine here
Timer1.pwm(13, duty_cycle); // "duty_cycle" goes from 0 to 1023
works fine with ATmega1284 or ATmega1284p.
Is there an option for inverted PWM?
I have a motor driver that requires an inverted PWM signal of around 32Khz.
The text was updated successfully, but these errors were encountered: