SFFS948 May 2025 MSPM0L1227-Q1 , MSPM0L1228-Q1 , MSPM0L2227-Q1 , MSPM0L2228-Q1
There are two timer peripherals in these devices (which support the following key features); (1) TIMGx (general-purpose timer) and (2) TIMAx (advanced timer). The TIMGx is a subset of TIMAx, which means these timers share many common features that are compatible in software. For specific configuration, see Table 5-12:
Specific features for the general-purpose timer (TIMGx) include:
Specific features for the advanced timer (TIMAx) include:
| Instance | Power Domain | Counter Resolution | Prescaler | Repeat Counter | CCP Channels (External/Internal) | External PWM Channels | Phase Load | Shadow Load | Shadow CCs | Deadband | Fault Handler | QEI / Hall Input Mode |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TIMG0 | PD0 | 16-bit | 8-bit | - | 2 | 2 | - | - | - | - | - | - |
| TIMG4 | PD0 | 16-bit | 8-bit | - | 2 | 2 | - | Yes | Yes | - | - | - |
| TIMG5 | PD0 | 16-bit | 8-bit | - | 2 | 2 | - | Yes | Yes | - | - | - |
| TIMG8 | PD0 | 16-bit | 8-bit | - | 2 | 2 | - | - | - | - | - | Yes |
| TIMG12 | PD0 | 32-bit | - | - | 2 | 2 | - | - | Yes | - | - | - |
| TIMA0 | PD0 | 16-bit | 8-bit | Yes | 4/2 | 8 | Yes | Yes | Yes | Yes | Yes | - |
| TSEL.ETSEL Selection | TIMA0 | TIMG0 | TIMG4 | TIMG5 | TIMG8 | TIMG12 |
|---|---|---|---|---|---|---|
| 0 | TIMA0.TRIGO | TIMA0.TRIGO | TIMA0.TRIGO | TIMA0.TRIGO | TIMA0.TRIGO | TIMA0.TRIGO |
| 1 | TIMG0.TRIGO | TIMG0.TRIGO | TIMG0.TRIGO | TIMG0.TRIGO | TIMG0.TRIGO | TIMG0.TRIGO |
| 2 | TIMG4.TRIGO | TIMG4.TRIGO | TIMG4.TRIGO | TIMG4.TRIGO | TIMG4.TRIGO | TIMG4.TRIGO |
| 3 | TIMG5.TRIGO | TIMG5.TRIGO | TIMG5.TRIGO | TIMG5.TRIGO | TIMG5.TRIGO | TIMG5.TRIGO |
| 4 | TIMG8.TRIGO | TIMG8.TRIGO | TIMG8.TRIGO | TIMG8.TRIGO | TIMG8.TRIGO | TIMG8.TRIGO |
| 5 | TIMG12.TRIGO | TIMG12.TRIGO | TIMG12.TRIGO | TIMG12.TRIGO | TIMG12.TRIGO | TIMG12.TRIGO |
| 6 to 15 | Reserved | |||||
| 16 | Event Subscriber Port 0 (FSUB0) | |||||
| 17 | Event Subscriber Port 1 (FSUB1) | |||||
| 18-31 | Reserved | |||||
The following tests must be applied for the targeted ASIL as functional safety mechanisms for this module (to provide diagnostic coverage on a specific function):
| Safety Mechanism | Description | Faults | Failure Modes |
|---|---|---|
| TIM1 | Test for PWM generation | Targeted toward PWM generation logic, including the counters, compare registers, clocking logic, output generation logic, and so forth. |
| TIM2 | Periodic software read back of IP static configuration registers | Targets the static configuration registers in timer. |
| TIM3 (latent fault coverage) | Test for fault generation | This test is a test for diagnostic, which checks the functioning of fault detection logic in timer. Note: This test is applicable only to TIMAx. |
| TIM4 | Fault detection to take the PWMs to safe state | This safety mechanism can be used to detect faults which result in system-level failures like overvoltage and undervoltage and overcurrent and undercurrent. The external faults can be monitored using the fault pins or the analog comparators. The faults which can be covered include the faults in the PWM generation logic, faults in external drivers, and so forth. Note: This test is applicable only to TIMAx. |
| TIM5 | Input capture on two or more timer instances | This test is used to cover the faults in the capture mode logic. The faults can be in clocking, capture logic, counter logic, and so forth. |
| TIM6 | Timer period monitoring. | This test is a run time check, in which the duration between two interrupts can be measured (using another timer). This check is useful in detecting faults which result in the counter taking more or less time than expected and can also cover the clocking related faults. |
| WDT | Windowed watchdog event | Targeted toward faults which result in missing interrupts (periodic interrupts) affecting the program sequence of the CPU. These faults can be faults in the interrupt logic, the logic which sets the interrupt flags, the logic which generates hardware triggers for other IPs (ADC, for example), and so forth. |