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
  • The 'pre' and '/pre' tags are for source code; don't use them for quoting other text - look what it's done to the width of the message!

    :-0

    "Make interrupt routines small: Interrupt routines should be designed to do as little as possible, as quickly as possible, and leave longer processing to the
    main program. For example, a receive serial interrupt should read a byte from SBUF and copy it to a temporary buffer defined by the user and exit as quickly as possible. The main program must then handle the process of interpreting the data that was stored in the temporary buffer. By minimizing the amount of
    time spent in an interrupt, the MSC1210 spends more time in the main program, which means additional interrupts can be handled faster when they occur."

    Exactly - just what has been said already!

Reply
  • The 'pre' and '/pre' tags are for source code; don't use them for quoting other text - look what it's done to the width of the message!

    :-0

    "Make interrupt routines small: Interrupt routines should be designed to do as little as possible, as quickly as possible, and leave longer processing to the
    main program. For example, a receive serial interrupt should read a byte from SBUF and copy it to a temporary buffer defined by the user and exit as quickly as possible. The main program must then handle the process of interpreting the data that was stored in the temporary buffer. By minimizing the amount of
    time spent in an interrupt, the MSC1210 spends more time in the main program, which means additional interrupts can be handled faster when they occur."

    Exactly - just what has been said already!

Children