# 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 +0100 )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 +0100 )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 +0100 )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 +0100 )editconvert to answer

[hide preview]

## Recent blog posts

• ### The nRF52 Series supported by Algocraft WriteNow! Programmers

Posted 2016-12-27 11:08:18 by Algocraft
• ### nRF5x support within the Zephyr Project RTOS

Posted 2016-12-22 13:35:41 by Carles
• ### New power optimization tool called Otii that runs on the Power Profiler Kit.

Posted 2016-12-19 15:45:22 by Pär H
• ### SwiftDuino

Posted 2016-12-15 16:02:28 by Jason
• ### Auto-DFU Lite for MacBook

Posted 2016-12-14 00:54:08 by Jason

## Recent questions

• ### Is there some relations between Gpio17 and ble advertisement on nRF51822?

Posted 2017-01-18 05:26:40 by cauzsh
• ### The Quintessential Guide to Home Businesses

Posted 2017-01-18 05:05:09 by Danae Oldham
• ### How to hope frequency after send Ack in ESB

Posted 2017-01-18 01:16:55 by Spectre
• ### nRF52840 pricing and availability

Posted 2017-01-18 00:37:17 by Pranav Sanghadia
• ### How to use nRF52832 Dev kit for Bluetooth 5?

Posted 2017-01-17 23:57:23 by wecare