i have a simple qestion for you about at90usb646.
I'm newbe with fast pwm mode but i know more or less behavior of timers in ctc mode.
I'm reading mcu's datasheet and i'm confused for job of OCR0A register. I read that OCR0A register is used to set TOP of counting. FOr example, if i set OCR0A = 99, TCNT0 count from 0 to 99. However, i read in a tutorial from another site and in same datasheet that OCRnx register is used to setting the compare value. But, i want to generate a pwm signal and OCR0A can be used to setting frequency or duty cycle?? Because if OCR0A set TOP than it set a frequency but if OCR0A set a compare value than it set a duty cycle.
Excuse me but i'm confused.
in closing i need to generate pwm signals with variable frequency and duty cycle.
ps: sorry for my bad english writing.