板子上焊接了32.768khz的晶振,程序是用 CS_initClockSignal(CS_ACLK, CS_LFXTCLK_SELECT, CS_CLOCK_DIVIDER_1)修改时钟源,在debug仿真的时候CS_getACLK(); 获取的aclk的频率不是32768而是39062,这是怎么回事。
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.
板子上焊接了32.768khz的晶振,程序是用 CS_initClockSignal(CS_ACLK, CS_LFXTCLK_SELECT, CS_CLOCK_DIVIDER_1)修改时钟源,在debug仿真的时候CS_getACLK(); 获取的aclk的频率不是32768而是39062,这是怎么回事。
If a oscillator fault is set, the frequency returned will be based on the fail safe mechanism of CS module. The user of this API must ensure that CS_externalClockSourceInit API was invoked before in case LFXT or HFXT is being used.
您是否使用了CS_externalClockSourceInit API ?