This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

In TiyoYuden EYSHJNZWZ, how to use the internal RC Oscillator

I am using the original board. It does not have a 32kHz crystal.

So I want to use the built-in RC oscillator.

In addition, use the time example of nRF5_SDK_16.0.0.

"NRFX_CLOCK_CONFIG_LF_SRC 1-> 0" is selected

I wrote other RC oscillator options, but they don't work.

Please tell me how to use the built-in RC oscillator in TiyoYuden EYSHJNZWZ.

Parents
  • Hi

    After choosing the preferred clock source in the LFCLKSRC register (page 89 in PS), you need to trigger the LFCLKSTART task. See the snippet below for an example on how to do this.

    NRF_CLOCK->LFCLKSRC            = (CLOCK_LFCLKSRC_SRC_RC << CLOCK_LFCLKSRC_SRC_Pos);
    NRF_CLOCK->EVENTS_LFCLKSTARTED = 0;
    NRF_CLOCK->TASKS_LFCLKSTART    = 1;
    
    while (NRF_CLOCK->EVENTS_LFCLKSTARTED == 0)
    {
        // Do nothing.

    Best regards,

    Simon

Reply
  • Hi

    After choosing the preferred clock source in the LFCLKSRC register (page 89 in PS), you need to trigger the LFCLKSTART task. See the snippet below for an example on how to do this.

    NRF_CLOCK->LFCLKSRC            = (CLOCK_LFCLKSRC_SRC_RC << CLOCK_LFCLKSRC_SRC_Pos);
    NRF_CLOCK->EVENTS_LFCLKSTARTED = 0;
    NRF_CLOCK->TASKS_LFCLKSTART    = 1;
    
    while (NRF_CLOCK->EVENTS_LFCLKSTARTED == 0)
    {
        // Do nothing.

    Best regards,

    Simon

Children
Related