Hi , I am using msp430fr5972 , i have configured the clock .
CSCTL0_H = ( CSKEY >> 8); // Unlock CS registers cskey is 0XA500
CSCTL1 = (0x0006); // Set DCO to 8MHz
CSCTL2 = SELA__VLOCLK | SELS__DCOCLK | SELM__DCOCLK; // Set SMCLK = MCLK = DCO
// ACLK = VLOCLK
CSCTL3 = DIVA__1 | DIVS__1 | DIVM__1; // Set all dividers to 1
CSCTL0_H = 0; // Lock CS registers
and configuring port3 to primary function for spi . like this
P3SEL0 &= ~ BIT0;
P3DIR |= BIT0;
P3OUT |= BIT0; //Make SCLK High
but i am unable to see the clock on my port on oscillator . Can any one help me how to configure a clock for spi in my msp430fr5972 .
Regards
Mohammed Shahrukh khan