Hi guys. I had a question regarding PWM frequency. I have PWM working using a analogwrite on pin 11. I'm reading a 245hz pwm frequency with my Tektronics scope. This is half of what I've read the frequency should be (490hz).
I'm fairly certain that the scope is ok and its doing a automatic measurement of frequency and duty cycle. Duty Cycle looks right.
Am I loosing my mind or have I done something wrong? I have a Arduino Pro 3.3v 8mhz set as the board type in the IDE and that is what is marked on it.
I have the PID library and the Software Serial Library installed. I commented all of that out to be sure they were not messing with things and still no change. Just the basic set the pin for output and analogwrite value. Always half freq of what was stock and half frequency of what I select in the TCCR2B register.
The timers work by dividing the processor clock by certain amounts (called a "prescaler"). The core always sets the prescaler to 64 for the timers. For fast PWM (timer 0), the frequency is...