资 源 简 介
msp430f5529时钟配置
关于DCO.FLL.ACLK,SMCLK,MCLK
#include
//设置内核电压 以匹配不同频率
void SetVcoreUp (unsigned int level)
{
PMMCTL0_H = PMMPW_H;// Open PMM registers for write
SVSMHCTL = SVSHE + SVSHRVL0 * level + SVMHE + SVSMHRRL0 * level; // Set SVS/SVM high side new level
SVSMLCTL = SVSLE + SVMLE + SVSMLRRL0 * level; // Set SVM low side to new level
while ((PMMIFG & SVSMLDLYIFG) == 0); // Wait till SVM is settled
PMMIFG &= ~(SVMLVLRIFG + SVMLIFG); // Clear alre