This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Timer 0 interrupt not getting triggered

Hi,
I tried this example but the isr doent seem to be getting executed.

In the isr i m calling a function to display on 7-segment displays.
Otherwise the normal program flow is based on Receiving and Sending data on UART0(using timer1 in 8-bit auto-reload for 9600 baud generation)

Parents
  • There's nothing about 7-segment displays in the application note - so this must be the first thing to check
    This is an addition from my side
    And yes the display code works because i have been using the same code only that it wasnt interrupt driven before
    It was like: while(RI!=1){display();}
    BUt now i want to call this display funtion in an ISR

    I tried a few things since my first post:
    I commented out PT=0 line from timer 0 initialisation
    And also commented out serial comm. part.
    So i was left only with Timer 0 functionality.
    I filled the display_variables with some values.
    Then i could see a faint display of these values...

Reply
  • There's nothing about 7-segment displays in the application note - so this must be the first thing to check
    This is an addition from my side
    And yes the display code works because i have been using the same code only that it wasnt interrupt driven before
    It was like: while(RI!=1){display();}
    BUt now i want to call this display funtion in an ISR

    I tried a few things since my first post:
    I commented out PT=0 line from timer 0 initialisation
    And also commented out serial comm. part.
    So i was left only with Timer 0 functionality.
    I filled the display_variables with some values.
    Then i could see a faint display of these values...

Children
No data