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.

MSP430FR2433: Setting the clock source to external square wave

Part Number: MSP430FR2433
Other Parts Discussed in Thread: MSP430FR2522

Hi,

I am trying to set up the MSP430FR2433 to work on an external clock source - in XT1BYPASS Mode ( MSP-430FR2433 Launch Pad). Below is the configuration which I had used to successfully controll the MSP430FR2522 from an external clock source however this does not work on my new micro allthough I have followed the application note guidelines slau445h.

Does anyone have any suggestions of what I might be doing wrong and how to set this clock mode correctly?

Thank you,

Vlad

// Configure one FRAM waitstate as required by the device datasheet for MCLK
                // operation beyond 8MHz _before_ configuring the clock system.
                FRCTL0 = FRCTLPW | NWAITS_1;

                P2SEL0 |= BIT0 | BIT1;                  // set XT1 pin as second function


                CSCTL4 = SELMS__XT1CLK | SELA__REFOCLK;         // Set ACLK = REFO = 32768Hz
                                                        // XT1 CLOCK = MCLK and SMCLK source
                CSCTL6 = XT1BYPASS;                    // enable the bypass mode of operation

                CSCTL5 |= DIVM_0| DIVS_1;              // MCLK = XT1EXT CLOCK
                                                        // SMCLK = MCLK/2

                P1DIR |= BIT0 | BIT1 | BIT2 | BIT3| BIT6;     // set MCLK SMCLK and LED pin as output
                P1SEL1 |= BIT1 | BIT2 | BIT3;           // set MCLK and SMCLK pin as second function


                PM5CTL0 &= ~LOCKLPM5;

                do
                          {
                            CSCTL7 &= ~(XT1OFFG | DCOFFG);      // Clear XT1 and DCO fault flag
                            SFRIFG1 &= ~OFIFG;
                          } while (SFRIFG1 & OFIFG);              // Test oscillator fault fl

**Attention** This is a public forum