FAQ
- M051 Base Series(95)
- M0518 Series(97)
- M0519 Series(43)
- M0564 Series(1)
- Mini51 Base Series(90)
- Nano100/102 Base Series(101)
- Nano103 Base Series(10)
- Nano110/112 LCD Series(100)
- Nano120 USB Series(111)
- Nano130 Advanced Series(110)
- NUC029 Series(94)
- NUC100/200 Advanced Series(102)
- NUC120/122/123/220 USB Series(116)
- NUC121/125 Series(1)
- NUC126 USB Series(2)
- NUC130/230 CAN Series(103)
- NUC131/NUC1311 CAN Series(98)
- NUC140/240 Connectivity Series(114)
常見問答
如何在程式中修改NuMicro®系列晶片的外部晶振(HXT)的設定值? 日期:2016-05-17
以Nano100B為例,晶片支持的各種clock source定義在”system_Nano100Series.h”檔案中。其所默認使用者所採用的外部晶振是 12 MHz,倘若使用者外部晶振改成 8 MHz,則相對常數定義必須同步更改,請參考底下方式修改粗體字部分。
修改前:
…
/*-----------------------------------------------------------
Define SYSCLK
*---------------------------------------------------------*/
#define __HXT (12000000UL)
#define __LXT (32768UL)
#define __HIRC12M (12000000UL)
#define __LIRC (10000UL)
#define __HIRC __HIRC12M
#define __HSI (__HIRC12M) /* Factory Default is internal 12MHz */
…
=============================================================
修改後:
…
/*-----------------------------------------------------------
Define SYSCLK
*---------------------------------------------------------*/
#define __HXT (8000000UL)
#define __LXT (32768UL)
#define __HIRC12M (12000000UL)
#define __LIRC (10000UL)
#define __HIRC __HIRC12M
#define __HSI (__HIRC12M) /* Factory Default is internal 12MHz */
…
產品: | 微控制器 ,Arm Cortex-M0 微控制器 ,Arm Cortex-M4 微控制器 |
---|---|
應用: | |
功能: | Peripherals,Clock Control,HXT,Software and Tools,Development-Environment,BSP Software Library |