RSS
Sort by » date activity ▼ answers views votes

261 questions

Tagged
  • x
15
views
no
votes
no
answers
Last activity 2018-01-23 03:27:59 +0200 by xiaoqing

51822 2.4g+ble timer

2.4g ble work in 2 mode(not same time) when reset. when I init 2.4g clock void esb_clocks_start( void ) { NRF_CLOCK->EVENTS_HFCLKSTARTED = 0; NRF_CLOCK->TASKS_HFCLKSTART = 1;

while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);

}

the ble timer not work: err_code = app_timer_create(&m_keyscan_timer_id, APP_TIMER_MODE_REPEATED ... (more)

24
views
no
votes
no
answers
Last activity 2018-01-22 12:47:51 +0200 by jale

sdk 13 app_timer 24 hour long timer

Hi,

there were some significant changes to app_timer in sdk13.

I cannot use now the PRESCALER e.g. to 255 in order to configure the clock in such way to be able to tirgger event every eg. 24 hours.

So ... (more)

59
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.

50
views
no
votes
no
answers
Last activity 2018-01-19 02:47:38 +0200 by efiLabs

multiple parallel pulse measurements and generation

i have a particular automotive tuning application where i have to deal with ignition and fuel injection timing (old stuff in the new e-mobility time)

here are some loose specs

a single injector has a min on time of about ... (more)

32
views
no
votes
no
answers
Last activity 2018-01-18 15:25:13 +0200 by Hust

nrf51822 TIMER 1 and TIMER 2

In timer example in sdk 11, I replace the Timer 0 by timer 1 and timer 2 but the LED did not blink. Can you guys please guide me through this? In nrf_drv_config.h I have already replace:

#define TIMER1_ENABLED ...
(more)

49
views
no
votes
1
answer
Last activity 2018-01-12 16:03:15 +0200 by Torbjørn Øvrebekk

Timer interrupt priority and BLE connection

Hi all,

My configuration:

  • nrf52832 microcontroller
  • Softdevice S132 V4.0.2
  • Nordic SDK 13.0

I'm using an "app_timer" in repeated mode with 10Hz frequency.

#define M_10HZ_TIMER_VALUE  APP_TIMER_TICKS(100) /* 10Hz  = 100ms */

APP_TIMER_DEF(m_10Hz_timer_id);   

app_timer_create(&m_10Hz_timer_id, APP_TIMER_MODE_REPEATED, m_10Hz_timer_handler);

app_timer_start(m_10Hz_timer_id ...
(more)

47
views
1
vote
1
answer
Last activity 2018-01-12 12:37:23 +0200 by Torbjørn Øvrebekk

High priority repetitive task

Hi everyone,

My configuration:

  • nrf52832 microcontroller
  • Softdevice S132 V4.0.2
  • Nordic SDK 13.0

I need to develop a repetitive task with 10 Hz frequency. This task contains only algorithms and it doesn't involve the use of any ... (more)

101
views
2
votes
3
answers
Last activity 2018-01-11 00:28:20 +0200 by AmbystomaLabs flag of United States

How to use multiple timers

I have a device that I need to control, that needs 2 different square wave signals of different frequencies (although they may be multiples of each other), one at around 4 MHz and one at 10 KHz. Additionally (while the ... (more)

64
views
no
votes
no
answers
Last activity 2018-01-09 13:45:07 +0200 by cirlam

App timer high current consumption

I have a need for an interrupt to go off at a 4khz rate. For this, I am using a repeated App Timer (running off the 32k crystal).

Prior to adding this extra timer, we used to have a power ... (more)

46
views
no
votes
1
answer
Last activity 2017-12-20 09:46:07 +0100 by Jørgen Holmefjord flag of Norway

Inaccurate interrupt of timer in nrf52840 [closed]

I am working on nRF52840 Preview DK. I want to generate a square wave with accuracy of ON and OFF time = 1 microsecond using timer for driving stepper motor DRB8825.

I am using SDK version : nRF5_SDK_14.2.0_17b948a

I have ... (more)

34
views
no
votes
1
answer
Last activity 2017-12-19 01:51:56 +0100 by cheque

App_timer compute diff between ticks

Hi, I want modify ESB example Rx to log the time between received messages. I am using SDK 13.0. Unfortunatelly, function app_timer_cnt_diff_compute always return 0. Can you suggest me where I made a mistake? I include my main and ... (more)

95
views
no
votes
1
answer
Last activity 2017-12-18 12:59:50 +0200 by Torbjørn Øvrebekk

Accurate Time Capture

Hi guys, I'm using a HFCLK TIMER to time ADC sample capturing via PPI. This eliminates CPU+BLE usage from affecting my time keeping. I assume that each ADC sample arrives in my callback within usec variance from my ... (more)

55
views
no
votes
1
answer
Last activity 2017-12-14 11:04:55 +0100 by Martin Børs-Lind flag of Norway

Behavior when a single PPI channel triggers 2 timer tasks

nRF52832 / SDK 14.2 / SD5.1.0

There might be two configurations to setup a PPI channel to assign some peripheral event to both timer capture & clear task:

1.

nrf_drv_ppi_channel_assign(event, (uint32_t)&NRF_TIMERX->TASKS_CAPTURE[Y]);
nrf_drv_ppi_channel_fork_assign(event, (uint32_t)&NRF_TIMERX->TASKS_CLEAR ...
(more)

61
views
1
vote
2
answers
Last activity 2017-12-12 22:39:54 +0100 by Jeffery Bahr

What is the precision on timers?

We have built and run the code in examples->peripherals->timer in nRF5_SDK_12.3.0_d7731ad on 4 different Nordic DK nRF51 development boards. The timer period is 5 msec. We commented out the LED initialization and toggling. In the ISR ... (more)

144
views
no
votes
1
answer
Last activity 2017-12-07 12:21:49 +0200 by Martin Børs-Lind flag of Norway

How to trigger ADC from a timer interrupt, while generating PWM with the same timer and while using BLE on nRF51822?

Hi. I am a newbie in Nordic chips, quite knowledgeable in Atmel AVR, though. I'm working with an nRF51822 on a board like this https://www.waveshare.com/wiki/BLE400. I use the Mbed environment.

What I'm trying ... (more)

58
views
1
vote
1
answer
Last activity 2017-12-06 13:40:09 +0200 by Petter Myhre flag of Norway

NRF51822 Secure Bootloader with app_timer

Hello everybody,

i want to add a timer to my secure bootloader example, so it waits some time and then, if no DFU is in progress, starts the beacon apllication automatic if there is one available.

I tried this by ... (more)

90
views
1
vote
1
answer
Last activity 2017-12-01 14:02:26 +0200 by Torbjørn Øvrebekk

SAADC using local timer

Hello,

based on the saadc example of SDK 11 I am trying to change the code to use the SAADC's local timer to sample the input given number of times (10 times for the below example), at a rate ... (more)

167
views
4
votes
9
answers
Last activity 2017-12-01 07:02:04 +0100 by Dave_couling

nrf52832 timer

I am using the nrf52832 soc, and have a requirement to run the device in low power mode and using the timer with a timeout value in days? how can I do so?

Sample code would be of great help.

180
views
2
votes
1
answer
Last activity 2017-11-30 16:06:20 +0200 by Cedric

Parallel time-stamps of GPIO edges with PPI? (timer capture) [closed]

Hi, all!

Is it really possible to timestamp 4 GPIO edges in parallel with the nRF52?

It would need to be as fast as possible and some edges might be simultaneous so PPI seems to be the trick.

The documentations ... (more)

64
views
no
votes
1
answer
Last activity 2017-11-28 05:29:19 +0100 by dhiraj_gehlot

nrf51822 Timer calculation

Hello Everyone,

Maybe this is a very silly question. I am trying to implement timer in nrf51822 with S130, SDK11.

Code snippet:

void TIMER1_IRQHandler(void)

{

if ((NRF_TIMER2->EVENTS_COMPARE[0] != 0) && ((NRF_TIMER2->INTENSET & TIMER_INTENSET_COMPARE0_Msk) != 0))
{

NRF_TIMER2->EVENTS_COMPARE[0] = 0;           //Clear compare ...
(more)

57
views
1
vote
1
answer
Last activity 2017-11-23 16:17:16 +0200 by Martin Børs-Lind flag of Norway

GPIOTE event is not triggered sometimes

Hello,

I need two signals with a phase shift to control my motor. For some reason, completely randomly, sometimes my GPIOTE event is not triggered and i get the inversion of the signals. I am spinning the motor for approximately ... (more)

76
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)

97
views
no
votes
1
answer
Last activity 2017-11-22 16:15:54 +0100 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)

92
views
3
votes
2
answers
Last activity 2017-11-14 10:34:06 +0200 by Jakub Rzeszutko

PWM issue in SDK14.1.0 for nRF52810 [closed]

Hello,

I am trying to implement PWM using PWM library using Timer 3 and 4. However, I am not able to use these timers at all as compilation gives this error: # Error 1

../../../../../../components/drivers_nrf/timer/nrf_drv_timer.c:274:13 ...

(more)

112
views
1
vote
1
answer
Last activity 2017-10-28 19:05:51 +0200 by fernandolns

Can I use app_timer and nrf_drv_timer together?

Hi,

I am having problems with using BLE along with gpiote and ppi for measuring the delay between two waveforms and sending the delay between them to an app using bluetooth. I am measuring the delay using the nrf timer ... (more)

116
views
no
votes
no
answers
Last activity 2017-10-26 11:50:05 +0100 by Simone

Timers not working on nRF52

Hello,

I'm developing a simple code that make use of timers using NRF-based boards and Arduino code.

The following code works fine on a Simblee nRF51822 board, but it crashes on a Adafruit Feather nRF52832 board (the variable 'flag ... (more)

98
views
no
votes
1
answer
Last activity 2017-10-25 15:52:30 +0200 by Jørn flag of Norway

delay by timer

i want make delay funtion by timer?

in the other MCU like PIC, AVR, stm. i find register that hold value counter and i cant set this value for example: timer 8 bit will count to 256 and i set ... (more)

286
views
1
vote
1
answer
Last activity 2017-10-23 13:31:05 +0100 by endnode

Questions about application timer

I have few questions that weren't addressed either in the infocenter or in the devzone: 1. In which way app_timer uses CC registers? Each running timer use one of these registers? 2. What is the maximum amount of timers ... (more)

51
views
no
votes
no
answers
Last activity 2017-10-23 00:29:01 +0100 by Bojan Potočnik

Calling nrf_drv_timer_init(...) changes content of the static twi_control_block_t structure

Hello,

Today I stumbled upon very strange nRF52832 behaviour which I cannot explain. I am using two TWIM instances (0 and 1) and one SPIM instance (2).

First strange behaviour was that the TWIM instance 1 is working OK and ... (more)

71
views
no
votes
no
answers
Last activity 2017-10-21 04:37:57 +0100 by Dave_couling

Improving nrf_drv_timer accuracy

Hi guys,

I'm trying to use the HFCLK to generate high resolution timing. Ideally at the millisecond resolution. I've written a layer around the nrf_drv_timer.c module. I'm using PPI to reset the Timer as it generates ... (more)

Statistics

  • Total users: 26365
  • Latest user: Emma Garratt
  • Resolved questions: 11565
  • Unanswered questions: 4029
  • Total questions: 28763