one item i am noticing is that if the INT routine call has a another sub routine that is activated within it it does not seem to return back to the org int call , i am i missing something ?
one item i am noticing is that if the INT routine call has a another sub routine that is activated within it it does not seem to return back to the org int call , i am i missing something ?
That's what Dave was trying to say. You have the following line in your ISRThis is effectively a GOTO so the execution jumps to the Smooth_reset routine and doesn't return to the ISR from there.Code:if T0Count = 1520 then Smooth_reset
/Henrik.
Bookmarks