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.

68 questions
8
votes
4 answers

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 as possible. I have modified a standard peripheral…
K.R.
  • 591
  • 7
  • 15
7
votes
2 answers

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 onboard push button. I enable external interrupts for…
7
votes
1 answer

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 PA0 for external interrupt and PB1 as output. For…
Roh
  • 4,598
  • 6
  • 41
  • 86
4
votes
5 answers

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 similar before and know this works. However,…
4
votes
1 answer

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 are handled by an external line common for pins 5…
Arun Joe Cheriyan
  • 707
  • 2
  • 8
  • 22
3
votes
1 answer

Why don’t external boards need a resistor?

I’ve been trying to learn how to use my MPU6050 chip. According to all of the tutorials/diagrams I’ve seen (one pictured below,) I don’t need to put a resistor in front of the MPU6050. Why is that? Aren’t resistors supposed to limit current from…
3
votes
2 answers

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 relay is triggered while the corresponding limit…
Mathix420
  • 131
  • 4
3
votes
1 answer

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? Here is my code: #include "stm32f4xx.h" #include "stm32f4xx_hal.h" void…
3
votes
1 answer

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 there for about 800 ns. I plan to clock the AVR…
Roman Matveev
  • 2,942
  • 7
  • 32
  • 75
3
votes
7 answers

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 there any microcontrollers where a combination of…
fadedbee
  • 994
  • 9
  • 24
2
votes
3 answers

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 interrupt channel" (EXTI0 to EXTI16), I can choose exactly…
Sandro
  • 5,519
  • 6
  • 24
2
votes
1 answer

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?
Nikeboy
  • 63
  • 5
2
votes
0 answers

stm32 external interrupt

I am working with a stm32f103 and am trying to get the external interrupt done. My code is: void delay(unsigned int counts); //--------------------------------------------------------------------------------------- int main(int argc, char*…
Lukas_M94
  • 41
  • 1
  • 4
2
votes
0 answers

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. I am clearing the bit in my code. The…
Chris
  • 121
  • 1
2
votes
0 answers

Difference between external event mode versus external interrupt mode for stm32

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 below. What is the difference between "External…
user768421
  • 1,187
  • 6
  • 16
  • 28
1
2 3 4 5