RSS
Sort by » date activity ▼ answers views votes

183 questions

Tagged
  • x
141
views
2
votes
1
answer
Last activity 2017-11-30 16:06:20 +0200 by Cedric

Parallel time-stamps of GPIO edges with PPI? (timer capture) [closed]

Hi, all!

Is it really possible to timestamp 4 GPIO edges in parallel with the nRF52?

It would need to be as fast as possible and some edges might be simultaneous so PPI seems to be the trick.

The documentations ... (more)

33
views
1
vote
1
answer
Last activity 2017-11-28 14:51:12 +0100 by Martin Børs-Lind flag of Norway

Additional Button in nrf52-dk

When adding extra buttons on breadboard for NRF52-DK do we need to use resistors OR i can directly connect one leg to GPIO pin i.e 30 and another to gnd.

39
views
1
vote
1
answer
Last activity 2017-11-23 16:17:16 +0200 by Martin Børs-Lind flag of Norway

GPIOTE event is not triggered sometimes

Hello,

I need two signals with a phase shift to control my motor. For some reason, completely randomly, sometimes my GPIOTE event is not triggered and i get the inversion of the signals. I am spinning the motor for approximately ... (more)

47
views
1
vote
1
answer
Last activity 2017-11-20 16:52:11 +0100 by Martin Børs-Lind flag of Norway

gpiote interrupt resolution [closed]

Can NRF52 gpiote detects pulse width nearly 250ns? We use a AFE sensor that notifies MCU it's data by sending a low to high pulse. The pulse width is about 250ns which is very small, I set the gpio ... (more)

55
views
2
votes
no
answers
Last activity 2017-11-14 17:05:06 +0200 by Sansei

Nrf51822 stops handling GPIOTE->PORT interrupts

Hi engineers, Here we are facing a critical problem in which the NRF51822 stops handling/processing the GPIOTE->PORT interrupts after some days good working. This problem is occurring randomly whereby our system will stop working completely. Then, we have ... (more)

54
views
no
votes
1
answer
Last activity 2017-11-07 17:04:04 +0200 by Hung Bui

why does SDK not have the API to use GPIO latch, LDETECT mode

Hi,

I'm using nRF52832 and LDETECT mode for GPIOTE PORT event to detect multiple interruption.

Even though LDETECT mode is described in the product sheet page 112 and GPIO register has DETECTMODE register, why SDK of any version doesn ... (more)

79
views
1
vote
1
answer
Last activity 2017-10-28 19:05:51 +0200 by fernandolns

Can I use app_timer and nrf_drv_timer together?

Hi,

I am having problems with using BLE along with gpiote and ppi for measuring the delay between two waveforms and sending the delay between them to an app using bluetooth. I am measuring the delay using the nrf timer ... (more)

87
views
3
votes
1
answer
Last activity 2017-10-16 13:47:41 +0200 by Martin Børs-Lind flag of Norway

extra current in idle ~450 uA NRF52832

Hi all

I'm trying to build a generator based on NRF52832. Outpit signals are: 8MHz clock and two latches signals highly sinchronized with clock - RGB_LAT and TXT_LAT. For this task I used TIMER1, PPI and GPIOTE. Actually my approach ... (more)

62
views
no
votes
1
answer
Last activity 2017-10-06 13:17:46 +0200 by Sigurd flag of Norway

App_GPIOTE not compatible with pull up/down or GPIOTE high accuracy mode

This may be intentional, or an oversight but the

uint32_t app_gpiote_user_register(app_gpiote_user_id_t
* p_user_id, uint32_t const * p_pins_low_to_high_mask, uint32_t const * p_pins_high_to_low_mask, app_gpiote_event_handler_t event_handler)

doesn't take into consideration that user might have wanted a pull-up or pull-down on the GPIO pin, or ... (more)

77
views
1
vote
1
answer
Last activity 2017-10-04 13:08:52 +0100 by Jørn flag of Norway

Clear GPIO SENSE signal on HITOLO

Related to SDK 12.3.

Quoting this question:

1) GPIOTE PORT event generated on the rising edge of DETECT signal. Please have a look at section 15.1.2

2)DETECT signal is common signal when multiple pins are configured ...

(more)

2k
views
1
vote
6
answers
Last activity 2017-09-28 08:24:33 +0200 by Yashur

How to output 32768Hz external crystal LFCLK at a GPIO pin?

For synchronizing an external sensor i need to output a 32768Hz clock at a GPIO pin. For this case i want to use LFCLK from the external cyrstal.

<u>My setup:</u> I use RTC0 to generate a tick event ... (more)

68
views
no
votes
no
answers
Last activity 2017-09-24 23:02:41 +0200 by julienh

Application crash after disconnection

Hi,

I have an application with an accelerometer. This one communicate in I2C (TWI ). The accelerometer send a "data ready" signal every 20ms. I'm using the GPIOTE module to detect this signal and read the acceleration (I2C).

Each time ... (more)

114
views
no
votes
2
answers
Last activity 2017-09-19 00:08:56 +0200 by Salmat

GPIOTE interrupt not trigered

It seems GPIOTE interrupt do not trigger when multiple IN signals are defined as GPIOTE_CONFIG_IN_SENSE_XXX(false). It works when GPIOTE_CONFIG_IN_SENSE_XXX(true)

I am using sdk14.0.0 with 10040 kit for this example.

It is a modified "pin_change_int" SDK example ... (more)

144
views
1
vote
1
answer
Last activity 2017-09-04 15:54:56 +0200 by Jørn flag of Norway

how to detect simultaneous gpio interrupt without high current consumption

nRF52832 has errata about gpiote as below.

3.29 [97] GPIOTE: High current consumption in System ON Idle mode

So I want to use PORT event for gpio interrupt, but PORT event cannot take multiple gpio interrupt.

Multiple gpio interrupt ... (more)

68
views
no
votes
1
answer
Last activity 2017-08-30 11:37:21 +0100 by drahnr

zephyr gpio interrupt not fireing

I just tried the Button example on the nrf52-dk development board, and the interrupt for the defined button GPIO does not seem to *trigger

Zephyr 1.8.0 (fcb9144dc git)

make BOARD=nrf52_pca10040

and the example under

samples/basic/button ... (more)

117
views
3
votes
2
answers
Last activity 2017-08-21 15:13:24 +0200 by Turbo J

gpiote interrupt cannot wake sd_app_evt_wait? [closed]

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)

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

83
views
no
votes
1
answer
Last activity 2017-08-14 12:43:33 +0200 by flip-flop flag of Croatia

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)

55
views
1
vote
1
answer
Last activity 2017-08-03 15:20:06 +0100 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)

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

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

74
views
1
vote
1
answer
Last activity 2017-07-12 13:54:48 +0100 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)

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

64
views
2
votes
2
answers
Last activity 2017-06-30 21:24:47 +0100 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)

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

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

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

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

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

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

Statistics

  • Total users: 25660
  • Latest user: dlouver
  • Resolved questions: 11261
  • Unanswered questions: 3818
  • Total questions: 27801