Other Parts Discussed in Thread: MSP430WARE, TEST
Tool/software: Code Composer Studio
Dear Sir/ Madam
I have configured external crystal to the HFXTIN pin and HFXOUT of 16 MHz ,18 pf,external capacitor values connected are 30pF i.e Cx1 and Cx2 . I am not getting any output and response in debug window for the below clock configuration mentioned . I am not able to come to conclusion that whether in my configuration something is wrong or anything else. Please revert back as early as possible.
I have configured the clock based on the example code CS_04 in msp430ware for device MSP430FRxx94.
WDTCTL = WDTPW | WDTHOLD; // Stop WDT
// XTAL PIN CONFIGURATION
PJSEL0 |=BIT6 | BIT7;
//UNLOCKLOW POWER
PM5CTL0 &= ~LOCKLPM5;
//FRAM WAIT STATE
FRCTL0 |= FRCTLPW | NWAITS_1;
// Clock System Setup
CSCTL0_H = CSKEY_H; // unlock cs registers
CSCTL2 = SELS__HFXTCLK | SELM__HFXTCLK;
CSCTL3 = DIVS_1 | DIVM__1; // SET DIVIDER 1
CSCTL4 |= HFXTDRIVE_3| HFFREQ_2 ;//16MHZ CRYSTAL OPERATION
CSCTL4 &= ~HFXTOFF;// TURNING ON CRYSTAL
do
{ // Check for fault flags
CSCTL5 &= ~ HFXTOFFG;
SFRIFG1 &= ~ OFIFG;
}
while ( SFRIFG1 & OFIFG);
CSCTL0_H = 0; //LOCK CS REGISTER