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.

MSP430FR6043: setup MSP430FR6043 running at 16MHz

Part Number: MSP430FR6043

Tool/software:

Hello; I try to make the FR6043 running at 16MHz. 

I have downloaded the example "cs_ex2_DCO16MHz". By reading the code, I assume that the 16MHz will output from pin P3.4. But when I probed it, there is nothing coming out from this pin. 

Also; I have to comment out the wait insertion line (yellow highlighted line below), otherwise it will show an error message like this.

Thanks!

Wen Li

#include "driverlib.h"

uint32_t clockValue;

void main(void)
{
//Stop WDT
WDT_A_hold(WDT_A_BASE);
//Set DCO frequency to 16MHz
CS_setDCOFreq(CS_DCORSEL_1, CS_DCOFSEL_4);

CS_initClockSignal(CS_SMCLK,CS_DCOCLK_SELECT,CS_CLOCK_DIVIDER_1);
CS_initClockSignal(CS_MCLK,CS_DCOCLK_SELECT,CS_CLOCK_DIVIDER_1);

//Set wait state to 1
//FRAMCtl_configureWaitStateControl(FRAMCTL_ACCESS_TIME_CYCLES_1);

//Set P2.0 as Output Low (for setup as ACLK).
/*

* Select Port 2
* Set Pin 0 to output Low.
*/
GPIO_setOutputLowOnPin(
GPIO_PORT_P3,
GPIO_PIN4
);

//Set P2.0 as Ternary Module Function Output.
/*

* Select Port 2
* Set Pin 0 to output Ternary Module Function, (ACLK).
*/
GPIO_setAsPeripheralModuleFunctionOutputPin(
GPIO_PORT_P3,
GPIO_PIN4,
GPIO_TERNARY_MODULE_FUNCTION
);

/*
* Disable the GPIO power-on default high-impedance mode to activate
* previously configured port settings
*/
PMM_unlockLPM5();

while(1);

}

**Attention** This is a public forum