SLAU929 April 2024 MSPM0C1104 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0L1105 , MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1304 , MSPM0L1305 , MSPM0L1306 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1
MSPM0 (1) and some of Microchip's 8-bit MCUs offer a real-time clock (RTC). Microchip's ATmega48/88 models, and ATtiny devices both contain RTC functionality, while the ATmega169/329 models do not. The ATmega48/88 models offer RTC functionality within one of their timer modules, while the ATtiny devices contain a dedicated RTC module. The real-time clock (RTC) module provides time tracking for the application, with counters for seconds, minutes, hours, day of the week, day of the month, and year, in selectable binary or binary-coded decimal format.
Feature | ATmega48/88 | ATtiny | MSPM0G |
---|---|---|---|
Power modes | Yes | Yes | Yes |
Binary coded format | Yes | Yes | Yes |
Leap year correction | No | No | Yes |
Number of customizable alarms | 1 | 1 | 2 |
Internal and External crystal | External | Yes | Yes |
Crystal offset calibration | No | Yes | Yes |
Prescaler blocks | Yes | Yes | Yes |
Interrupts | Yes | Yes | Yes |
Information about RTC code examples can be found in the MSPM0 SDK examples guide.