This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem in Timer ISR



I have put a small code in the Timer ISR.

Its strange to find that the code in the ISR is not getting executed completely.

Following is my ISR subroutine.

interrupt void TINT_isr(void)
{
    static Int16 ctr = 1U;
    *CPU_TIM0_IER     = 0x0001U;             /* clear Timer0 interrupt flag */
    *CPU_TIMINT_AGGR |= 0x0001U;                        /* clear Timer0 bit */
    if (--ctr == 0)     {                             /* did 1/2 second elapse? */
        static Int16 is_on = 1U;
        ctr = BSP_TICKS_PER_SEC / 2;
        if (is_on) {
            USBSTK5515_ULED_off(0U);
            *SARGPOCTRL ^= 0x0008;
                         }
        else {
            USBSTK5515_ULED_on(0U);
            *SARGPOCTRL ^= 0x0008;
        }
        is_on = !is_on;
    }    
}

in this ISR i can see the ULED glowing, but i cant see this *SARGPOCTRL ^= 0x0008 in the GP03 pin

Can some1 help