PWM output incorrect | Cypress Semiconductor
PWM output incorrect
I am trying to get a 1KHz output from a PWM. I am using a 8 bit PWM with the following configurations.
Clock - VC2 (VC1 divider = 16; VC2 divider = 15)
Period = 99
Pulsewidth = 50
With VC2 clock at 100KHz, with PWM period of 99, the output should be 1KHz. But I am getting an output near 240KHz from the PWM. Can someone point me what could be the mistake?