Other Parts Discussed in Thread: MSP430F5338, MSP430F6438
Hi,
I'm working with MSP430F5338 and trying to enable XT1 (Low frequency). Currently i'm working with evaluation board MSP-TS430Z100C.
My init procedure includes "XT1 start" as follows:
UCSCTL6 |= XCAP_3;
// Internal load cap
UCSCTL3 = 0;
// FLL Reference Clock = XT1
// If the drive setting is not already set to maximum
// Set it to max for LFXT startup
if ((UCSCTL6 & XT1DRIVE_3)!= XT1DRIVE_3)
{ UCSCTL6_L |= XT1DRIVE1_L + XT1DRIVE0_L; // Highest drive setting for XT1startup }
UCSCTL6 &= ~(XT1OFF); // XT1 On
// Loop until XT1,XT2 & DCO stabilizes - In this case loop until XT1 and DCo settle
do {
UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + DCOFFG);
SFRIFG1 &= ~OFIFG; // Clear fault flags
}while (SFRIFG1&OFIFG); // Test oscillator fault flag // Xtal is now stable, reduce drive strength
UCSCTL6 = (UCSCTL6 & ~(XT1DRIVE_3)) | (xtdrive); // set requested Drive mode
The XIN/XOUT pins in MSP430F5338 are NOT selectable pins,so i couldn't set the pins as a peripherals(means 32K crystal should be connected always).
The problem is => i couldn't stabilize XT1. It always set as SFRIFG1&OFIFG= TRUE (oscillator FAULT).Please help to solve a problem.
Again,we check a several times that Crystal 32K is connected well according to schematics of evaluation board.It looks like something missing in a configuration....
Thanks,