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.
void InitializeClocks(void)
{
BCSCTL1 = CALBC1_1MHZ; // Set range
DCOCTL = CALDCO_1MHZ;
BCSCTL2 &= ~(DIVS_3); // SMCLK = DCO / 8 = 1MHz
}
这是官方下载的源代码,请问
BCSCTL1 = CALBC1_1MHZ; // Set range
DCOCTL = CALDCO_1MHZ;
DCO的频率是多少?不是1MHz?
看起来注释是错的,这句话的意思是BCSCTL2 = 0;
SMCLK的源时钟为DCO,不分频,为1MHz
MCLK的源时钟为DCO,不分频,为1MHz