We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
1answer
101 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 ...
1
vote
0answers
38 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 ...
0
votes
0answers
31 views

Partially functioning code of stm32f407vg board to toggle leds using a push button as an external interrupt

I have written a simple code using CMSIS library functions of Stm32 to blink one built-in led during normal operation and another one when an external interrupt is generated by an interfaced push ...
0
votes
2answers
1k 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 ...
0
votes
0answers
37 views

digispark + pcf8563 RTC interrupt not working

I have PCF8563 WAVESHARE board connected to DIGISPARK via I2C. Here is the code: ...
0
votes
0answers
67 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 ...
1
vote
1answer
789 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 ...
0
votes
0answers
33 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’ ...
2
votes
0answers
1k views

stm32 external interrupt

I am working with a stm32f103 and am trying to get the external interrupt done. My code is: ...
0
votes
1answer
1k 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: ...
2
votes
0answers
79 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. ...
0
votes
3answers
359 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 ...
0
votes
1answer
915 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 ...
3
votes
1answer
7k 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? ...
0
votes
1answer
112 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 ...
8
votes
4answers
3k 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 ...
3
votes
1answer
4k 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 ...
1
vote
2answers
6k 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)...
-4
votes
2answers
457 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....
1
vote
1answer
345 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 ...
0
votes
2answers
109 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 ...
0
votes
0answers
2k 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 ...
3
votes
1answer
803 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 ...
0
votes
1answer
920 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 ...
-1
votes
1answer
385 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 ...
7
votes
2answers
12k 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 ...
7
votes
1answer
4k views

LED blinks even when I don't press the button

I have written a program in Keil that blinks a LED via External GPIO Interrupt. Here is how I have configured it in STM32CubeMX: At first, I enabled and configured RCC as you can see and configured ...
1
vote
2answers
545 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 ...
0
votes
2answers
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 ...
1
vote
1answer
405 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(): ...
0
votes
1answer
65 views

ATtiny861 pin change interrupt on PA.2: error in datasheet?

I faced with some confusion in subject datasheet: In one section PA.2 should be masking by PCIE1 bit as PA.2 is PCINT2 input and it should be within PCINT[7:0] and PCINT[15:12] range: On the other ...
1
vote
1answer
1k views

Interrupt on the XMEGA

I have 3 buttons connected to PIN1, PIN3, PIN5 of PORTA of an XMEGA. If pushed they deliver a falling edge. I'm try to generate interrupt using those buttons, I started with one, here is what I ...
3
votes
7answers
503 views

MCUs which can trigger an interrupt on a port mask

(Hobby and learning, not a professional question.) I'm designing a circuit which uses a CPLD to turn a half-dozen inputs into a single output which triggers an interrupt in a microcontroller. Are ...
0
votes
1answer
248 views

Unexplained behavior pic port b on change interrupt

I am trying to configure the port b interrupt on change interrupts to work with a program I am writing with MC XC8 demo version. I am using a PIC16F628A I am using this code to initialize the pic for ...
0
votes
1answer
1k views

Why do we need Frequency Divider for external clock (GPS reference signal) for Frequency Counter?

Our senior project is to build a precision frequency counter which is using GPS signal as a reference. I looked up somebody else project online and found that I have to divide reference signal (...
0
votes
1answer
1k views

Why doesn't the STM32f0 go to the interrupt routine? (in the debugger)

I'm trying to execute my project in the debugger but it doesn't go to the interrupt routine. the project is correct and it works without the debugger nicely. How do I use it? Ok, here we go! at ...
1
vote
1answer
3k views

The GPIO External Interrupt doesn't work

I have written this program for GPIO External Interrupt but it doesn't work. look at the program: ...