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.

CC2538: Use the 32kHz Crystal Oscillator

Part Number: CC2538
Other Parts Discussed in Thread: , SMARTRF06EBK, TIMAC, Z-STACK

Hi,

I want to use a 32kHz Crystal Oscillator (External 32kHz) on my CC2538. Can I just use the following setting?

SYS_CTRL_CLOCK_CTRL:OSC32K bit 1 -> 0

Regards,

Rei

  • Hi Rei,

    This is the necessary action in accordance with Section 7.2.2 of the TRM but I recommend using the SysCtrlClockSet API.

    Regards,
    Ryan

  • Hi Ryan,

    Thank you for your reply. I used the EVM and PER TEST example and changed bsp.c

    //SysCtrlClockSet(false, false, ui32SysDiv);
    SysCtrlClockSet(true, false, ui32SysDiv);

    ・CC2538EMK
    ・SMARTRF06EBK
    ・CC2538 PER Test (v1.1.0) (Rev. A)

    But External 32kHz is not oscillating, and SleepTimer count does not increase either.
    What else should be set?

    Regards,

    Rei

  • Make sure that ui32SysDiv is within the allowable range (zero to seven), analog functionality of the pins has been selected (see this relevant E2E thread), and that the crystal is capable of working properly.  It can be checked against TIMAC or Z-STACK examples which enable it by default.

    Regards,
    Ryan