Other Parts Discussed in Thread: MSP430F6659
Hi All,
we are using internal RTC in our project, microcontroller is msp430F6659
The below code is RTC initialization. after adding this code to our project.
Total code is not executing.if we observe in disassembly cursor is stooping at 0x3FFF address.
if comment this RTC code in our project code execution happening properly.
please give me your suggetion on this issue.
int Rtc_Init( void)
{
// BCD mode, RTC hold, enable RTC read ready interrupt
RTCCTL01 |= RTCRDYIE + RTCBCD + RTCHOLD;
RTCYEAR = 2012; // Year = 0x2011
RTCMON = 12; // Month = 0x06 = June
RTCDAY = 12; // Day = 0x22 = 22nd
RTCDOW = 05; // Day of week = 0x05 = Friday
RTCHOUR = 11; // Hour = 0x11
RTCMIN = 57; // Minute = 0x59
RTCSEC = 00; // Seconds = 0x45
RTCCTL01 &= ~(RTCHOLD); // Start RTC calendar mode
return 0;
}
Kindly help me for the same issue.