SLAU846B June 2023 – November 2024 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3519
The RTC is configured with the RTC peripheral registers.
The RTC state can be reset at any time by asserting the VBATPOR bit in the LFSSRST register.
Application software may reset the RTC state at any time by setting the RESETASSERT bit in the RSTCTL register of the RTC together with the matching RSTCTL KEY value. The RESETSTKY bit in the STAT register of the RTC will be set following a reset of the RTC. This flag may be cleared by setting the RESETSTKYCLR bit in the RSTCTL register of the RTC. As such, software may determine if the RTC has been reset since the sticky reset bit (RESETSTKY) was last cleared. Many RTC registers have no initial conditions. These registers must be configured by application software before use.
To start the RTC counters, the MODCLKEN bit in the CLKCTL register must be set by application software. The MODCLKEN bit is initially cleared following a reset of the RTC.
When enabled and configured, the RTC runs in all power modes except SHUTDOWN. The RTC is not reset by a CPURST, SYSRST, or NRST pin triggered BOOTRST (see the reset control section for a detailed overview of device reset levels). As such, the RTC continues to operate even through software invocation of the bootstrap loader (BSL) or a hold of <1s on the external NRST pin.