Quote Originally Posted by sirvo View Post
I've done that. It shows 4330Hz...

Yes, I am sure about it.. It is a 20Mhz Xtal.. Then ~900Hz is the frequency that the block (if flag = 1 ..) is running, but no the timer1 interrupt...

Thanks !
That's why I said you're program probably needs to be reworked.
It's spending too much time inside the 'flag if/then' updating the values, therefore it appears to not be interrupting fast enough, when it's actually trying to get everything done that you want it to do. There's just not enough instruction cycles left between interrupts to get that update accomplished.

(let's see if anybody gets this reference)
I guess you could call it a 1201 or a 1202 Program Alarm.