Questions tagged [gpio-external-interrupt]

Certain GPIO pins could be programmed as external interrupt source, through which external devices (such as RF modules, buttons, switches, etc.) could generate interrupts.

Filter by
Sorted by
Tagged with
4 votes
5 answers
856 views

Controlling flip/vane clock digits

I've obtained a vane/flip clock which has 4 digits, but the controller is long gone. I plan to control the clock using a Raspberry Pi and the usual relay boards you get for them - I've done something ...
user avatar
0 votes
0 answers
109 views

How to calculate time difference between two rising edges at an external interrupt pin STM32?

I am using STM32 Nucelo board mostly with HAL and I set one GPIO pin as an external interrupt pin. And I want to measure the time between two consecutive rising edges fed to this pin. So far, I have ...
user avatar
  • 1,283
0 votes
0 answers
26 views

Which type of connector to use for asynchronous trigger inputs?

I'm creating a rugged onboard audio playback system PCB. I'm using 16 individual triggers that are simple asynchronous input signals making a contact closure to ground in order to trigger a falling-...
user avatar
2 votes
3 answers
225 views

STM32F7: use more than 16 external interrupts

I'm currently designing a circuit based on a STM32F722ze (datasheet, reference manual). As far as I understand from section 3.11 of datasheet and 10 from reference manual, for each "external ...
user avatar
  • 2,568
1 vote
0 answers
122 views

STM8: How to make External Interrupt Handler firing only once

I have a external interrupt handler which is tied to a button which will be fired upon pressed. ...
user avatar
1 vote
1 answer
302 views

EXTI code on STM32F4 doesn't work properly

I've been learning to program in bare-metal and I'm trying to learn how EXTIs work. I wrote a simple program that would turn on an onboard LED on PB7 when triggered by a button on PC13. Code as ...
user avatar
1 vote
0 answers
168 views

Wake up with external Interrupt from deep sleep mode (Adafruit Feather 32u4)

I have an Adafruit Feather ATMega 32u4. I want to put it into sleep mode and wake it up with pressing a switch as an external interrupt. This is what I tried so far and which worked: switching a LED ...
user avatar
  • 11
0 votes
0 answers
89 views

How to detect the presence/ absence of a PWM signal on a GPIO pin?

I just want to set or clear a flag by detecting the presence or absence of a PWM signal with approximately >100 kHz frequency on a GPIO pin. I studied that a simple RC low pass filter can be used ...
user avatar
0 votes
0 answers
84 views

How to detect an I2C slave presence/ absence as an interrupt?

Involved in a task to build a test equipment with a ARM M4F microcontroller for the purpose of testing various PCBs. One of the PCBs has I2C compatible current/voltage monitoring chip on it. Is there ...
user avatar
0 votes
1 answer
159 views

Ideal circuit for opto-isolated push button input

I'm trying de design isolated and robust push button circuit. I have to take precautions for glitching, debouncing and etc. I want to use opto isolator. I draw a simple schematic but I'm not sure if ...
user avatar
3 votes
2 answers
331 views

ESP-32 not working with big motor

I have spent the last two months trying to build a door controller for a chicken coop. The idea is simple: The ESP32 recieve signal from my house Wi-Fi to close or open the door. So the corresponding ...
user avatar
  • 131
2 votes
1 answer
79 views

GPIO- Interrupt on a non-interrupt pin?

If a GPIO pin is not interrupt configurable as external interrupt, is it still possible by any chance to detect the button press on the pin without polling just like an interrupt?
user avatar
  • 63
0 votes
1 answer
152 views

Pushbutton Circuit - Triggers Event when no button press

I have been using the circuit below. I have noticed there are times the circuit will trigger on its own without any button press. Sometimes it can trigger a few times within an hour. The components ...
user avatar
  • 51
0 votes
1 answer
114 views

Why does BMI088 have 4 interrupt pins?

BMI088 has 4 interrupt pins, 2 for ACC, 2 for GYRO. I've been scanning through the datasheet and can't seem to understand: Why does ACC/Gyro have 2 interrupt pins that do the same thing? INT1~INT4 ...
user avatar
0 votes
2 answers
810 views

WEMOS D1 R1 Interrupt repeats continuously, when triggered, Is it bouncing? How to fix it?

I am having such a nightmare to make it work, I am using a WEMOS D1R1 to handle the movement of an encoder via external interrupts. Instead if detecting the edge (L to H), it detects the status, so ...
user avatar
  • 1
0 votes
2 answers
151 views

Pushbutton Noisy Signal

I have a pushbutton setup and occasionally it is randomly triggered without someone pressing it. Would this be because I have a larger resistor on the 3.3V GPIO (reads the input and possibly ...
user avatar
  • 51
0 votes
1 answer
43 views

A statement which is not clear to me on NVIC configurations

See the document here. I am interested on using external interrupts, and trying to configure NVIC at register level. The statement below, which can be found in page 215, confused me: Each priority ...
user avatar
  • 1,966
0 votes
2 answers
101 views

Using digital pins for reading analog value

When I connect the pressure sensor to an analog pin of WEMOS D1 MINI board I'm getting values between 300 when the sensor is not pressed, and 700 when it is pressed....
user avatar
  • 103
0 votes
1 answer
48 views

Multiplies I / O reading with interruption in stm32f767zi

I am developing a board where 40 low I / O ports will be read, and I would like when I detect a low border to activate interruption for reading the port. in the documentation it says that "Up to 168 ...
user avatar
  • 1
0 votes
2 answers
361 views

Verilog: Sampling short, external, asynchronous input signals on a FPGA

I want to sample an external, possibly very short interrupt signal in my FPGA softcore. I did some research in some digital logic design books, and found this solution, where A is the input signal. ...
user avatar
  • 125
0 votes
3 answers
468 views

Implicit declaration is invalid warning for __set_BASEPRI() function in Keil

I'm trying to use a __set_BASEPRI() function in Keil to set up interrupts in STM32F407 but it doesn't work when I compile the code and the IDE shows warning "...
user avatar
0 votes
1 answer
523 views

Which Raspberry Pi 3B+ GPIO pin is connected to which module in Adeept Motor Hat v2.0?

I need to find out which GPIO pin on the raspberry pi will be connected to which module when I fit the Adeept Motor Hat v2.0 on the 40 GPIO pins. I am attaching the image and the schematic of the ...
user avatar
  • 13
-1 votes
3 answers
1k views

How is a Rising Edge defined on STM32?

I'm playing with an STM32F0 and the datasheet clearly defines what a HIGH and LOW signal level is, but I can't find a definition for a Rising Edge. Is it required to go from "LOW" to "HIGH"? I assume ...
user avatar
  • 39
1 vote
0 answers
103 views

ESP8266 vs ESP32 and WakeUp vs Reset

Maybe it's my fault but I kinda dislike the design of the ESP8266 when it comes to wakeup from deep sleep via an interrupt. AFAIK (without an external circuit) the ESP8266 can not distinct between a ...
user avatar
0 votes
0 answers
212 views

Can't use the Wake-on-Motion functionality of an MPU9250 with STM32

Hi there :) I'm trying to use the Wake-on-Motion functionality of this particular MEMS (MPU9250) with my STM32L152C-Discovery board: if the MPU9250 sense a motion, the INT pin will be high. To achieve ...
user avatar
  • 75
0 votes
2 answers
4k views

STM32 EXTI does not trigger interrupt

I am working on a device with a button that is supposed to turn it on (when pressed briefly) and off (when held longer). The MCU is an STM32L432. The button is connected to PB0. I want to use EXTI as ...
user avatar
  • 8,396
1 vote
1 answer
150 views

Breakpoint Alters PIO Interrupt Behavior - ATSAMV71

So I'm baffled by this... I'm working with an ARMv7-M microcontroller and GCC compiler, debugging some code where I'm trying to enable an interrupt. I'm trying to do the following: enable an ...
user avatar
0 votes
0 answers
65 views

Connecting Volt-Free probes

This might be a too silly a question to ask, but I am working with the volt-free probes for the first time. I have a probe TL2 probe that has 4 wires. The user manual states that, For ‘TL2’ ...
user avatar
  • 1,590
2 votes
0 answers
2k views

stm32 external interrupt

I am working with a stm32f103 and am trying to get the external interrupt done. My code is: ...
user avatar
2 votes
0 answers
95 views

nucleo-64 103rb EXTI stays pending

The PC13 EXTI interrupt (EXTI15_10) configured here keeps firing none stop. Most other questions about this same topic indicate that the respective EXTI_PR pending bit needs to be cleared in the ISR. ...
user avatar
  • 121
0 votes
3 answers
716 views

method to handle concurrent GPIO interrupt sources?

I have two GPIO interrupt sources running in two separate threads: GPIO pulses following line frequency(60 Hz) button press How can I use both these interrupts concurrently, considering my ...
user avatar
0 votes
1 answer
2k views

External interrupts in STM32CubeMx on both Rising/Falling?

I'm using STM32Cube to generate the configuration. It creates the following code by default for MX_GPIO_Init in main.c: ...
user avatar
0 votes
1 answer
1k views

Reading Analog value from GPIO on STMF103RCT6

I am new to electronics, but have a fair bit of general programming experience, be gentle :) I have an existing PCB with an STMF103RCT6 where the available pins are GPIO D 0 and GPIO D 1. I would ...
user avatar
  • 103
1 vote
1 answer
1k views

Sonoff ESP8266 GPIO flickering

I've the following setup based on a Sonoff basic flashed with the Sonoff-Tasmota firmware. I've connected a wall switch (not push button) to the GPI14 and GND pin header of the Sonoff in order to be ...
user avatar
  • 177
3 votes
1 answer
10k views

STM32F4 HAL Library Button Interrupt

I'm trying to toggle built in LED with external interrupt instead of while loop. Probably I'm doing something wrong with EXTI functions. Can you help me to fix it? ...
user avatar
0 votes
1 answer
151 views

Use Ibutton to wake MCU and fire an interrupt

I'm working on a battery powered device which takes tree inputs, two buttons and one ibutton. Each input must be able to wake the MCU(Atmega1284p with arduino bootloader) from sleep. With the two ...
user avatar
8 votes
4 answers
5k views

Interrupt latency on a STM32F303 MCU

I’m working on a project that involves a STM32 MCU (on the STM32303C-EVAL board to be exact) that has to respond to an external interrupt. I want the reaction to the external interrupt to be as fast ...
user avatar
  • 581
4 votes
1 answer
7k views

How to distinguish between GPIO interrupts from the same interrupt handler?

I'm trying to interface a few modules to my STM32L476 board for which I need to enable two GPIO interrupts from the same port (portA, pin 5 and portA, pin 6), but the interrupt handler for these pins ...
user avatar
1 vote
2 answers
7k views

External interrupts in stm32f10x

I'm not quite sure how external interrupts will work with several peripherals on the same EXTI line. For instance, if I configured interrupt on line X and on the same line(of course another GPIO port)...
user avatar
-4 votes
2 answers
692 views

how to use interrupt service routine without interrupt.h file in avr? [closed]

In avr microcontroller, when using interrupt service routine ,you write the function : ISR(Int_Vect){ } To use this function you must include < avr/interrupt....
user avatar
1 vote
1 answer
512 views

AVR ATmega: can I trigger external interrupt by setting corresponding INTF flag bit?

I'm writing a C program for ATmega64A which has a INT0 ISR. This ISR should be executed in case of INT0 falling edge OR if the TIMER3 goes overflow. To avoid doubling the code I'd like to trigger ...
user avatar
0 votes
2 answers
135 views

8051 Interrupts Always On

I am using the at89lp2052 chip and I have a pulse generator generating a pulse once every reset pulse for port 3.3, this is the interrupt. While the signal is low, the chip has to be in the interrupt ...
user avatar
2 votes
0 answers
5k views

Difference between external event mode versus external interrupt mode for stm32 [duplicate]

I am configuring GPIOs for stm32f0 MCU using CubeMX. I encountered this "GPIO mode" setting. It seems that GPIO mode can be triggered by "External event mode" or "External interrupt mode". See image ...
user avatar
  • 1,117
3 votes
1 answer
1k views

AVR external interrupt triggering by the falling edge: for how long should I keep signal low to guarantee triggering?

The question header appeared to bee too long. I'm sorry for that. So I have a schematic generating a short LOW on INT0 pin of ATmega48PA. From the simulation I figured out that the LOW level will be ...
user avatar
0 votes
1 answer
1k views

MCU External Interrupt False Triggering

Above is the picture describing the configuration outside the MCU. Vin is 0 to 5V Peak to Peak square wave which may have 0 to 50 KHz frequency, or even higher. The MCU is supposed to handle ...
user avatar
  • 916
-1 votes
1 answer
507 views

Interrupt INT0 on PIC32MX110F016 not working

I am trying to put the INT0 working in a PIC32MX110F016 but it seems it never goes there. The INTO pin is Electrically powered with a pull-up resistor and when I press a tactile button it goes from ...
user avatar
  • 453
7 votes
2 answers
15k views

STM32F7 gets stuck in external interrupt callback function

i am working on a project to connect a camera to an STM32F7 Discovery board using the DCMI interface. The camera part works fine, but i have a strange problem with external interrupts from the ...
user avatar
  • 179
1 vote
2 answers
853 views

Why won't my phototransistor interrupt my microcontroller?

I bought a couple of phototransistors. They all have one lead shorter than the other. I assume that, like normal diodes, this means that the longer lead goes to V+ and the short end goes to GND. I ...
user avatar
0 votes
2 answers
2k views

stm32 external interrupt always pending

In my project based on stm32F107 i use four pins (PINE 12-15) to catch rising level on them. My problem: two pins always produce external interrupts but there are no rising level on them and other ...
user avatar
  • 41
1 vote
1 answer
557 views

Can't get AVR pin change interrupt to work

I'm trying to get a pin change interrupt on an Attiny2313 to work but i'm stuck, the interrupt is not triggering. I'm using the following code in main(): ...
user avatar
  • 199