Hi Experts,
I am using an MSP430FR5972 controller for my project and I need to use HIGH-FREQUENCY CRYSTAL OSCILLATOR i.e 16MHZ to drive all clock.I have disabled DCO & turned on HFXT and following clock register settings I am using :
PJSEL0 |= BIT6;
FRCTL0 = FRCTLPW | NWAITS_1;
CSCTL0_H = CSKEY >> 8; // Unlock CS registers
CSCTL2 =SELA__VLOCLK | SELS__HFXTCLK | SELM__HFXTCLK; // Set SMCLK = MCLK = XT2,
// ACLK = VLOCLK
CSCTL3 = DIVA__1 | DIVS__1 | DIVM__1; // Set all dividers
CSCTL4 |= HFXTDRIVE_3 | HFFREQ_3;
CSCTL4 &= ~HFXTOFF;
PM5CTL0 &= ~LOCKLPM5; // Disable the GPIO power-on default high-impedance mode to activate.
The issue I am facing is that SMCLK is not getting 16mhz, inside its getting 4.7mhz but I have checked using an oscilloscope, HFXT is producing 16mhz.only. If I turn ON the DCO then I get 16mhz on SMCLK.
Please help !!
Thanks in advance.