Hi, I'm doing an application with an MSP430F5439 where I need to use the RTC as calendar mode. I have configured it like this:
RTCCTL01 |= RTCBCD + RTCHOLD + RTCMODE;
RTCYEAR = 0x2010; // Year = 0x2010
RTCMON = 0x4; // Month = 0x04 = April
RTCDAY = 0x05; // Day = 0x05 = 5th
RTCDOW = 0x01; // Day of week = 0x01 = Monday
RTCHOUR = 0x10; // Hour = 0x10
RTCMIN = 0x32; // Minute = 0x32
RTCSEC = 0x45; // Seconds = 0x45
RTCCTL01 &= ~(RTCHOLD); // Start RTC calendar mode
The clocks of the system are: MCLK = SMCLK = 16MHz and ACLK = 4MHz.
The problem is that is very fast (minutes pass like if they were seconds).
How I can solve this?
Thanks you.