This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2433: DriverLib rtc_stop() does not software reset the RTC although its documentation says it does

Part Number: MSP430FR2433

The header rtc.h has this comment:

//! \brief Stops RTC running.
//!
//! This function does software reset for RTC.

The implementation in rtc.c is:

void RTC_stop(uint16_t baseAddress)
{
    HWREG16(baseAddress + OFS_RTCCTL) &= ~RTCSS_3;
}

As I read the code, it only sets the clock source to 0b00.  (Which  SLAU445 says is a reserved value, which is another discrepancy? I assume that if the clock source is zero, the counter is stopped from ticking.)  That codes does not set the RTCSR bit of the control register (which SLAU445 says is the bit that does software reset and clears the counter.)

So my understanding is that it stops the counter from ticking, but does not clear the counter.

A function to clear the counter or to software reset the RTC is missing from the library.  See my previous post about missing functions.

**Attention** This is a public forum