I am developing my code in ccs compiler,and i used capture function for measuring pulse width but when ccp1 value is checked,it shows larger deviation for a fixed pulse width and it was spontaneously changing.why it is so?here 4MHZ internal clock source is used and ccp1 is also placed in ISR.
Hi,
The internal clock is not absolutely accurate, so for precision jobs, use external crystal. The value of the internal clock may stray with different factors, like temperature,etc.