AnsweredAssumed Answered

definition interrupt for Timer

Question asked by Milos on Dec 17, 2009
Latest reply on Dec 18, 2009 by Mitesh

Hi everybody,


I've read the examples about the TIMER.


Can you explain difference between definition of interrupt?


example 1:

     sysreg_bit_set(sysreg_MODE2, TIMEN);    // Global Timer Enable. Enables (if set, = 1) or disables (if cleared,
     sysreg_bit_set(sysreg_IMASK, TMZHI);   //Timer Expired High Priority. Unmasks the TMZHI interrupt
                                            //(if set, = 1), or masks the TMZHI interrupt (if cleared, = 0). A TMZHI
                                            //occurs when the timer decrements to zero. or masks the DPII interrupt (if cleared, = 0).

     interrupts (SIG_TMZ, Timer_isr);    // enable high priority timer interrupt




example 2:



Thank you,