Suspecting the ADC measurements or PWM timer output coming wrong for every 65535 iterations.
Here below is the detail of my application.I am running the PWM timer1 at 5Khz in up-down mode. Two interrupts, one in timer counter equal to zero and ADC fast conversion done.Interrupt generates at every timer counter equal to zero then I start the ...