SLAAEF9 November 2023 MSPM0C1104 , MSPM0G3507 , MSPM0L1306
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 | MSPM0G Timers | MSPM0L Timers |
---|---|---|---|
Resolution | 8, 12, 16 , 32 bit | 16 bit, 32 bit | 16 bit |
PWM | Yes | Yes | Yes |
Capture | Yes | Yes | Yes |
Compare | Yes | Yes | Yes |
One-shot | Yes | Yes | Yes |
Up down count functionality | Yes | Yes | Yes |
Power Modes | Yes | Yes | Yes |
QEI support | No | Yes | No |
Programmable pre-scalar | Yes | Yes | Yes |
Shadow register mode | No | Yes | Yes |
Events/Interrupt | Yes | Yes | Yes |
Auto reload functionality | Yes | Yes | Yes |
Fault handling | No | Yes | 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.