#include "BAT32G135.h"
#include "clk.h"
#define BIT(x) (1<<x)
// 晶振温度时间13.6ms
int main(void)
{
PORT->P30CFG = 0;
PORT->PM3 &= ~BIT(0);
PORT->PMC3 &= ~BIT(0);
PORT->PSET3 = BIT(0);
CLK_Osc_Setting(OSC_OSCILLATOR,OSC_PORT);
CLK_MainOsc_Setting(OSC_OSCILLATOR,OSC_OVER_10M);
PORT->PCLR3 = BIT(0);
CLK_Fclk_Select(MAINCLK_FMX);
while(1)
{
}
}
测试和137 一样,稳定时间在13.6ms.
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/C_ROOKIES/article/details/105453380
|