Questions tagged [interrupts]

A mechanism for the control of program flow in a computer. When interrupted a computer saves it's present operational state and changes to execution of code that is dependent upon which interrupt was generated. Interrupts can be either hardware-sourced 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
3answers
67 views

getting interrupt from ignition circuit

This transistor ignition circuit for a model petrol engine is built from a proprietary kit. I have made it up and it works. Now I want to take a signal from it as an external interrupt to an Arduino ...
0
votes
0answers
29 views

STM32G474 HAL Interrupt problem

I've just started learning STM32. I want to make a simple code that uses UART in interrupt mode. Unfortunately I can't make it work. I want an interruption occur when the microcontroller receives a ...
1
vote
1answer
350 views

PIC32MX UART Interrupt Not working

I am writing a program to send data from one microcontroller and receive the data using on another PIC32 microcontroller and display the received data on LCD. I am using UART2 of both PIC32MX to send ...
1
vote
1answer
53 views

Is this the correct truth table to determine whether or not to execute an interrupt in a RISC V system?

I'm working on implementing the privileged RISC V ISA, which can be found here. I'm looking at the bottom of page 20, and the interrupt conditions are stated very confusingly: Global interrupt-...
0
votes
1answer
238 views

Why is MSI and MSI-X enabling at the same time prohibited?

The PCIe spec says that only one of MSI or MSI-X can be enabled. Else system behavior is undefined. What is the reason behind this? What is the problem if both are enabled for a PCIe function? ...
0
votes
1answer
167 views

timer input capture for really low frequencies

How low of a frequency can a timer be used to measure an external signal in "input capture" mode? If I need to measure something that has a frequency of say 1hz - 2hz... or even slower for that ...
0
votes
1answer
127 views

Arduino to Attiny841 with ATTinyCore — pins not working

I have code that works using Arduino. Because I wanted to size down the project, I replaced it with an Attiny841. Process: I soldered the 841 on an adapter and checked all pins using a multimeter ...
0
votes
1answer
334 views

DMA, Interrupt and UART connection in STM32 for detecting chararcters

I am trying to make a project and am planning to use DMA for my UART from one STM32 to another STM32. Here are some details of what am I using: Chip: STM32F107RB debugger and programmer: Atollic for ...
0
votes
0answers
19 views

Multiple Sensor Interrupt Combine?

I built an IoT device that sleeps and wake with Texas TPL5111. (Timed wake system with external wakeup option). Also i have external sensors and want to awake system with sensor interrupts. 2 wan on ...
1
vote
0answers
58 views

TXE Interrupt is not generated ARM STM32F103C6

I'm trying to write a class to have the possibility of sending data using UART by TXE (TDR is empty) Interrupt. The class uses only USART1. The class has a ring data buffer to send. I have written a ...
0
votes
2answers
278 views

What is the difference between IQRn 0 and IRQn 1?

I am using STM32CubeMX to program my chip. Essentially I have a timer that i am trying to set to one ms, and every time that timer reaches a ms I want to toggle a pin. My question is that does it ...
0
votes
1answer
213 views

Using UDRIE0 interrupt in ATmega168

I only have some limited knowledge in interrupts. This is what I understand about following ISR functions ISR(USART_RX_vect) will get called when a new data ...
0
votes
2answers
92 views

PIC18F Rotary Encoder Code Help XC8

I'm trying to interface a rotary encoder with my pic18f4550. Just trying to get it to increase/decrease the variable output and then display that value through the ...
0
votes
0answers
30 views

AVR Interrupt: LED kept blinking and won't stop

Lately I realize I am still a newbie, when you can't blink a freaking LED properly. It's kinda sad. I try to simplify this LED code to the simplest form possible, and it still won't work properly. ...
7
votes
3answers
15k views

What's the actual difference between edge sensitive and level sensitive interrupts

Currently I'm working on a C8051F120 MCU where external interrupts can be defined in two ways: Edge sensitive (falling) Level sensitive (low-level) In level-sensitive interrupts as soon as the MCU ...
0
votes
0answers
41 views

Using interrupts with W65C02 and W65C22

I’m trying to use the interrupts of the 6502 and 6522. I want to read the value of PORTA whenever the “READY” line I have is HIGH. I think I understood that I have to put the “READY” line on CA1 and ...
1
vote
3answers
83 views

How to leverage CAN bus Mailboxes in my embedded systems?

I don't understand how to leverage CAN bus Mailboxes in my embedded systems. I think I don't use them properly because I don't understand the problem they are trying to solve. Here's a simple example ...
0
votes
1answer
27 views

How are these Data Buffering Methods same or different from each other?

I am trying to understand the operation of a Serial Bus protocol converter chip. It connects with the serial bus on one side and on the other side it provides its data on the MCU host interface. ...
0
votes
1answer
68 views

Interrupts and Assembly language

How to use the RBO external interrupt to read PORTB (RB4 to ...
1
vote
1answer
36 views

Where is Interrupt Vector Table stored in ATmega32A?

Given that Atmega32A has three types of memory : 1) SRAM. 2) Flash (Program memory). 3)EEPROM. In which section the Interrupt Vector Table is stored ?
1
vote
1answer
2k views

stm32f0 uart1 rx interrupt

I have stm32f030f4p6 Microcontroller and using iar Compiler , library cmsis , After confige Uart1 the RXNE , FE and CMF bits return 1 whereas not recieve or send was done if I dont set RXNE bit to 0 ...
0
votes
0answers
50 views

Atmel SAM3X / SAM3A, handle interrupts from Parallel Input/Output Controller (Peripherals)

I want to enable the PA8 pin in a processor (Atmel SAM3X / SAM3A). I have set: PIOA_MDER[7]=0 PIOA_MDDR[7]=0 PIO_OER[7]=0 PIO_ODR[7]=1 so that the tri-state ...
1
vote
0answers
26 views

What is the difference between TIMx_IRQHandler and HAL_TIM_PeriodElapsedCallback function?

I am a beginner, I am using the stm32F103 interrupt function TIM1_IRQHandler function to count, but HAL_TIM_PerodElapsedCallback can also achieve accurate counting, which one should I choose to use? ...
1
vote
0answers
33 views

Dealing with flash erase time

I am trying to use an STM32 micro-controller as a USB mass storage device using an AT25SF041 flash chip for the memory. I know flash integrity degrades over time but its only going to have a file ...
0
votes
1answer
24 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 ...
0
votes
0answers
17 views

ADC Triggering with TIM3 TRGO running in PWM mode in STM32F446

I have been trying to trigger an ADC using TIM6 with TRGO signal in STM32F446RE board. I am unable to do it. I have used CubeMX initialization and have been trying to use the HAL libraries for ...
17
votes
2answers
31k views

Stm32 Event and interrupts

I started studying interrupts on stm32 specifically the stm32f4 discovery board. i found this example in which you have to press the button to start the interrupt and push it again to stop it. In ...
1
vote
1answer
626 views

How to reliably update duty cycle to PWM on arduino due with SAM3XE

I have arduino due, which has Atmel SAM3XE MCU. I want to generate PWM signal and I want to change duty cycle every cycle of PWM reliably so i can generate output signal such as sine on output pin. ...
0
votes
1answer
47 views

Error interrupt funcition with MPLAB X v5.30 XC8

I am programming a pic18f4550. When I try to compile the project I get two errors. According to what the console indicates, they are caused by the following function. ...
10
votes
4answers
19k views

STM32: Timer interrupt works immediately

This is code for timer in my project on STM32F429: ...
1
vote
1answer
42 views

How to achieve an interrupt frequency of 100 kHz on SAM E70?

Setup: ATMEL Studio 7, ASF3.47.0, SAME70 XPlained eval board. In the minimum working example shown below, I use the onboard LED for visualizing if the timer and interrupt enabling have executed. <...
1
vote
1answer
218 views

STM8 TIM2 interrupt not taking place. What am I missing?

I've just started using STM8 microcontrollers, specifically the STM8S003F3P6 chip, in my own custom test board. The board works and I am able to blink an LED on PA3 without using an interrupt. However,...
0
votes
0answers
37 views

Hardfault or otherwise wonky timer behaviour - STM32 Cortex M7

I am using the line marked by the arrow in the code below as such and it works fine. If I uncomment // HAL_TIM_IRQHandler(&htim2); there is one hit on the ...
0
votes
2answers
83 views

AVR MCU Interrupt toggle a LED problem with 100 extra toggle

I am playing around with an AVR MCU. I am having trouble toggling a LED. It's being toggled faster than I have expected. It should be toggling at 500hz, but it's up to 600hz and not very stable. I ...
0
votes
0answers
22 views

I2S DMA interrupt gets fired but no data is available

I'm trying to read the I2S stream between a Raspberry Pi and a Hifiberry DAC with a STM32G071 and was able to implement the I2S DMA with the associated interrupt (or at least I think so). But ...
1
vote
1answer
113 views

Are there any ways to improve this ISR - STM32F401RE?

I am currently coding a flight controller from scratch and am currently working on the module to decode the incoming PPM signal. Keeping in mind that this is an ISR, I've limited its functionality ...
0
votes
1answer
45 views

Interrupts are firing when touching ground with metallic things

I'm making a circuit on a breadboard (before SMD design) for a battery-powered device. When USB is connected to any wall-adapter, the device wakes up when touching any ground wire on the breadboard ...
1
vote
1answer
50 views

Checking interrupt flags for UART data receiving and transmitting on STM32

I'm trying to develop a UART receiver/transmitter for an academic project. For now i developed the UART continuous data receiving part and it works quite well. Here is the code: Interrupt file: ...
0
votes
0answers
28 views

How can I add a SVCall handler to the Vector Table of a CC2652 device

According to the CC26xx Driver Library documentation there are two options for adding interrupt handlers, one dynamically and one statically. The static registration of handlers seems to be the ...
0
votes
1answer
28 views

in AVR, if i use .ORG 0 with the main program , where is the interrupt vector table and .INCLUDE file data go?

I am studying AVR from the book "the AVR microcontroller and Embedded system by Mohamed mazidi" and "atmega32A data sheet" in the book, it puts samples of cade which start like this ...
4
votes
2answers
409 views

Set up an ADC ISR, but every time an ADC Interrupt is called it goes to isr_trap.asm instead

I am trying to do a program with my MSP430FR6989 from Texas Instruments. I send an Analogue signal to my ADC module in the uC, which converts it to a digital signal. If the value is greater than 0x800 ...
0
votes
2answers
62 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 "...
0
votes
1answer
60 views

Which ASCII character could interrupt communication?

Which ASCII character could interrupt or terminate or otherwise disturb communication on the reciever part. Not including acknowledgment, handshakes, identification or other programmed protocols. ...
1
vote
1answer
356 views

Problem with interrupt-based timer on STM32F411

I was following this online tutorial and cannot get the interrupt-based timer to work. I know the timer is running because if I uncomment the five lines in the main loop, I get a nice square wave ...
0
votes
2answers
71 views

Verilog design question: How to generate internal interrupts without delay?

I made a single-cycle RISC CPU in Verilog, and it works well on a real FPGA I have. It has multiple components that communicate over an internal bus. One of these components is a programmable timer, ...
2
votes
1answer
228 views

How to reduce the effect of electric lighter noise on Micro controller?

I am using a kind of electric lighter in my circuit in order to turn the fire on. And also i have used some sensors that alert in danger by sending a signal to the MCU (ATmega 32) interrupt. The ...
0
votes
1answer
130 views

MCP23S17 Interrupt Issue

I am having issues with interrupt setup on MCP23S17. Not able to set up the INTB line properly. I have an external 10K pull up resistor connected to the line and 3 input buttons connected to GPB0 - ...
0
votes
0answers
50 views

Unexpected result reading pin on clock rising interrupt

What I try to achieve is a simple one-way communication between two MCU's (ATTiny85's to be exact) at 16Mhz. This is just a start, to figure out it can be useful, very basic and needs to be very basic....
1
vote
1answer
42 views

PIC 18F2550 External Interrupt Problem

I am working on a basic PIC based circuit to improve myself. What I want to do is to make LED's on one by one, every time I press the push button. I am using external interrupt to do this.However, I ...

1
2 3 4 5
14