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.

CC1310 Clock 設定

Other Parts Discussed in Thread: CC1310

看了文件上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

  • 您可以看一下

    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

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