fast timer block other interrupts?


Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jul 2007
    Posts
    65

    Default fast timer block other interrupts?

    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:
    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
    my last resort will be to have a 12F PIC killing the 18F with it's MCLR pin...but that feel weird.
    Last edited by flipper_md; - 9th November 2010 at 01:05. Reason: clean code

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts