This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430FR5994: clock divider doesn't seem to work

Part Number: MSP430FR5994

Tool/software: Code Composer Studio

Hi,

I have been trying to set up my clocks for ACLK to have a divider of 8 and it doesn't seem to have an effect on the clock

I have tried adjusting the divider of the timer itself and it did what I wanted to do

Why does the first method not work

here is my code for adjusting the divider for the clock

void initClocks(void) {
PJSEL0 |= BIT4 | BIT5; // configuring the LFXT pins


// CSKEY = rw-0;
CSCTL0_H = CSKEY >> 8;

// 1 MHZ
CSCTL1 - DCOFSEL_0;

// selecting LFXTCLK for ACLK, DCLOCLK for SMCLK and MCLK
CSCTL2 = SELA__LFXTCLK | SELS__DCOCLK | SELM__DCOCLK;

//all dividers
CSCTL3 = DIVA_3 |DIVS__1 | DIVM__1;

CSCTL4 &= ~LFXTOFF;

do {
CSCTL5 &= ~LFXTOFFG;
SFRIFG1 &= ~OFIFG;
}
while (SFRIFG1 & OFIFG);
CSCTL0_H = 0;


}

**Attention** This is a public forum