Part Number:MSP430FR6972
#include "driverlib.h"
uint32_t clockValue;
void main(void)
{//Stop WDTWDT_A_hold(WDT_A_BASE);//Set DCO frequency to 16MHzCS_setDCOFreq(CS_DCORSEL_1, CS_DCOFSEL_6);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 1FRAMCtl_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);
}
Susan Yang:
,
user5779306:
首先感谢您的回答,然后我还想问下那怎么才能让mclk跑到24Mhz,用外部晶振吗
,
Susan Yang:
这个没法跑,最大只能是16Mhz
TI中文支持网
