Other Parts Discussed in Thread: MSPM0L1306
MSPM0L1306在低温-40度不能启动,,担心可能是单片机运行频率的问题,用的是单片机的内部晶振,ROSC接了一个100K,25PPM的电阻,请问怎么设置单片机的运行频率?就是上电设置单片机运行频率的代码,想让单片机在低频率下运行看看,比如是设置为4MHZ的运行频率,急,谢谢了!
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.
MSPM0L1306在低温-40度不能启动,,担心可能是单片机运行频率的问题,用的是单片机的内部晶振,ROSC接了一个100K,25PPM的电阻,请问怎么设置单片机的运行频率?就是上电设置单片机运行频率的代码,想让单片机在低频率下运行看看,比如是设置为4MHZ的运行频率,急,谢谢了!
您好,
芯片上电复位后MCLK的默认时钟源是SYSOSC(MCLKCFG.USELFCLK=0);SYSOSC默认是32MHZ(FREQ=0,Table 2-28. SYSOSCCFG Register Field Descriptions)
通过设置SYSOSCCFG寄存器的FREQ位选择4MHZ的SYSOSC。
MSPM0 L-Series 32-MHz Microcontrollers Technical Reference Manual (Rev. D)
Would you please tell me the code of how to set the 4MHZ, about the MSPM0L1306, we don't know how to write the code, we don't know how to set the SYSOSC and MCLKCFG, please ,thank you very much.