I am using atmega328p. Can i create two different pwms on OC1A and OC1B, both using the 16bit timer1.
Ken Sherriff's blog "Secrets of Arduino PWM" has a good blurb on PWM
I imagine you've seen his webpage by now.
Can i create two different pwms on OC1A and OC1B, both using the 16bit timer1.
So, what brought you to this point? Is there no information in the datasheet? What parts of the datasheet chapter on Timer1 are you having problems with?
What have you tried so far? What are the results? How are you testing -- schematic/connections; Vcc level, AVR clock speed; toolchain/version; complete simple test program.
What are the needed PWM specifications? What is the desired period? Is it the same for both channels? Do you need both 0% and 100% duty cycle? Is ICR1 being used for an input capture?
You can put lipstick on a pig, but it is still a pig.
I've never met a pig I didn't like, as long as you have some salt and pepper.
© 2020 Microchip Technology Inc.