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.

[FAQ] MSPM0L1306: Creating a 32-Bit Timer From a 16-Bit Timer Chain on MSPM0

Part Number: MSPM0L1306

Tool/software:

Here is the example code to create a 32-Bit Timer From a 16-Bit Timer Chain on MSPM0L1306.  32bit_timer_with_2_16bit_timers_MSPM0L1306_nortos_ticlang.zip

It utilizes two 16-Bit timers to create a 32-Bit timer based on MSPM0L1306. Users can see the 32-bit timer performance by referring to the counterValue.

Timer0 is in the timer mode, Timer1 is in the compare mode. The zero event of Timer0 will trigger the Timer1 counter to increase. If the Timer 1 counter beyonds the number of edge to detect, the Timer 1 counter will turn to zero.

If uers want to generate an interrupt with a fixed 32-bit timer period, please use the timer load event interrupt by referring to the code example: "timx_timer_mode_compare_edge_count" in the SDK.