RSS
Sort by » date activity ▼ answers views votes

177 questions

Tagged
  • x
52
views
2
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)

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

34
views
1
vote
1
answer
Last activity 2017-10-04 13:08:52 +0200 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)

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

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

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

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

56
views
no
votes
1
answer
Last activity 2017-08-30 11:37:21 +0200 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)

76
views
2
votes
1
answer
Last activity 2017-08-23 03:03:01 +0200 by Alexis flag of France

Parallel timestamping with PPI? (timer capture)

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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Statistics

  • Total users: 24904
  • Latest user: Kristal Fielder
  • Resolved questions: 10659
  • Unanswered questions: 3430
  • Total questions: 26081

User menu

    or sign up

Recent questions