# 121 questions

Tagged
• x
54
views
no
1

## getting millis from startup

I need to count millis from nrf52 start

I have seen that all are using rtc1 but I did not find any example from which i can integrate it to my project.

36
views
no
no

## SPI interrupt and RTC

I'm using the SPI driver and experiencing a hang in the SPI driver because the SPI interrupt is not raised. The reason is in this code from the driver:

p_cb->bytes_transferred = 0;

// Start ...
(more)

46
views
no
1

## NRF51822 Lower Power Mode with RTC wakeup

Hi,

I have a question that Product Specification v3.1 of nrf51822 describes Flexible Power Management: 2.6 μA at 3 V ON mode, all blocks IDLE. But, in the same place, NRF52832 describes as follows: 1.9 μA at ... (more)

45
views
no
1

## nrf51822 rtc with softdevice

Hello,

Is there a demo project that contains RTC function with softdevice. I called the lfclk_config() and rtc_config() function before softdevice initial in main(), but it could not pass through SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL). How can I sovle this issue, am ... (more)

75
views
no
1

## Low-Power Timekeeping on nRF52

Hello,

I'd like to keep an epoch time on the nRF52 by incrementing a 64-bit second counter in RAM by using app_timer once per minute (happy with this granularity). Between increments I'd like to be in the lowest-possible ... (more)

111
views
1
vote
2

## Extending RTC beyond 24 bits

I am looking to extend the RTC beyond 24 bits using the Overflow interrupt. The code in the rtc handler would look like:

static void rtc_handler(nrf_drv_rtc_int_type_t int_type)
{
if (int_type == NRF_DRV_RTC_INT_OVERFLOW)
{
ticks_overflow++;
}
}


And the code to read the extended timer ... (more)

73
views
no
1

## How trigger sampling through PPI on an RTC event?

Hi,

I am using nRF52832 and softdevice is S132 adk13.1. My application is read 3 ADC channel one by one and send this value to android app using NUS. For this i have use This Time drive Adc exmple ... (more)

96
views
no
1

## time counter

Hi everybody !! i m working in a project with NRF52 SDK 11, i need a help, i want to create a funtion that working with RTC to count a tick and to convert it into time then reset the count ... (more)

42
views
no
1

## Update code from Android

Hello,

I could not find any related info, so I would like to ask few questions:

1) I have pca10028 board, using s110, sdk 6, ble_app_uart code. The board gets connected to Android mobile device using NRF_UART or NRF_TOOLKIT application ... (more)

149
views
no
1

## RTC function using sleep mode

Im working on 14.0 and s132 and work inside ble_uart code...i was add rtc inside that code sucsessfully but now.. when device goes to sleep so rtc interrupt handler function not calling stop... so, can i use rtc ... (more)

153
views
no
1

## Disable SD stops ALL RTCs and/or LFCLK?

Hi all,

I got strange behavior: when I disable the SoftDevice (nRF52832, S132 V3.0, SDK 12.2) seem that ALL the RTCs, not just the one used by the SD, are stopped, and also the LFCLK are stopped.

This ... (more)

2k
views
1
vote
6

## How to output 32768Hz external crystal LFCLK at a GPIO pin?

For synchronizing an external sensor i need to output a 32768Hz clock at a GPIO pin. For this case i want to use LFCLK from the external cyrstal.

<u>My setup:</u> I use RTC0 to generate a tick event ... (more)

435
views
2
1

## nrf52832 sleep ，rtc work

I use the sdk 13.0.0,software device s332，I hope the rtc can work when cpu sleep,and the lowest working current need less than 10uA，what should i do？or Is there a reference routine？

380
views
no
3

## RTC with DS1307

For my application I use a RTC. For now without SD and based on SDK 11.0. Later I will implement it in an application with BLE. My device is a Raytac module with a nRF52832 on it. The module ... (more)

143
views
2
1

## RTC clear problem

Hello,

I've run into a problem, which seems at least to be similar to that described in another thread. In short, if I set up a counter with CC[n] and start it, a COMPARE[n] event will be ... (more)

119
views
2
1

## nrf52832: Modifying the prescaler value to save battery life

Hello,

I'm currently running our RTC using the default resolution of 32.768 kHz (30.517 micro-seconds), which means that we are not prescaling. If I desire to have a larger resolution (less overflow in the 24-bit counter) of ... (more)

399
views
3
2

## nRF52832 external crystals needed or not

Hello,

I need some clarifications about external crystals for nRF52832.

We are evaluating a prototype system with two units A and B each containing an nRF52832. A and B will communicate via UART. Unit A will also use BLE to ... (more)

190
views
1
vote
3

## Strange current spikes in nRF52 with RTC only

Hi, currently I'm working on ultra low power device. This device need to be wake up in 333 ms interval. I use RTC for this. My question is about strange current spikes with i observed on Nordic Power Profiler ... (more)

164
views
no
no

## Power managment on NRF52 using Zephyr

Hello guys,

I wanted to start to implement the power management feature on the NRF52 using the Zephyr kernel for a bluetooth application. Unfortunately I am running in a lot of problems. I understood that the hookup functions are called ... (more)

220
views
3
1

## S140 initialisation errors on nRF52840 if RTC2 interrupt enabled

I'm testing a custom application with the following configuration:

• Custom app based on the ble_app_pwr_profiling SDK example.
• Using SDK 13.1
• S140 SoftDevice s140_nrf52840_5.0.0-2.alpha_softdevice.hex
• PCA10056 development board, nRF52840

I've modified the example to configure ... (more)

188
views
1
vote
1

## Clock control in RTC interrupt

Hi all!

I am developing an nRF52 application that uses RTC interrupt to measure an ADC value every 100 ms. Depending on the measured value the chip shall either go back to sleep or execute an algorithm. We are in ... (more)

576
views
3
1

## Best Way to Keep Track of Time with the nRF52

I need to keep track of time on a device featuring the nRF52 and have an RTC run continuously in the background. The drift should not be more than a few seconds over a year. Is this possible to achieve ... (more)

84
views
3
1

## SPI hangs within RTC CC callback [closed]

Hi all,

I'm transferring data to and from an Atmel AT25040 NVRAM using SPI, and it works perfectly when run within main(). However, if I run the same code from within an RTC CC callback, the blocking call to ... (more)

138
views
no
1

## state-machine RTC synchronization with softdevice

Hi,

I’m working on a device that requires to enable the softdevice when connecting with a smartphone via Bluetooth and disable it when acquiring data from an analog source.

In order to do this I have created a simple ... (more)

279
views
no
1

## How to enable and use RTC0, RTC1, and RTC2 -- nRF52832

I am currently using nRF52832 with SDK v11.0.0 and S132 v2.0.0. I'd like to enable either RTC2 or RTC0 as a dedicated counter for the keeping track of time (LFCLK). RTC1 is already designated for ... (more)

80
views
no
1

## GPIOTE Accuracy and RTC

I'm trying to use a low accuracy GPIOTE event to start RTC1. The following code works as expected when using hi accuracy mode but will constantly trigger in_pin_handler() using low accuracy mode. If I remove nrf_drv_rtc_enable() from in_pin_handler() it ... (more)

129
views
1
vote
1

## How to use 51822 RTC on softdevice?

Hi,I use the SDK 12.2.0, I want to add the peripheral RTC example to the ble_app_uart.I find the softdevice have used the RTC1 ,so I want to use the RTC0,but when I added the RTC0 ... (more)

81
views
1
vote
1

## What is 3UL compare time in RTC???

In example of peripheral RTC,

It compares time of 3UL.

BUT I've never heard about any measurement of UL... How can i transform it to second???

79
views
1
vote
1

## Is there any way that I can use more than 3 timer in nRF 51 ??

Is there any way that I can use more than 4 timer in nRF 51 ?? (four or more...)

I'm using Softdevice 130, so It uses Timer 0,

and I'm using RGB Sensor using PWM Library, and

Red and ... (more)

5k
views
3
9

## questions on how to implement the current time service

I'm working on an implementation of the Current Time Service specified by the Bluetooth SIG (I'm happy to share it).

where I am so far: - The service and the caracteristics are set up and working correctly. - I can ... (more)

#### Statistics

• Total users: 26301
• Latest user: Thalia Despeissis
• Resolved questions: 11537
• Total questions: 28684

## Recent blog posts

• ### Difference between nRF52840 Engineering A and B reference designs

Posted 2018-01-15 12:27:08 by Martin Børs-Lind
• ### [For Hire] Expert development services of custom Hardware devices | IoT solutions | Mobile Apps

Posted 2018-01-15 09:08:42 by Ilya Surinsky
• ### Rust bindings to nrf52 series

Posted 2018-01-12 23:23:07 by Coleman McFarland
• ### Show And Tell: Poly - Building an RC Airplane The Hard Way

Posted 2018-01-05 01:17:57 by Daniel Veilleux
• ### Bluetooth on a desktop computer (Windows, Mac, Linux)

Posted 2018-01-04 17:56:57 by kbaud

## Recent questions

• ### PCA10056 USB CDC Demo, no polling

Posted 2018-01-22 00:37:51 by tmloos
• ### nRF9E5 driven by vco clock

Posted 2018-01-22 00:09:11 by drollinger
• ### Converting incoming messages to Unicode.

Posted 2018-01-21 23:40:29 by Rajeev
• ### Setting ANT search waveform to fast causes BLE disconnects

Posted 2018-01-21 18:38:15 by dlip
• ### nrf51 SPI + PPI + TIMER

Posted 2018-01-21 18:06:14 by gxy