RSS
Sort by » date activity ▼ answers views votes

17 questions

Tagged
  • x
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)

105
views
1
vote
1
answer
Last activity 2017-11-27 10:13:26 +0200 by David Edwin

Softdevice and interrupt lost

Hi everyone, My configuration:

  • nrf52832 microcontroller
  • Softdevice S132 V4.0.2
  • Nordic SDK 13.0
  • IDE: Eclipse

I'm working with a "Stand-alone can bus controller" connected to nrf52832 with SPI interface. The CAN controller informs nrf52 micro, via an ... (more)

146
views
no
votes
1
answer
Last activity 2017-09-01 16:17:10 +0200 by Torbjørn Øvrebekk

Changing on_ble_evt interrupt priority

Working with: examples/ble_peripheral/ble_app_uart . I would like to change on_ble_evt priority level so that UART IRQ handler has lower priority then softdevice event dispatching routine.

So far I checked that there are following IRQ priority levels:

  • UART = 6 (or ...
(more)

60
views
no
votes
no
answers
Last activity 2017-04-12 05:45:15 +0200 by Haruki Kawakami

spi interrupt doesn't work in BLE event using SDK13.0.0

Hi,

I'm working on migration from project based on SDK12.1.0, 132SD3.0.0 (calling A project) to the one based on SDK13.0.0, 132SD4.0.2 (calling B project). I developed the project by adding codes ... (more)

304
views
4
votes
1
answer
Last activity 2016-05-13 14:34:11 +0200 by Martin Børs-Lind flag of Norway

Can ble_nus_string_send() be called from a TWI callback?

Calling ble_nus_string_send() from within a TWI callback (case NRF_DRV_TWI_EVT_DONE) is performing a reset on my PCA10028 (nRF51422). It works fine from the main loop.

Am I right in assuming that BLE operations cannot be issued from such callbacks? But on ... (more)

227
views
no
votes
1
answer
Last activity 2016-04-20 14:10:35 +0100 by Stefan Birnir Sverrisson flag of Iceland

how to set high priority to push button

I'm using nrf51822. I have a program which shut down the system when the button is clicked. however, not every time I click the button, the system respond. my system is full of other events (interrupts). the BUTTON_DETECTION_DELAY is ... (more)

294
views
1
vote
no
answers
Last activity 2016-03-09 07:54:11 +0200 by TY

How do I control servo simultaneosly in the interrupt_hadler? [closed]

Hi,

I'm using SD110, SDK 10.0.0, nRF51822

In my own application, I control 4 servo by pwm with Timer1 and Timer2,

and I have 2 buttons, each button is a flag for moving servo1,2 and servo3 ... (more)

139
views
2
votes
1
answer
Last activity 2016-01-27 17:27:27 +0100 by RK flag of Singapore

irq latency with softdevice

Hi,

My goal is to capture on gpio burst infrared proprietary "messages" composed of multiple "bits". The Length of each bit is around 100 to 200us.

Initially I planned to use timer1 and timer2 to capture the low and high ... (more)

326
views
no
votes
1
answer
Last activity 2016-01-13 16:38:45 +0200 by Stefan Birnir Sverrisson flag of Iceland

Different IRQ priority levels

Hi,

system info:

  • SDK: v6.0.0.43681
  • S110 V7.0.0
  • nRF51822 Rev.2

I’m using a ~4ms one shot timer (using the timer library) which is being started in the RADIO_NOTIFICATION_IRQHandler(). In the timer_timeout_handler() I’m starting ... (more)

279
views
no
votes
2
answers
Last activity 2015-11-05 10:56:00 +0100 by Einar Thorsrud flag of Norway

scheduler priority

I am trying to use the scheduler, but I would like to know if it is possible to have events with different priorities... As an example:

Task A - Priority LOW Task B - Priority LOW Task C - Priority HIGH Task D ... (more)

137
views
no
votes
no
answers
Last activity 2015-11-04 18:48:31 +0100 by Diogo

Scheduler priority [closed]

I am trying to use the scheduler, but I would like to know if it is possible to have events with different priorities... As an example:

Task A - Priority LOW Task B - Priority LOW Task C - Priority HIGH Task D ... (more)

194
views
1
vote
1
answer
Last activity 2015-07-09 09:18:48 +0100 by Aryan flag of Norway

nRF51 patch unit (PU) and AHB Multi-Layer Interface (AMLI) [closed]

Header for nRF51 (nrf51.h) mentions two peripheral blocks completely missing from chip documentation. Are they functioning? If so, the comment for PATCHADDR field of PU says it's relative. Is it relative to the address of patched instruction (flash ... (more)

392
views
4
votes
1
answer
Last activity 2015-05-16 03:03:44 +0100 by RK flag of Singapore

BLE Blocking Interrupts

Hi,

I am using the nRF51822 with an external chip. The nRF51822 has interrupts which trigger when one of the signals from the external chip goes low. When using BLE and the CPU is blocked during transmission of the radio ... (more)

1k
views
1
vote
1
answer
Last activity 2015-02-06 13:49:16 +0200 by Stefan Birnir Sverrisson flag of Iceland

How to use sd_nvic_SetPriority with GPIOTE handler on nRF51822 [closed]

Hmm... this should be a simple question. But I haven't found a direct answer yet in the online SDK docs, the ARM NVIC docs, nor in this forum (and have only been confused by trying to work with the ... (more)

187
views
no
votes
1
answer
Last activity 2015-01-16 17:27:56 +0200 by Hung Bui

S120 interrupt latency

We have an NRF51822 running S120 at 32MHz.

Our system has two removable batteries. If a battery is removed we need to switch to the other battery as fast as possible. We would like to do this in an interrupt ... (more)

586
views
2
votes
2
answers
Last activity 2014-11-20 16:38:29 +0100 by Stefan Birnir Sverrisson flag of Iceland

realtime interrupt with 50us processing possible with s110?

I have a situation where I need a software PWM for several channels, which are multiplexed via a shift register.

The output loop needs to run at several kHz for this to work, but the processing only takes about 50us ... (more)

Statistics

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