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

    This snippet should not be added to the sdk_config.h file. You should add it to your main.c file, for example in a clock_initialization(); function like what is done in the BSP example. What do you mean by "the first description"?

    Best regards,

    Simon

  • Dear Simonr.
    >> You need to add it to the main.c file (example in clock_initialization ();).
    
    Should it be written as a function in the initialization process of main.c?
    Is the content of the function exactly the same as the snippet?
    
    
    >> What does "first explanation" mean?
    
    It is the following content that you answered first.
    
    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.
    
    
    Thanking you in advance
Reply
  • Dear Simonr.
    >> You need to add it to the main.c file (example in clock_initialization ();).
    
    Should it be written as a function in the initialization process of main.c?
    Is the content of the function exactly the same as the snippet?
    
    
    >> What does "first explanation" mean?
    
    It is the following content that you answered first.
    
    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.
    
    
    Thanking you in advance
Children
No Data
Related