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
This is a basic use case, wherein a periodic interrupt is generated with one counter. The register configuration for the example waveform shown is tabulated in Table 29-4. In this example, an interrupt is generated when CNTR0 equals a value of 3.
| Register | Value | Description |
|---|---|---|
| TIMB.CTL0[0].STARTSEL | 0 | N/A |
| TIMB.CTL0[0].STOPSEL | 0 | N/A |
| TIMB.CTL0[0].RESETSEL | 0 | N/A |
| TIMB.CTL0[0].CLKSEL | 0 | Bus clock clocks the counter |
| TIMB[0].LD | 3 | LD value |
| TIMB.IMASK | 0x001 | OVF0 interrupt is enabled |
| TIMB.CTL0[0].EN | 1 | Enabled by software |