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.

CC430 RTC interrupts in calendar mode

Other Parts Discussed in Thread: CC430F5137

I've been using RTC interrupts in counter mode on my CC430F5137 platform without any issue. Now I want to explore the calendar capabilities of this MCU but this seems to be a far more complex task. Below is a piece of code used to set current time and a basic alarm that should be triggered every hour at 25 minutes.

RTC_SET_ACLK_XT1(); // Connect ACLK to 32.768 KHz crystal
WDTCTL = WDTPW | WDTHOLD;               // Stop WTD

// Configure RTC
RTCCTL01 |= RTCMODE | RTCTEVIE | RTCAIE | RTCRDYIE; 
RTCCTL01 |= RTCHOLD; // RTC hold

// Set current time
RTCYEAR = 2015;
RTCMON = 4;
RTCDAY = 7;
RTCDOW = 2
RTCHOUR = 17;
RTCMIN = 22
RTCSEC = 0;

// Trigger alarm every hour at 25 minutes
RTCAMIN = 25 & 0x80; // RTC Minute Alarm and enable

// Start RTC calendar mode
RTCCTL01 &= ~(RTCHOLD);

// Enter LPM3 with interrupts
__bis_SR_register(LPM3_bits + GIE);

// The LED should turn on at 17:25:00
LED_ON();

As you may guess, the LED is never turned on with the above code. There is no example about the use of CC430's RTC in calendar mode so I've been looking around for other examples without much luck.

Has anyone experience with this mode on any CC430 platform?

Thanks in advance for your time.

**Attention** This is a public forum