SLAAEF9A November 2023 ā May 2025 MSPM0C1104 , MSPM0G3507 , MSPM0H3216 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1306 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1
RL78 and MSPM0 both offer various timers. MSPM0 offers timers with varying features that support use cases from low power monitoring to advanced motor control.
| RL78 | MSPM0 | ||
|---|---|---|---|
| Timer Name | Abbreviated Name | Timer Name | Abbreviated Name |
| Advanced control | TIMA0 | ||
| General purpose | TIMER RJ, RD, RG, RX | General purpose | TIMG0-11 |
| Time interval generate | Interval Timer | High resolution | TIMG12 |
| Basic | Timer Array Unit (TAU) | ||
| Feature | RL78 Timers | MSPM0 |
|---|---|---|
| Resolution | 8, 12, 16 , 32 bit | 16 bit, 32 bit |
| PWM | Yes | Yes |
| Capture | Yes | Yes |
| Compare | Yes | Yes |
| One-shot | Yes | Yes |
| Up down count functionality | Yes | Yes |
| Power Modes | Yes | Yes |
| QEI support | No | Yes |
| Programmable pre-scalar | Yes | Yes |
| Shadow register mode | No | Yes |
| Events/Interrupt | Yes | Yes |
| Auto reload functionality | Yes | Yes |
| Fault handling | No | Yes |
| RL78 Timer | MSPM0 Equivalent | Reasoning |
|---|---|---|
| TAU | Any | General purpose, 16-bit resolution |
| 32-bit Interval Timer | TIMG12 | 32-bit resolution |
| TIMER RJ, RD, RG, RX | TIMA, TIMG0-11 | Advance purpose, PWM, Capture, Compare |
| Feature | RL78 Timer | MSPM0 Timer |
|---|---|---|
| PWM | TIMER RJ, RD, RG | All timers have edge aligned or center aligned options |
| Capture | TIMER RD, RG, RX | All timers |
| Compare | TIMER RD | All timers |
| One-shot | All timers | All timers |
| Prescaler | 4-bit prescaler | 8-bit prescaler |
| Synchronization | TAU | All timers have this capability |
Timer Code Examples
Information about timer code examples can be found in the MSPM0 SDK examples guide.