Skip to main content

Questions tagged [interrupts]

A mechanism for the control of program flow in a computer. When interrupted a computer saves its present operational state and changes to executing code (interrupt handler) that is dependent upon which interrupt was generated. Interrupts can be either hardware- or software-sourced; software-sourced interrupts are called traps. It is an alternate mechanism to polling and is the basis around which most I/O, multitasking and control is implemented.

Filter by
Sorted by
Tagged with
2 votes
2 answers
165 views

Measuring the frequency of a square wave using rising edge interrupt

I am using a Texas Instruments C2000 board. On a GPIO I have attached a rising edge interrupt. A square wave of approximately 50 Hz is fed into this GPIO. This wave is from a comparator which ...
user412839's user avatar
1 vote
5 answers
131 views

Hardware interrupt for PC from GPIO signal

I'm looking for a fast method to synchronize between a GPIO signal (3.3V TTL) and a Python program. Currently, I'm using an Arduino with the following setup: The Arduino (Arduino Uno) works in 2MHz ...
דרור איזיק's user avatar
1 vote
1 answer
61 views

6522 Clearing Interrupt flag of shift register without restarting it

The 6522 Via Adapter (R6522 in my case) has an internal shift register used for communication. When shift a byte out in mode 5 (Shift out under T2 Control) an interrupt will occur after 8 pulsing and ...
jack07Code's user avatar
2 votes
1 answer
64 views

In AVR-GCC, I am trying to get an atmega328p to sleep and then wake on USART RX, but it locks up

My hardware is pretty straight forward. I have an ATMEGA328P hooked up with an LED on PB5, primarily to troubleshoot, and a wire that connects PD2 (INT0) to PD0 (RX), hoping to use INT0 to wake up the ...
Erik Vincent's user avatar
0 votes
1 answer
46 views

STM32L432KC Timer interrupt only triggers once

I am trying to send a message through UART based on Timer 6 interrupt on STM32L432KC microprocessor. The prescaler is set to 39999 and the auto reload is set to 19999 to get an interrupt every 10 ...
kefecik's user avatar
  • 11
0 votes
0 answers
42 views

Set interrupt pending in STM32H563ZI

I am new to embedded and am trying to learn about interrupts. I want to trigger SysTick (or any other) interrupt by setting the interrupt pending bit in some NVIC register to 1 (read it on the ...
gagan chopra's user avatar
1 vote
1 answer
109 views

For a UART communication, when do we enable/disable the peripheral wrt changing between transmitting and receiving mode?

I am working with SAML22 microcontroller and I am supposed to write the transmission code using the interrupt mode. I am confused in which case I am supposed to disable the peripheral. When changing ...
missedSemiColon's user avatar
0 votes
0 answers
31 views

N DMA Transfers based on a timer trigger using stm32F429I

I'm trying to use timer 8, stm32f429I, as advanced timer, to do N DMA transfers, that copies data from port D to memory and it does trigger on PC6 after triggering, an N DMA transfers should be shot I ...
Andre's user avatar
  • 67
-1 votes
1 answer
70 views

What is minimal frequency to detect such signal? [closed]

I develop simple signal generator, to debug other devices. It sends high logic signal which has length approximately time length 64 microseconds. If i connect some device which has processor frequency,...
sneiksus's user avatar
0 votes
0 answers
82 views

Two basic timers on an STM32 don't work simultaneously

I have an STM32L073RZ and it has TIM6,7 basic timers. I need a timer interrupt. TIM7 works fine as I want, but TIM6 doesn't. I tried different settings of prescaler and counter: same as TIM7, almost ...
sneiksus's user avatar
0 votes
1 answer
61 views

Difficulty defining interrupt in PIC18F14K50 [closed]

When I try to set the interrupt on change in PIC18F14K50, I can't get the interrupt to run once and turn off the flag. What could be the problem in working with this component? I am working with the ...
אסף באבי's user avatar
2 votes
0 answers
43 views

Mechanical USB interrupt [closed]

I'm quite the noob to USB controllers. I want to create a mechanical interrupt for USB power for a connected device. Long story. Car has a USB a connection (probably3.0) for the stereo/phone ...
Bob Barker's user avatar
0 votes
2 answers
86 views

SPI slave is sending one byte twice at a very specific time in data packet and causes corruption of the whole data packet

I am trying to communicate with a display device (master) which sends two type of data packets with 50 kHz clock. One data packet is 16 bytes and one is 32 bytes long. The data format is as follows: ...
Saqib Sohail's user avatar
1 vote
0 answers
60 views

Arduino Nano 33 IoT: PWM read jitter

I am trying to read two 2 kHz (500 μs period) PWM waves (from two Hall-effect sensors) at two digital pins of an Arduino Nano 33 IoT simultaneously with on-duty ranging from roughly 30 to 70%. One ...
rtx_q505's user avatar
0 votes
4 answers
352 views

Where should the interrupt vector table be placed in memory on STM32H7A3RGT6 chips?

According to the STM32H7 programming manual "On system reset, the vector table is at address 0x00000000." But at the same time the STM32H7A3 reference manual says in it's memory map ...
ultraturbonoob's user avatar
-1 votes
1 answer
108 views

SX1276 Interrupt Flags never clear, and digital IO lines never rise/fall

I am using an SX1276 chip from Paradisetronic. I adapted the Arduino RadioLib library to my board (Beaglebone Black Rev C). I noticed that the IRQ flags will not be cleared. According to the manual (...
lrdewaal's user avatar
1 vote
1 answer
293 views

Can I use a different channel of a timer at the same time?

I am using AVR128A for a project. It comes with two 16-bit timers (Timer 1 and Timer 3) and two 8-bit timers (Timer 0 and 2). Timer 1 has two channels whereas Timer 3 has three. I have all the timers ...
RK Eshat's user avatar
  • 153
1 vote
1 answer
122 views

I2C to USB converter with interrupt

I have a touch screen with I2C and interrupt output and I would like to connect this touch screen over a USB cable to a host controller. I know that it is possible to transfer interrupts on the USB ...
Stefan Wyss's user avatar
  • 7,725
1 vote
0 answers
71 views

Fall edge interrupt constantly triggering without any visible edge

I'm trying to implement a button-operated sleep mode toggle on a Sparkfun Artemis module. Button press one puts the Artemis to sleep, button press two wakes it up. I'm coding it in the Arduino IDE and ...
E.HP.S's user avatar
  • 359
1 vote
2 answers
420 views

PIC based MCU coding to make a speedometer

I am trying to make a speedometer cum odometer. I'm using a PIC based MCU. The speed I'm getting is as an analog input. (at 0 V, I get 0 km/h and at 18 V, I get 25 km/h). I can easily measure the ...
Siddharth Goel's user avatar
0 votes
1 answer
31 views

Pic32MZ interrupt signal to output pin set without CPU usage

I generate ADC digital comparator interrupts. I want to use this interrupt to trigger Input Capture module. To achive precise timing it will be better to directly trigger IC module with ADC digital ...
Ahmet Atcı's user avatar
0 votes
0 answers
107 views

Is it possible on STM32 to detect if an event triggered?

According to Stm32 Event and interrupts , STM32 events are mainly for controlling other peripherals. Is there a way on the MCU itself to detect if an event fired? That is, I don't need to interrupt ...
SRobertJames's user avatar
  • 1,307
0 votes
5 answers
402 views

Interrupts: does execution continue afterwards, and how long can they be?

I’ve been reading that interrupt callbacks must be very short. I have two questions: Imagine the while(1) loop inside the main. I guess this while(1) loops with clock frequency(?). Does this looping ...
GNZ's user avatar
  • 1,851
0 votes
0 answers
49 views

Experiencing Much Higher Data Rate than Timer Interrupt Settings While Reading IMU Data via I2C on Arduino

I am currently using an Arduino MKR ZERO to gather IMU data from three MKR IMU SHIELD boards(BNO055 IMU). I have utilized the <Adafruit_ZeroTimer.h> library to set a timer interrupt with a ...
JING's user avatar
  • 1
1 vote
2 answers
80 views

Not having a PORTAbits.RAx on ISR breaks my code

I'm working on a 433MHz RF reciver code for a PIC16F628A using a cheap 433MHz receiver. The catch here is that I'm only able to use RA4 for the RX, and because of that i had to use timer2 (because the ...
fpp's user avatar
  • 183
0 votes
1 answer
114 views

What is Interrupts in ESP32? [closed]

I am working with ESP32 WROOM32 Controller and AHT25 Temperature and Humidity sensor. I need to work with Interrupts in my device. Basically I don't know what is interrupts and How to use my device ...
Kuralmozhi's user avatar
0 votes
1 answer
66 views

Tsi107 PowerPC Host Bridge Vs Processor

I a confused regarding the difference between a powerPc host bridge and a processor. According to the host bridge datasheet, it can be programmed, and it has interrupt generation and handling, and ...
kam1212's user avatar
  • 671
0 votes
4 answers
204 views

Why is timer interrupt on PIC MCU not behaving as desired?

I am using PIC16F627A with PICKit 3. MPLAB X IDE v5.40 (and associated IPE) with XC8 compiler v2.41. PIC16F627A datasheet My intention is to flash TOWER_LED in ...
RickyBoy's user avatar
  • 169
2 votes
0 answers
72 views

ATmega - nested interrupt

I need to wait on PIN_CHANGE interrupt during pending TIMER interrupt. Is that right to do it like in code below? Is the interrupt still enabled during ...
Michal Podmanický's user avatar
0 votes
2 answers
140 views

Why doesn't polling require a context switch?

When we have a microproccessor and we must service the peripherals, the theory suggests that we can use either interrupts (context switch required) or polling (no context switch required.) On the ...
user1198483's user avatar
1 vote
2 answers
581 views

STM32F746 Disco: Why doesn't the RTC generate an alarm A interrupt?

I'm trying to generate an interrupt every 60 seconds using alarm A. I put a HAL_GPIO_Toggle instruction inside the interrupt HAL_RTC_AlarmAEventCallback to turn an LED on to see if it triggers but I ...
Rodo's user avatar
  • 1,140
0 votes
1 answer
248 views

How can I change SPI ports on an Arduino?

My end goal is to read information from an nRF24l01 module connected to my Arduino UNO R3 and generate an interrupt while doing that. I have read that for hardware interrupts, only pins D2 and D3 can ...
insipidintegrator's user avatar
0 votes
1 answer
126 views

On an embedded system, when you have a hardware interrupt, what happens to the process status word?

I have been taught that when an interrupt arrives, the following generally happens: The current instruction finishes. The interrupt is acknowledged. The hardware state(PSW) is stored . The PC is ...
Thomas Stokes's user avatar
1 vote
1 answer
71 views

MSP430G2553: ISR not triggering when I2CTX-Flag is set

So I need to get an I2C up and running. To do so the µC relies on ISR's to push data byte by byte onto the data-line. So far so good I programmed my functions and ISR's to transmit and receive data. I ...
Steve's user avatar
  • 21
0 votes
1 answer
142 views

IIM-42352 interrupt triggers multiple times, when condition is only met once

Currently I am working with esp32-s3-mini system which communicates with IIM-42352 accelerometer via SPI. My configurations are as follows: *FIFO mode- stream to FIFO *Packet size- 16 bytes *Interrupt ...
Dominykas's user avatar
  • 435
1 vote
3 answers
168 views

ATmega - How to decrease the time of jumping into PCINT ISR

I need to jump into PCINT ISR as fast as possible after signal appears on pin. Currently it takes about 20 clock cycles. I would like to decrease it to 10 cycles. I am using C. Is there a way? I found ...
user avatar
0 votes
0 answers
98 views

Issues reading data back from 24LC512 EEPROM via interrupt on MSP430F47187

I have interfaced MSP430F47187 with 24LC512 EEPROM. I am able to write to the EEPROM without any issue but reading the data from the EEPROM is problematic as the reading stops after a while. I have ...
GBJ's user avatar
  • 1
1 vote
1 answer
69 views

Cannot stop Microcontroller's Hardware Timer from running

I'm using an Atmel ATMega8 microcontroller to control a stepper motor. (Datasheet). Timer1 (a 16-bit hardware counter) is used in CTC mode to modulate an IO pin to provide the stepping signal to the ...
Wossname's user avatar
  • 656
0 votes
1 answer
503 views

Using Timer Interrupts Instead Of Delays in PIC Microcontroller

I have this task where I have to use timer interrupts intead of delays (for efficiency purposes) in this 7 segment display circuit with PIC18F4620. Here is the circuit: Display is common anode. I ...
Line Follower's user avatar
0 votes
1 answer
137 views

STM32 PWM timer interrupt latency

I have STM32F401 board (WeAct Black Pill V3.0, but the chip is labeled as STM32F401CCU6). My task is to read output of AD7606 (16 bit, simultaneous sampling, 8 channels, 200 kSPS max) in parallel mode ...
anandr's user avatar
  • 111
0 votes
1 answer
53 views

How to make a circuit which can give divided voltage to ADC and can send a trigger pulse to INT0 when I press a button?

I connected 4 buttons to the ADC module of AVR-ATMega328p with different resistor values, To know which button is pressed this ...
in.yssh's user avatar
  • 45
2 votes
0 answers
87 views

Nucleo32 with STM32F303K8 crashes when setting PA2 as Interrupt and triggering it

I am using a nucleo 32 for my project. I am using arduino and creating a TCP modbus and RTU modbus server. I have set the pins as folows: Description Type Arduino STM32 Pin Number Pulse input 1 ...
DriesVanDB's user avatar
0 votes
1 answer
69 views

Why are pulses not generated? [closed]

Task: Implement interrupt processing when the button is pressed, and the very start on the rising edge, the interrupt pin and to which the button is connected 11. Implement the processing of the ...
Good York's user avatar
0 votes
1 answer
69 views

STM32F405: WWDG interrupt occurs right after WWDG enabling

I've faced the problem with WWDG on STM32F405 (the same problem described here, but with no no solution): After enabling WWDG interrupt occurs immediately, despite the fact, that counter is far from ...
MatTab's user avatar
  • 11
1 vote
2 answers
996 views

How do I handle interrupts manualy by registers in STM32?

I've just started learning STM32, and I'm learning it at low (register) level without libraries. It is very easy to use GPIO: I #define memory addresses (like ...
Tyo Hoy's user avatar
  • 75
0 votes
0 answers
145 views

ADXL345 Interrupt doesn't work

I am using adxl345 with arduino. I am using sparkfun's library. I am using adxl345 with I2C. I can read adxl345 value without any problem and I can detect inactivity and activity. ...
Tryingtogetsome's user avatar
0 votes
1 answer
121 views

How can I use interrupts for more than 3 push buttons with EXTI line 4 to 15 interrupts?

I would like to make a spot welding device with pulse current from 0.02 to 10 s. For prototyping I'm using 3 push buttons; one to initiate the welding process and two for current control (current+ ...
Armel Tchuisseu's user avatar
-1 votes
1 answer
84 views

Which kinds of embedded platforms can be considered well-suited for acquiring a general taste of interrupts? [closed]

I'm an application programmer without much knowledge in low-level programming. I've set up a basic toolchain for assembly programming with the ATMega328P on an Arduino Uno R3 board. One of my aims is ...
Piovezan's user avatar
  • 133
1 vote
3 answers
124 views

Troubleshooting a rare glitch in a microcontroller timer ISR

I'm using an Atmel ATtiny85 microcontroller to implement a PID controller for a temperature regulation application. I have configured Timer1 to be a simple PWM generator using the following code: <...
Wossname's user avatar
  • 656
0 votes
1 answer
37 views

What's a good name for change detector initialisation? [closed]

Hi I'm trying to come up with a name for when a change in input is detected and an interrupt is issued due to that. So I want to "trap" a change in an input, but a trap already means a ...
Hard Deco's user avatar

1
2 3 4 5
17