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.

MSP432P401R: msp432 device support

Part Number: MSP432P401R


Dear TI team

I had designed PCB with MSP432 MCU, with 24MHz external crystal with 22pF decoupling capacitors., when i port the code for external crystal operation MCU stops.

the same code is working fine in launchpad in which 48mhz oscillator is used.

in my circuit all the components of VCC, Vcore are same as in launcpad except in place of 4.7uH, I had used 0E resistance. while in DCO operation it is working fine. external 32.768KHz is also working fine in LF pins.

Only IAR comiler is using.

can you expedite the issue.

Regards

Dharmesh Sachan

  • Dharmesh,

      Did you adjust the clock system code to account for the change in the crystal frequency?

    From Sec. 6.2.3 of the MSP432 Technical Reference manual, the HFXTFREQ bits must be set according to the frequency range of the crystal used according to Table 6-1 below: 

    HFXT Frequency Range HFXTFREQ[2:0]
    1 to 4 MHz 000
    >4 MHz to 8 MHz 001
    >8 MHz to 16 MHz 010
    >16 MHz to 24 MHz 011
    >24 MHz to 32 MHz 100
    >32 MHz to 40 MHz 101
    >40 MHz to 48 MHz 110

    The register-level example msp432p401x_cs_09, which can found in TI Resource Explorer, shows the details of setting the HFXTFREQ bits in the CS->CTL2 register.  Look for the following code section in this example:

    CS->KEY = CS_KEY_VAL ; // Unlock CS module for register access
    CS->CTL2 |= CS_CTL2_HFXT_EN | CS_CTL2_HFXTFREQ_6 | CS_CTL2_HFXTDRIVE;
    while(CS->IFG & CS_IFG_HFXTIFG)
    CS->CLRIFG |= CS_CLRIFG_CLR_HFXTIFG;

    Given that you are running a 24MHz crystal, you will need to change CS_CTL2_HFXTFREQ_6 to CS_CTL2_HFXTFREQ_3.

    Please try that and let me know if that solves your problem.

    Regards,

      Bob L.

**Attention** This is a public forum