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/MSP430FR5949: MSP430FR5949DA

Part Number: MSP430FR5949

Tool/software: Code Composer Studio

Hi,

I started a program using CCS7 and the MSP430FR5949DA and ran into a strange init behaviour.

If I init port PJ, PJ.4 and PJ.5 seem to stay stuck in LFXT mode in that PJ.4 sits at roughly 1/2 DVCC and PJ.5 is stuck to ground.

Below my init code for the clock registers and the PJ port.

If I toggle all outputs of port PJ, PJ.0-PJ.3 switch as expected but PJ.4 and PJ.5 stay at 1/2Vcc and ground.

Am I overlooking a setting to disable the LFXT oscillator setting here?

*

* Clock System Registers:

*/

CSCTL0 = CSKEY; // enable Clock System register access

CSCTL1 = DCOFSEL_6; // select DCO to run at 8MHz, DCORSEL = 0.

CSCTL2 = SELM__DCOCLK | SELS__DCOCLK | SELA__VLOCLK; // MCLK and SMCLK derived from DCOCLK, ACLK derived from 10KHz VLOCLK

CSCTL3 = 0; // MCLK = 8MHz, SCLK = 8MHz, ACLK = 10KHz

CSCTL4 = LFXTOFF;

CSCTL0_H = 0; // disable Clock System register access

/*

* Port PJ

*/

PJDIR = 0xFF; // all are outputs

PJSEL0 = 0;

PJSEL1 = 0; // just IO, no alternate function on port P3

PJOUT = 0xFF; // LED is off

while(1)

{

PJOUT = 0xFF;

PJOUT = 0;

}

 

 

**Attention** This is a public forum