RSS
Sort by » date activity ▼ answers views votes

161 questions

Tagged
  • x
25
views
no
votes
1
answer
Last activity 2017-06-20 14:37:39 +0200 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)

66
views
1
vote
1
answer
Last activity 2017-06-19 14:57:28 +0200 by Kristin flag of Norway

Minimum GPIOTE "low accuracy" pulse width

I have a device with a programmable output pulse width for its data ready signal. I need to be able to reliable receive the pulse so I don't miss any interrupts, and I'd like to do that in ... (more)

20
views
no
votes
no
answers
Last activity 2017-06-18 01:36:21 +0200 by Daniel T. Lee flag of Korea, Republic of

GPIOTE Library makes my Board Brick?? (J-Link is not Found)

GPIOTE Library makes my Board(nRF51422-QFAC) Brick??

I just build my nRF51422 Board, and It's pretty working well before I've used GPIOTE Library.

Before using GPIOTE Library, I've used GPIOTE Driver, And It works pretty well. (But ... (more)

45
views
1
vote
1
answer
Last activity 2017-06-14 13:40:38 +0200 by Kristin flag of Norway

My Timer-GPIO program doesn't run, could someone please advise? [closed]

> /** @file
> * @brief Example template project.
> * @defgroup nrf_templates_example Example Template
> *
> */
> 
> #include <stdbool.h>
> #include <stdint.h>
> 
> #include "nrf.h"
> #include "nrf_gpio.h"
> #include "nrf_drv_config.h"
> #include "nordic_common.h"
> #include "nrf_delay.h"
> #include "app_error.h"
> #include "app_timer.h"
> #include "nrf_gpiote.h"
> #include ...
(more)

78
views
no
votes
1
answer
Last activity 2017-06-06 14:19:03 +0200 by Kristin flag of Norway

what is the library to use gpiote?

I want to make the led ON always and making the source code from scratch in keil mu vision 5. I am not able to understand which library is to used and how to proceed.

66
views
no
votes
1
answer
Last activity 2017-05-29 10:47:54 +0200 by Kristin flag of Norway

gpiote handler - disable momentarily to run critical section

With calls to these functions: nrf_drv_gpiote_init() nrf_drv_gpiote_in_init() nrf_drv_gpiote_in_event_enable() I have a handler (interrupt) routine that services a CAN bus chip on SPI bus. The handler runs when the chip's interrupt output, connected to a nRF52 GPIO input, goes from ... (more)

78
views
no
votes
1
answer
Last activity 2017-04-25 12:29:00 +0200 by Jordi

Hardfault when using both UART and GPIOTE, how can I solve this problem?

Hello,

I feel like this question has an answer similar to this question, but I can't seem to get it working https://devzone.nordicsemi.com/questi...

I am using the nrf51422 chip on a board I designed myself and ... (more)

46
views
1
vote
1
answer
Last activity 2017-04-11 08:31:07 +0200 by Jørgen Holmefjord flag of Norway

Do I have any restriction with HW Pinout Peripheral when using s130?

if I use softdevice 130 Enabled, then do I have any restriction with using all of the pinout of NRF51xxx?

Or if I use Nrf-51 DK, Do I have any restriction with nrf 51xxx's full pinout functionality?

To Make ... (more)

47
views
1
vote
1
answer
Last activity 2017-04-09 12:23:45 +0200 by RK flag of Singapore

gpiote with FreeRTOS

Hi,

I migrate my code to FreeRTOS environment.

I use SDK12.2.0 ble_hrs_freertos code example as a startup project.

My question is how i need to init gpite?I receive error ,8

  err_code = nrf_drv_gpiote_init(); //!!! err_code  = 8
  APP_ERROR_CHECK(err_code);

And ... (more)

133
views
2
votes
2
answers
Last activity 2017-03-13 11:14:29 +0200 by Hung Bui

Long Press to Wake-up

Hello,

Is there any methods to implement the "long press wake-up"? Pressing the button for 3 seconds to let device enter sleep mode and pressing the same button for 3 seconds to wake it up.

Already defined the wake-up gpio ... (more)

113
views
1
vote
1
answer
Last activity 2017-03-10 11:53:15 +0200 by endnode

How to use Buttons input as GPIO

Hi, i'am working on a custom board on which there is two led drive by a led driver.

The two leds are wiring to be drive by pins P0.14 and P0.15, but unfortunately these pins are consider ... (more)

182
views
2
votes
3
answers
Last activity 2017-03-10 10:25:45 +0200 by Stian flag of Norway

GPIOTE and SPI high power consumption on sleep

Hello everyone.

I am currently working on a device with some peripherals. I have SPI slaves and other sensors that I am monitoring using GPIOTE driver.

I noticed a consumption of 0.470mA while sleeping under the following circumstances:

  • Configure ...
(more)

106
views
2
votes
1
answer
Last activity 2017-02-20 12:48:57 +0200 by Petter Myhre flag of Norway

GPIOTE interrupt count

Hi

I am using nRF51822 (pca10001).I am unable to discover my device. I used the ble_app_template_s130_pca10028 as my base and added the code for gpiote handler as following.

static void gpiote_event_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)
{

    int32_t count = 0;
    count ...
(more)

84
views
1
vote
1
answer
Last activity 2017-02-16 17:18:18 +0200 by wizath

gpiote sense high frequency signal

Hi,

I want to implement simple module: 1) gpiote event on pin change (around 6.7MHz signal) 2) Route gpiote event through PPI to increment counter 3) Toggle GPIO pin on Compare event

Im using this code (modified example of ... (more)

185
views
1
vote
2
answers
Last activity 2017-02-15 15:40:05 +0200 by Wojtek flag of Poland

How to use GPIOTE driver

Hello,

I'm using SDK12.2.0.

I opened the PPI example (in SES). I want to use the GPIOTE driver to trigger GPIO tasks on Timer events. So I #include "drivers_nrf/gpiote/nrf_drv_gpiote.h" and included the file drivers_nrf ... (more)

139
views
no
votes
1
answer
Last activity 2017-02-13 08:08:15 +0200 by Johannes Lorenz

nRF51 enable interrupt pin not working: nrf_drv_gpiote_in_event_enable

Hi,

on my board I have a nRF51 and a LIS2DH accelerometer. I want to enable an interrupt pin INT1, so if the LIS2DH sends an interrupt event (pin change from high to low or vice versa) because of an ... (more)

160
views
no
votes
no
answers
Last activity 2017-01-27 21:16:26 +0200 by acv

GPIOTE simultaneous interrupts

nRF52, SDK12.1, Eclipse, gcc 5.4.1, FreeRTOS, no soft-device.

I am having a problem with GPIOTE. I have six interrupts programmed on six different pins. As long as the signals do not transition at the same time, the ... (more)

277
views
2
votes
1
answer
Last activity 2017-01-26 20:50:40 +0200 by anfedres

Configuration of Digital Input/Output pins on nRF52

Hello everybody, I'm new to the Nordic system and the nRF52. I'm trying to become familiar with the board and I want to be able to read different 4 input pins, each one attached to the LEDs. In ... (more)

244
views
no
votes
no
answers
Last activity 2017-01-26 14:22:18 +0200 by Pascal Künzi

Delay from GPIOTE Event until a Task is started over PPi on nRF52

Hi all,

I measured the delays between a GPIOTE event and a Task (in this case toggling with another GPIOTE) through PPI. image description

The results are showed below: image description

For the nRF52 it's arround 380ns.

The same measurements were done with ... (more)

202
views
1
vote
1
answer
Last activity 2017-01-25 08:36:47 +0200 by Vidar Berg

Whats the alternative to GPIOTE In Event ?

Hi,

I've written code to use the "gpiote in event" to sense an interrupt from a peripheral (acceleromenter), but as soon as I enable the in event, I notice the current consumption is a lot higher.

if (!nrf_drv_gpiote_is_init())
{
        error_code ...
(more)

118
views
no
votes
1
answer
Last activity 2017-01-24 16:49:12 +0200 by Stian flag of Norway

Reducing TWI Active Current

Hello,

I am currently working on an ultra-low power project that requires reading an I2C accelerometer multiple times per second. After analyzing the current consumption in the design, it is clear that the TWI peripheral uses quite a bit of ... (more)

78
views
5
votes
1
answer
Last activity 2017-01-24 02:17:20 +0200 by Rusty Scott

No slave select on SPIM xfer using PPI and GPIOTE

I have a custom board that has an MPU9250 attached as a SPI device. The MPU can generate data ready interrupts. I have set the MPU to generate data ready 4x per second which is about the slowest it can ... (more)

323
views
5
votes
1
answer
Last activity 2017-01-24 01:35:50 +0200 by SRA

NRF52 as SPI master with Multiple Slaves

Hello, my project has 3 different devices (2 sensor and flash memory) on the same SPI bus all with their own CS. I ran across the following question, which has a response for a workaround for the NRF51. Upon jumping ... (more)

121
views
no
votes
1
answer
Last activity 2017-01-16 15:19:02 +0200 by Hung Bui

DETECT signal nrf52840

Can someone tell me how the DETECT signal works in the nRF52840? This version of the nrf52 has 2 GPIO ports. Does that mean there are 2 DETECT signals? or is there still one and are all SENSE levels of ... (more)

122
views
no
votes
1
answer
Last activity 2017-01-16 10:40:38 +0200 by haakonsh

nrf_drv_gpiote_in_event_enable does not work as expected

Hello, we need to first enable GPIOTE+IRQ. Then after 1st IRQ we want to keep only GPIOTE and disable IRQ. We do not want to disable GPIOTE (because it works with PPI), but only to disable IRQ.

We tried ... (more)

86
views
no
votes
no
answers
Last activity 2017-01-13 06:32:37 +0200 by labi

Nrf52 issue with RTC event running GPIOTE Task

Hi,

I'm trying to simply toggle a pin with GPIOTE out toggle task from RTC2 CC0 event. Wrote up the following code and checked the registers in system viewer. Everything seems to check out but still not seeing the ... (more)

54
views
3
votes
1
answer
Last activity 2017-01-12 18:34:51 +0200 by angel

GPIOTE interrupt signal slow?

Dear Nordic,

I am having some apparent delays in the time that passes from the pressing of a button, and the execution of the ISR that this button triggers. I am using GPIOTE to generate this interrupt.

ret_code_t err_code;
err_code ...
(more)

100
views
no
votes
1
answer
Last activity 2017-01-03 13:22:37 +0200 by Sigurd flag of Norway

Nrf51 Fast GPIOTE + Ble

Hi,

Im using S130softdevice.i wanna make dimmer by using experimental_ble_app_blinky project on gpioet But i have a problem with detecting 10 milisecond time (it means that i expect interrupt but it doesnt happen after each 10 milisecond)the lamb ... (more)

136
views
no
votes
1
answer
Last activity 2017-01-02 13:23:53 +0200 by Aryan flag of Norway

USE NMI for GPIOTE

Hi,

I'm currently using an application that needs a very speed detection of GPIO and need to use NMI on GPIOTE.

I tryed to find how can I connect my NMI to GPIOTE but I didn't find how ... (more)

57
views
no
votes
no
answers
Last activity 2016-12-13 05:20:04 +0200 by robotden

nRF51822 PWM and GPIOTE: differrences between Keil MDK(ARMCC) and GNU_GCC_ARM Compiler

Hello everybody!

I have a problem with compilers for nRF51822. My problems: I create a pwm signal ~38Khz, duty 30% at pin 30 of nRF51822. This process is work well. I want use the function:

nrf_drv_gpiote_out_task_enable(pin)
nrf_drv_gpiote_out_task_disable(pin)

to ... (more)

Statistics

  • Total users: 22278
  • Latest user: Camilla Samons
  • Resolved questions: 9667
  • Unanswered questions: 2797
  • Total questions: 23073