Hi,
I have problem with faster RTC (about 10 - 15 seconds per day). I have tested it on MSP430F5659 (custom board with 2 different 32kHz crystals)
MSP430F5342 (custom board with 2 different 32kHz crystals) and finally on MSP430F5529 launch pad.
On all of these boards we use 32kHz crystal and calendar mode RTC. Basic setting for 5659 is:
while(BAKCTL & LOCKIO) BAKCTL &= ~(LOCKIO); // Unlock XT1 pins for operation
UCSCTL6 &= ~XT1OFF; // enable XT1CLK
UCS_LFXT1StartWithTimeout(UCS_XT1_DRIVE3,UCS_XCAP_3,5000 == STATUS_FAIL); //Initializes the XT1 crystal oscillator with timeout
UCS_clockSignalInit (UCS_ACLK, UCS_XT1CLK_SELECT, UCS_CLOCK_DIVIDER_1); // ACLK = XT1CLK
RTCCTL01 &= ~RTCHOLD; // strat RTC to operate
RTCCTL0 |= RTCOFIE; // enable RTC fault interrupt
RTCPS1CTL = RT1IP_2 + RT1PSIE; // out from RT0PS, /16 (1/8s) needed for periodic system wake up
Did I miss something? Thank you.
Jano