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.

MSP430FR4133: Timers

Part Number: MSP430FR4133

Hello this is just a general question regarding timers for the MSP430 FR4133 as I am not sure what is the correct way to go about this.

Would it be possible to run two timers simultaneously for example one timer counting to 1 minute and starting a process roll back to zero then start to count back to one minute and have another timer counting to multiple specific times like 5.43 start a process and roll back to zero then count to 5.80, repeat the process to 5.91 seconds?

I know the use of UP mode to repeatedly count up to the value of the compare register TAxCCR0 this can be done but simultaneously with two timers I don’t know. 

Any advice would be appreciated.

Thank you

  • The TimerA-s are independent, and each has its own CCR0. So the short answer is: Yes, you can put different values into TA0CCR0 and TA1CCR0 and the timers will cycle at different rates. You can also change CCR0 on each cycle, so the timer will cycle at varying rates.

    The only catch might be when you mentioned "minute". With a clock at 1MHz, the longest cycle time you can get (ID=3,TAIDEX=7) is 1/(1MHz/(65536*8*8)) or about 4 seconds. You'll either need to add a software counter or use the RTC, which offers bigger divisors (but there's only one RTC).

    [Edit: Fixed parentheses]

**Attention** This is a public forum