All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

digispark + pcf8563 RTC interrupt not working

I have PCF8563 WAVESHARE board connected to DIGISPARK via I2C. Here is the code: ...
0
votes
0answers
64 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 ...
0
votes
2answers
653 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 ...
1
vote
1answer
100 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 ...
2
votes
0answers
76 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
348 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 ...
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? ...
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)...
1
vote
1answer
325 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 ...
3
votes
1answer
783 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
898 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
367 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
11k 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 ...
1
vote
2answers
520 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 ...
1
vote
1answer
395 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
64 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
499 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
242 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 ...
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: ...
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 ...