I was taking notes from this post and stumbled upon a member's response : https://www.avrfreaks.net/forum/help-using-pwm-generate-40-khz-carrier-atmega644p?skey=generate%20pwm where, he/she had listed the steps on generating a pwm of a specific frequency. I was looking at the datasheet, for CTC mode as I want to generate a PWM of a specific frequency with 50% duty cycle and was wondering how to set the COM1A1/COM1A0 bits? How do they affect the OCR1A/OCR1B ?
Joined: Fri. Aug 4, 2017
Posts: 247 View posts