SLAU929 April 2024 MSPM0C1104 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0L1105 , MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1304 , MSPM0L1305 , MSPM0L1306 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1
Microchip's ATmega and ATtiny and MSPM0 both offer various timers. MSPM0 offers timers with varying features that support use cases from low power monitoring to advanced motor control.
Feature | ATmega Timers | ATtiny Timers | MSPM0G Timers | MSPM0L and MSPM0C Timers |
---|---|---|---|---|
Resolution | 16 bit | 16 bit | 16 bit, 32 bit | 16 bit |
PWM | Yes | Yes | Yes | Yes |
Capture | Yes | Yes | Yes | Yes |
Compare | Yes | Yes | Yes | Yes |
One-shot | No | Yes | Yes | Yes |
Up down count functionality | Yes | Yes | Yes | Yes |
Power Modes | Yes | Yes | Yes | Yes |
QEI support | No | No | Yes | No |
Programmable pre-scalar | Yes | Yes | Yes | Yes |
Shadow register mode | No | No | Yes | Yes |
Events/Interrupt | Yes | Yes | Yes | Yes |
Fault Event Mechanism | No | No | Yes | No |
Auto reload functionality | Yes | Yes | Yes | Yes |
Information about timer code examples can be found in the MSPM0 SDK examples guide.