RSS
Sort by » date activity ▼ answers views votes

121 questions

Tagged
  • x
54
views
no
votes
1
answer
Last activity 2018-01-19 13:45:10 +0200 by Joakim Jakobsen flag of Norway

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
votes
no
answers
Last activity 2018-01-10 14:42:09 +0200 by Jonathan

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;
nrf_spi_int_disable(p_spi, NRF_SPI_INT_READY_MASK);

nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY);

// Start ...
(more)

46
views
no
votes
1
answer
Last activity 2018-01-05 09:49:33 +0100 by chocol8

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
votes
1
answer
Last activity 2017-12-28 11:42:47 +0200 by Martin Børs-Lind flag of Norway

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
votes
1
answer
Last activity 2017-11-28 12:41:26 +0200 by Emil Lenngren flag of Sweden

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
answers
Last activity 2017-11-26 23:23:31 +0100 by Emil Lenngren flag of Sweden

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
votes
1
answer
Last activity 2017-11-23 10:05:19 +0200 by Jørgen Holmefjord flag of Norway

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
votes
1
answer
Last activity 2017-11-22 16:15:54 +0200 by Joakim Jakobsen flag of Norway

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
votes
1
answer
Last activity 2017-10-26 12:43:37 +0100 by endnode

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
votes
1
answer
Last activity 2017-10-12 08:16:16 +0200 by endnode

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
votes
1
answer
Last activity 2017-09-30 12:56:04 +0100 by mectronicsinc

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
answers
Last activity 2017-09-28 08:24:33 +0100 by Yashur

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
votes
1
answer
Last activity 2017-09-25 14:12:41 +0100 by jenkey.zhu

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
votes
3
answers
Last activity 2017-09-02 07:30:01 +0200 by f1rew4ll

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
votes
1
answer
Last activity 2017-08-15 15:11:11 +0200 by Jørgen Holmefjord flag of Norway

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
votes
1
answer
Last activity 2017-08-03 22:06:07 +0100 by John DeWitt flag of United States

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
votes
2
answers
Last activity 2017-08-01 16:28:39 +0200 by endnode

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
answers
Last activity 2017-07-28 10:43:39 +0100 by Mateusz Gancarczyk

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
votes
no
answers
Last activity 2017-07-26 17:16:10 +0100 by Tobi

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
votes
1
answer
Last activity 2017-07-19 01:20:56 +0100 by Austin

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
answer
Last activity 2017-06-30 12:35:48 +0200 by Torbjørn Øvrebekk

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
votes
1
answer
Last activity 2017-06-28 15:32:13 +0200 by A Knecht

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
votes
1
answer
Last activity 2017-06-28 12:51:01 +0100 by Steve H

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
votes
1
answer
Last activity 2017-06-22 14:45:51 +0200 by Frederik

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
votes
1
answer
Last activity 2017-06-21 11:01:27 +0200 by Kristin flag of Norway

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
votes
1
answer
Last activity 2017-06-20 14:37:39 +0100 by Kristin flag of Norway

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
answer
Last activity 2017-06-20 10:02:00 +0100 by Jørgen Holmefjord flag of Norway

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
answer
Last activity 2017-06-15 15:03:15 +0100 by Jørgen Holmefjord flag of Norway

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
answer
Last activity 2017-06-14 12:33:04 +0200 by Daniel T. Lee flag of Korea, Republic of

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
votes
9
answers
Last activity 2017-06-06 09:05:56 +0100 by zhu.ky

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
  • Unanswered questions: 4027
  • Total questions: 28684

User menu

    or sign up

Recent questions