Thank you very much for the reply. Actually in one of my programs i was doing that calculations, now i can safely remove those calculations. But i am not loading any value into PTMR register. Is it OK? One doubt i have for a long time is PWM in any way related to any of timers (in any of pic families) that is if i disable all the timers, the PWM will still work? I have seen some example programs in some pic families where PWM and timer 0 are referred together. Please advise.