RSS
Sort by » date activity ▼ answers views votes

169 questions

Tagged
  • x
33
views
2
votes
no
answers
Last activity 2017-08-15 11:14:34 +0200 by ndarkness

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
votes
1
answer
Last activity 2017-08-14 12:43:33 +0200 by flip-flop

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
answer
Last activity 2017-08-03 15:20:06 +0200 by Torbjørn Øvrebekk

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
votes
no
answers
Last activity 2017-08-03 11:01:08 +0200 by Haruki Kawakami

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
votes
1
answer
Last activity 2017-07-27 12:45:06 +0200 by Kristin flag of Norway

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
votes
2
answers
Last activity 2017-07-13 10:37:12 +0200 by Jørgen Holmefjord flag of Norway

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
answer
Last activity 2017-07-12 13:54:48 +0200 by Sigurd flag of Norway

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
votes
2
answers
Last activity 2017-07-07 09:47:31 +0200 by Jørgen Holmefjord flag of Norway

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
votes
2
answers
Last activity 2017-06-30 21:24:47 +0200 by Nguyen Hoan Hoang flag of Canada

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Statistics

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