# 169 questions

Tagged
• x
33
views
2
no

## Can I configure GPIOTE to debug my signals?

Hello,

I am using nrf52832 DK and I would like to use the GPIOs port to debug a couple of signals that I genereate within the MCU.

So far I have configured my GPIOTE module like this (I am using ... (more)

19
views
no
1

## PWM on nrf52 with mbed consumes to much current.

Hi, I wonder why my pwm uses so much power in WFI mode. It uses around 470uA and when I do not use pwm that current is around 1.8uA. I tried to disable pwm but without success. Here's ... (more)

44
views
1
vote
1

## Will GPIOTE Interrupt be generated when CPU is halted?

When performing flash operations, i.e. via FDS or FSTORAGE, etc. - will GPIOTE events be captured and 'queued' until the CPU is no longer halted?

Said another way:

Can I assume that a GPIO transition that occurs while CPU is ... (more)

19
views
no
no

## gpiote interrupt cannot wake sd_app_evt_wait?

I have tried to use sd_app_evt_wait() to sleep cpu, and use gpiote interrupt to wake up cpu from sleep. However, gpiote interrupt cannot wake up cpu. When I use __WFE(), gpiote interrupt can wake up cpu. And even if I ... (more)

41
views
no
1

## i could not reset the gpiote pin interrupt

i am using nrf51822 s110 sdk7.2.0

1.i had initialized and configure the gpiote interrupt before mainloop for (pin no 10). 2.i had wrote the process on interrupt handler. 3.got the external interrupt successfully. 4. clear ... (more)

479
views
5
2

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

57
views
1
vote
1

## nRF51422 GPIOTE with pushbutton

Hi,

I am building a custom PCB using the nRF51422 chip. I need to include a pushbutton switch on the PCB to generate an interrupt when it is pressed(gpiote). I am connecting the pushbutton switch to an analogue pin ... (more)

67
views
2
2

## GPIOTE freezes on pin value change

I currently have a problem with the gpiote setup. I'm using it to detect an interrupt from mma8652 accelerometer.

here is an annotated version with the key portions of the code.

pin_event_handler()
{
NRF_LOG_INFO("\r\n PIN 26 triggered \r ...
(more)

54
views
2
2

## NFC pins as output pins do not output on flash, but do on HW reset?

HI,

the solution I'm working on requires quite a few IO pins, so once I ran out of regular GPIO pins I had to resort to using NFC ones.

I changed the UICR registers and rebooted the device to ... (more)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

484
views
3
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)

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

279
views
2
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)

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

#### Statistics

• Total users: 23740
• Latest user: Gretta Fusco
• Resolved questions: 10097
• Total questions: 24462

## Recent blog posts

• ### ble_app_hrs_freertos running in Atollic TrueSTUDIO

Posted 2017-08-14 02:55:30 by jmag999
• ### OLED display support for nRF52832 (SSD1306, Adafruit GFX)

Posted 2017-08-11 08:21:31 by Mahesh Venkitachalam
• ### I tried 5 different debugger IDEs for nRF52 and STM32. Here are my results.

Posted 2017-08-09 10:56:19 by Jonathan
• ### Things you should know about Bluetooth mesh

Posted 2017-08-07 12:37:22 by Eirik Midttun
• ### Support pairing on NUS profile for Central and Peripheral

Posted 2017-08-01 08:42:41 by Eugene Yu

## Recent questions

• ### Disabling S132 Softdevice when running FreeRTOS

Posted 2017-08-17 08:41:35 by x_mike
• ### Where can I get example Mesh Network NRF52840?

Posted 2017-08-17 06:34:23 by MainOFF
• ### Can bootloader in SDK V11 boot into SDK V12/13/14 application

Posted 2017-08-17 06:29:13 by Roland
• ### Disable ACK at Receiver in Enhanced Shockburst

Posted 2017-08-17 06:12:06 by Alan
• ### SPI Communication problem between nRF51 DK and nRF52 DK

Posted 2017-08-17 05:53:11 by JungWon Kim