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.

MSP430F1611: about MSP430F1611 timer

Part Number: MSP430F1611

Dear TI expert,

Now  i am using MSP430f1611 design one CanOpen project.

the clock frequency=230400

the timer work in UP mode, the initial TACCR0=23040, the interval is 100ms, The TACCR0 CCIFG interrupt flag is set when the timer counts to the TACCR0 value.next time, i let the TACCR0=23040+0xffff, i want to know the timer how to work. if the timer counts first to 0xffff and then trig interrupt? and then the timer counts return to 0, and then counter to 23039 and then trig the interrupt?

have a nice day!

  • The Up mode counting sequence is given in User Guide (SLAU049F) Fig 11-3.

    Since CCR0 is only 16 bits wide,  the result of your assignment would be to set CCR0=23039, so the counter would count to 23039. It would never reach 0xFFFF.

    Unsolicited: Fig 11-3 shows that the counter counts both the 0 tick and the (CCR0) tick, so the cycle period is actually (CCR0+1). It is a routine idiom to assign CCR0 to (period-1), in your case "CCR0=23040-1;".

**Attention** This is a public forum