TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310 Clock 設定

看了文件上CC1310上有內.外各2個時鐘源

1.外部24Mhz和32.768khz

2.內部48Mhz和32khz

但對於ccfg.c裡設定不是很了解

請問1.2項該如何設定?

/#####################################
// Clock settings
//#####################################

#ifndef SET_CCFG_MODE_CONF_SCLK_LF_OPTION
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x0      // LF clock derived from High Frequency XOSC
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x1      // External LF clock
// #define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x2      // LF XOSC
#define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x3         // LF RCOSC
#endif

//#####################################
// Special HF clock source setting
//#####################################
#ifndef SET_CCFG_MODE_CONF_XOSC_FREQ
// #define SET_CCFG_MODE_CONF_XOSC_FREQ 0x1          // Use HPOSC as HF source (Unavailable on CC13xx chips)
// #define SET_CCFG_MODE_CONF_XOSC_FREQ 0x2          // HF source is a 48 MHz xtal
#define SET_CCFG_MODE_CONF_XOSC_FREQ 0x3             // HF source is a 24 MHz xtal (default)
#endif

Susan Yang:

您可以看一下

www.ti.com/…/swcu117h.pdf

的1.3.7 System Control and Clock 的相关说明 以及 Figure 6-5. System Clock Muxing

• Multiple clock sources for microcontroller system clock:

– RC oscillator (HSRCOSC):
• On-chip resource providing a 48-MHz frequency
• The 24-MHz crystal oscillator (HSXOSC) is a frequency-accurate clock source from an external crystal connected across the X24M_P input and X24M_N output pins.
• The internal 32-kHz RC oscillator is an on-chip resource providing a 32-kHz frequency, used during power-saving modes and for RTC.
• The 32.768-kHz crystal oscillator is a frequency-accurate clock source from an external crystal connected across the X32K_Q1 input and X32K_Q2 output pins
• Ideal for accurate RTC operation or synchronous network timing
• An external 32.768-kHz clock signal can be supplied by using one of the DIO pins as clock input.

– CPU and periphery clock division options

您需要根据您现在具体的时钟源使用情况来设定

赞(0)
未经允许不得转载:TI中文支持网 » CC1310 Clock 設定
分享到: 更多 (0)