# 161 questions

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

66
views
1
vote
1

## 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
no

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

> /** @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
1

## 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
1

## 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
1

## 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

## 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

## 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
2

## 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

## 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
3

## 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
1

## 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

## 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

## 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
1

## 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
no

## 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
1

## 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
no

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

The results are showed below:

For the nRF52 it's arround 380ns.

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

202
views
1
vote
1

## 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
1

## 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
1

## 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
1

## 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
1

## 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
1

## 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
no

## 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
1

## 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
1

## 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
1

## 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
no

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


to ... (more)

#### Statistics

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

## Recent blog posts

• ### Nordic Developer Zone celebrates its 4th year of helping developers succeed - Celebrate with us and win a Nordic Thingy: 52’

Posted 2017-06-23 10:12:53 by John Leonard
• ### nRF52 Development with CLion

Posted 2017-06-22 09:50:54 by dansheme
• ### Simple GPIO driver example

Posted 2017-06-22 13:38:36 by Hans Elfberg
• ### What mom didn't tell you about ble_app_att_mtu_throughput on the nRF52840 evaluation board

Posted 2017-06-16 16:12:15 by George
• ### Introducing Nordic’s new software licensing schemes

Posted 2017-06-15 11:21:39 by Reidar Martin Svendsen

## Recent questions

• ### NRF51822 to NRF51822 Over the air update (DFU)

Posted 2017-06-25 16:25:45 by wogisha
• ### Advertising with device_name Vs whitelisting

Posted 2017-06-25 14:39:12 by raju