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.

timer interrupt

Other Parts Discussed in Thread: SMJ320C6701
Hi 
I have a doubt regarding the interrupt processing of timers . I have given a count of oxFFFFFF in PRD register and i have given a breakpoint in the ISR . after running the program  i expect that whenever the breakpoint is hit, the CNT should count till FFFFFF before interrupting but i can see that the interrupt is processed or rather it is hitting the breakpoint many times may be around 30 times before reaching the required count .​ i dont think that  there is any prescalar in C6701. Can anyone suggest me a solution for this .
  • Hi Ranjana,

    Could you please tell us on what processor are you using and which code are you referring to ?

    Also Is that code from TI or its your developed own ?

  • sorry forgot to mention that sir,

    am developing my own code for generating a timer0 interrupt after every FFFFFFth count in CCS and am using SMJ320C6701 processor. but i can see that before the timer reaches FFFFFF it is interrupting the cpu many times

  • Hi Ranjana,

    What is your timer period value? The countdown period is the value of TIMER PERIOD, not TIMER PERIOD + 1.

    Though you use break point, the timer count will still continue.

    Please go through the following Timer guide which explains clearly about the timer operation and its interrupts.

    If your doubt still persist, please get back.

    http://www.ti.com/lit/ug/spru582b/spru582b.pdf

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------