# Take advantage of external RTC to avoid 32.768KHz duplicity?

Hello. I decided to use an external solution for RTC. Sometimes the RTC chip offers an buffered 32.768KHz output. Can I use this output to supply the 32.768KHz to the nRF52832 and gain a litle power saving? Thanks in advance.

edit retag close delete

Sort by » oldest newest most voted

Hi,

In general, it’s no problem using an external 32.768 kHz clock source. But, if the external 32.768 kHz clock is only sometimes available, you would need to switch between the RC oscillator clock and the external clock.

Unfortunately, you cannot change the SoftDevice LF clock source on the fly, since this would disrupt the protocol timing. You would therefore have to disable the SoftDevice, and enable it again with the new clock source. If you are in an active connection, you will be disconnected, and therefore have to re-connect every time you change the clock source. In most applications this would not be acceptable. The potential power saving is also very small, with the RC oscillator only using about 0.6 µA.

more

Hello Sigurd. The external RTC chip would be powered by the same power supply than the nRF, its seems not a problem to lose oscillation except at startup than can be 1s. I think the power saving can be considerable because the external RTC only needs about 200nA. Can the long startup be a problem? For the connection, I guess input is pin2 P0.00/XL1. Is correct? Thank you.

( 2017-01-13 10:04:25 +0200 )editconvert to answer

P0.00/XL1 is correct. What do you mean by "its seems not a problem to lose oscillation except at startup than can be 1s ?" ? It takes 1s to start up the bufferd 32K clock ? Does the RTC chip provide a stable 32K clock after startup?

( 2017-01-13 15:13:45 +0200 )editconvert to answer

Sorry. I mean that the clock would be always available because the RTC chip would be powered by the same power supply than the nRF, but there is a time at the RTC start where the clock is not ready. From NXP datasheet: "...The oscillator is considered to be stopped during the time between power-on and stable crystal resonance. This time can be in the range of 200 ms to 2 s depending on crystal type, temperature, and supply voltage..."

( 2017-01-13 17:36:38 +0200 )editconvert to answer

In that case it should not be a problem. The SoftDevice will wait for the clock to startup. Remember to specify the correct clock accuracy, e.g. NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM.

( 2017-01-16 12:46:46 +0200 )editconvert to answer

Hello Sigurd. It's OK. I will check the overall power comsumption with this solution. Thankyou.

more

[hide preview]

## Recent blog posts

• ### Introducing nRF5 SDK for Mesh

Posted 2017-07-20 09:42:44 by Pär H

Posted 2017-07-19 06:53:42 by Mohammad Afaneh
• ### Unique Thread/Bluetooth multiprotocol solution with nRF5 SDK for Thread and nRF52840 SoC by Nordic

Posted 2017-07-14 10:31:56 by Krzysztof Loska
• ### nRF Connect macros (currently Android only)

Posted 2017-07-14 13:29:14 by Aleksander Nowakowski
• ### Power Optimization — From 3 to 7 Months on a Single Charge

Posted 2017-07-10 14:34:39 by Yaniv Nis

## Recent questions

• ### Real UART TX transmit depth?

Posted 2017-07-22 01:21:21 by samsonc

Posted 2017-07-21 19:11:52 by TravisFS
• ### app_timer_freertos.c/app_timer_stop bug?

Posted 2017-07-21 19:11:15 by loquat
• ### Are there any particular practices or instructions should i follow if I want to write a custom library

Posted 2017-07-21 18:13:10 by binhnguyens
• ### fstorage in chosen area

Posted 2017-07-21 18:02:00 by cedric