Hello
I have a pretty fast timer(1) running to draw graphics(POV), interrupt about every 1msec on a 48Mhz PIC (18F2550).
I'd like to be able to change some parameters while this run, but so far I just can't make it respond. Currently testing with DT Instant Int.
I have tried two type of interrupts to stop the Timer1 processing, INT2 and RX_INT, but they get ignored, even if I put a stopper in the Timer routine!?
This is the stopper I have in the Timer1 routine:
my last resort will be to have a 12F PIC killing the 18F with it's MCLR pin...but that feel weird.Code:if INTb2_RxInc = 1 then ; stop INTERUPTS if incoming Rx Timr1Start = 0 @ INT_DISABLE INT0_INT @ INT_DISABLE INT1_INT @ INT_DISABLE TMR0_INT @ INT_DISABLE TMR1_INT ledRFpriority = 1 @ INT_RETURN ; Return to program, (humm that looks clever for instants Ints!!) ; Should add a watch dog for restart endif




Bookmarks