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-13 implements a single counter to detect the occurrence of EVT3 after EVT2. If EVT3 occurs within a specified window after EVT2 then the counter is stopped and reset. The window interval is determined by the LD[j] value. If EVT3 does not occur in this window, the counter overflows and generates an interrupt.
| Register | Value | Description |
|---|---|---|
| TIMB.CTL0.STARTSEL[1] | 9 | EVT2 is used as the start source |
| TIMB.CTL0.STOPSEL[1] | 10 | EVT3 is used as the stop source |
| TIMB.CTL0.RESETSEL[1] | 10 | EVT3 is used as the reset source |
| TIMB.CTL0.CLKSEL[1] | 0 | BUSCLK is used as the counter clock |
| TIMB.LD[1] | 0x06 | LD defines the window |
| TIMB.IMASK | 0x08 | OVF1 is enabled |
| TIMB.CTL0.EN[1] | 0 | Enabled by hardware |