Though I am using system clock.//OC1CON1bits.OCTSEL = 0b111;
Say I am using timer 3 for now .
Then when TMR3=pR3 timer rolls over.
So now what technique should I use ?
//This one definitely does no work
if(TMR3==pR3)
{
OC1RS =25000;
OC1R = (25000/2);
}