Greetings... I'm working with a MSP430F5636 and I'm using the Battery Backup system. The 5xx/6xx Family User's Guide clearly states that if you're not using the Battery Backup system that VBAT should be connect to VCC. In my case VBAT is connected to a 3 volt chip style battery holder. Things work fine as long as I have a battery installed. But if I don't have the battery installed my system hangs. Where does it hang? How does it hang you ask? We'll I"m not quite sure. If I'm running with a debugger things run fine even without the backup battery installed. If I run stand a lone I'm not able to communicate with the UCA0 serial interface like I can otherwise. I'm using the usual start up code to get XT1 and RTC going:
UCSCTL6 &= ~(XT1OFF); // XT1 On
RTCCTL01 &= ~(RTCHOLD); // Start RTC calendar mode
while(BAKCTL & LOCKBAK) // Unlock XT1 pins for operation
BAKCTL &= ~(LOCKBAK);
// Loop until XT1 & DCO stabilizes - In this case loop until XT1 and DCO settle
do {
UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + DCOFFG); // Clear XT2,XT1,DCO fault flags
SFRIFG1 &= ~OFIFG; // Clear fault flags
} while (SFRIFG1&OFIFG); // Test oscillator fault flag
So thus my question: What are the implications of not having VBAT connected? I don't expect the RTC to maintain the time if there is no battery installed but I would expect my system to come up and run (albeit with a bad time).