SLAU847F October 2022 – March 2026 MSPM0L1105 , MSPM0L1106 , MSPM0L1116 , MSPM0L1117 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2116 , MSPM0L2117 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1
The Figure 29-11 implements a counter to generate an interrupt after counting a certain number of events. In this specific example, as the LD value is 2, an interrupt is generated after 3 events on EVT2.
| Register | Value | Description |
|---|---|---|
| TIMB.CTL0[j].STARTSEL | 9 | Enabled by EVT2 |
| TIMB.CTL0.STOPSEL | 0 | N/A |
| TIMB.CTL0[j].RESETSEL | 0 | N/A |
| TIMB.CTL0[j].CLKSEL | 9 | EVT2 is selected |
| TIMB.LD[j] | 2 | LD Value |
| TIMB.IMASK | 0x001 | OVF interrupt enabled |
| TIMB.CTL0[j].EN | 0 | Enabled by hardware event |