Other Parts Discussed in Thread: MSP430F6435
Hi, I'm using MSP430F67651A for my project, but the crystal oscillator (XT1)isn't working.
I had a similar problem with MSP430F6435, but now it works with the code for Unlock XT1 pins for operation.
However, the MSP430F67651A does not have the same registers (Battery Backup Registers) as the MSP430F6435.
How do you get it to work?
UCSCTL6 &= ~(XT1OFF); // XT1 On
while(BAKCTL & LOCKBAK) // Unlock XT1 pins for operation (Battery backup products only?)
BAKCTL &= ~(LOCKBAK);
// Loop until XT1,XT2 & DCO fault flag is cleared
do {
UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + DCOFFG); // Clear XT2,XT1,DCO fault flags
SFRIFG1 &= ~OFIFG; // Clear fault flags
} while (SFRIFG1 & OFIFG); // Test oscillator fault flag