how to toggle the pwm output OCnA OCnB respectively

Thread Starter

jackmrdoctor

Joined Apr 17, 2018
16
i'm working on atmega328p project. i use fast pwm at the 16 bit timer. so i want to output 2 pwm at OCnA and OCnB. both of them have a same top value and same OCRnA and OCRnB. does anyone how i can toggle OCnA and then OCnB repeatedly
 
Top