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 dependant upon which interrupt was generated. Interrupts can be either Hardware sourced or software sourced. It is an alternate ...

learn more… | top users | synonyms (1)

0
votes
1answer
43 views

Clearing Flag Bits By Writing 1

Most of the interface devices have various flag bits (that can also raise interrupts if that functionality is provided) used to check the status of the device/operation. Usually they are cleared by ...
0
votes
1answer
24 views

NRF24L01+ IRQ Issue

I am testing the functionality of NRF24L01+ and for my purposes I have configured it as PTX, No Auto ACK. I am able to communicate with the chip just fine and able to configure all the registers ...
0
votes
0answers
37 views

Spurious interrupts using switches on a Raspberry Pi

I have two switches connected to GPIO pins on a raspberry pi. One side of each switch is wired to +3.3v. The other side is connected to an input pin via a 330 Ohm resistor, and each input pin has a ...
2
votes
2answers
71 views

Interrupt Management - Large AVR Projects

This is for the more experienced one's out there. I am currently involved with a large AVR project (using ATMega328) and it's getting confusing with respect to interrupts. The project involves ...
1
vote
1answer
50 views

AVR bootloader restarts on interrupt

For a quite while, I've been using an avr ATmega324PA controller and Atmel studio to write the programs. we wrote a TCP bootloader. It works fine without any interrupt. Later we did add an external ...
0
votes
1answer
55 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: ...
0
votes
0answers
14 views

uC MPC5646CRM Interrupt source address

I am using an Embedded development software that needs the address of ISR in order to perform Interrupt. I am using MPC5646CRM Micro-Controller. The datasheet tells about the calculation of address. ...
4
votes
1answer
107 views

The LED blink even when I don't press the button

I have written a program in Keil for Blink a LED via External GPIO Interrupt. Ok, know I want to say you that how configured it in STM32CubeMX: At first, I enabled and configured RCC as you can see ...
2
votes
1answer
42 views

avr-gcc timer overflow interrupt handler in inline assembly

My current project involves producing 200KHz PWM waveforms using timer 1 in fast PWM mode. I would like to increment a 16-bit counter every time the timer overflows (every 5μS) ...
3
votes
1answer
62 views

AVR USART Random Behaviour

I seem to be getting random character in my USART output with an ATMEGA8 uart.c ...
0
votes
1answer
97 views

Can not jump to Timer interrupt function in STM32F4 discoverty

I made a code to call Timer2 interrupt function like this : ...
3
votes
1answer
65 views

To Clear or not to clear ARM Cortex-M NVIC interrupt pending

Do I need to clear the pending status of an interrupt in the interrupt service routine of an ARM Cortex-M0 MCU? Could not find information on this on the web.
2
votes
1answer
191 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 ...
0
votes
1answer
45 views

AVR- state change of a pin to generate an interrupt [closed]

I need to produce external interrupt whenever there is a change in state of a pin. When the pin goes from high impedance state to ground or from ground to high impedance state, an interrupt must be ...
3
votes
2answers
91 views

Periodic timer (64Hz) with ARM processor and (embedded) Linux

I want to call a function 64 times per second with a ARM processor which is running linux. (ex: Rasberry Pi or Freescale i.mx6). Ideally, I don't want too much jitter. I want to perform a task ...
1
vote
1answer
80 views

Is there a way to avoid an infinite loop and reduce CPU power consumption when using PIC and timer0 interrupt?

I have made a simple program that runs on a P12F629 microcontroller, using MikroC. I need ...
4
votes
1answer
27 views

How can I achieve a third interrupt priority level on 8052?

Most standard 8052 platforms allow the user to configure interrupts to be of two possible priorities: higher, during which any pending interrupt must wait, and lower, which can be interrupted by the ...
1
vote
1answer
43 views

How to detect which timer interrut called callback when using ASF?

I have a general function, which gets passed among others a timer. It initializes the timer using common callback function: ...
2
votes
1answer
59 views

Arduino: Generating time critical signals with interrupts

I have some problems to fully understand how interrupts on e.g. Arduinos/AVR are used in practice. Lets assume I want to generate a time-critical signal like PWM and at the same time be able to ...
4
votes
2answers
529 views

ISR - to flag or not to flag?

From what I read on the internet we should respond to interrupts as quickly as possible, when programming microcontrollers; and that flags should be avoided because they tend to compound over time. ...
1
vote
1answer
227 views

Global variable in AVR interrupt routine

I am writing a code with interrupt routine. For debugging the code am using UART. So, here is the snippet: ...
0
votes
0answers
82 views

Cortex M3 GPIO Interrupt won't trigger

I have set a pin on a Cortex M3 to act as an rising-edge triggered interrupt and it's not firing for some reason. What it should do is receive a 1Hz pulse, trigger an interrupt and start a 12.8Khz ...
3
votes
1answer
135 views

Multiple simultaneous Interrupts PIC 16F88

I'm new to PIC microcontrollers ( I have some experience with Arduino but wanted some "real" experience =P ). I got myself a PIC16F88 and I now intend to make a simple robots who's 2 DC motors are ...
1
vote
1answer
422 views

AVR SPI slave with interrupt

For a project I want to have two microcontrollers talk to each other via an SPI interface. I wrote the following code for the slave: ...
0
votes
0answers
59 views

Application of intel 8253 timer

8253 timer works in 6 different modes namely interrupt on terminal count, hardware-retriggerable one shot, rate generator, square wave generator, software triggered strobe and hardware triggered ...
1
vote
1answer
98 views

Two interrupts for a single operation

I am using infineon XC866-1FR controller for my project. For the motor control, I am in need of exciting the coil by the combination of two external interrupts(external interrupt 1 && external ...
0
votes
1answer
120 views

Netduino Interrupts Affected By PWM - Diagnosis of Issue

I've got a funny problem with interrupts and PWM signals that's causing false interrupts to trigger. What exactly is happening is that I'm using a hardware debounced quadrature rotary encoder. The ...
5
votes
2answers
384 views

Attiny85 hardware interrupt unreliable, 433 MHz remote

SCROLL DOWN TO SEE THE SOLUTION (UPDATE II) ORIGINAL POST: I am currently building a 433MHz remote with two buttons. The remote is controlled by an Attiny85v(8MHz). Sadly it does not work very ...
3
votes
4answers
217 views

Available Guidelines for Interrupt Driven Processing

Are there any available guidelines for the amount of code to have in a critical section of interrupt driven processing? My personal rule of thumb is that the critical portion, (i.e. that between ...
0
votes
3answers
201 views

Good flag practices - energia msp430

I'm making a program for the msp430 using energia launchpad, the first code that I had is the following: ...
1
vote
1answer
96 views

Identification of hardware interrupts in microprocessor 8085

I am familiar with the RIM and SIM instructions that are available in the instruction set of microprocessor 8085. And thus I can enable RST 7.5 and RST 6.5 interrupts using SIM instruction and EI ...
1
vote
1answer
80 views

Things to do with ISR

I have an ISR that increments a counter every 5ms if the switch is pressed. If the counter becomes 200 then do Reset. I plan to add more functions to be called from the counter value. After a few ...
1
vote
1answer
163 views

Interrupt Service Routines and I2c together

I would like to ask a question that has been on my head for a while I have done coding small ISR's for pic and AVR controllers and i have successfully tested them on board.And i have just learned ...
0
votes
1answer
86 views

Saving the last value used in an ISR

I am using a level-triggered interrupt. During the interrupt OCR1A increases and the servo moves. I want to save each value of OCR1A when the pin returns to its previous level. So far I have only been ...
3
votes
2answers
164 views

How can I wake up an ATtiny84 microcontroller at specific time of the day?

I am trying to create an alarm that wakes up at a certain time and does a series of instructions. To set the times that it wakes up, I am going to use the headphone of an Android device to send ...
0
votes
1answer
41 views

LM393N with hysteresis and potentiometer

I am having a bit of a problem with this next circuit: The problem is, when there is 0V at the base of Q1 and when the potentiometer is set close to 100 kOhm. Because of the hysteresis set on LM393N, ...
2
votes
1answer
151 views

Task handling in firmware

I would like to get an advice on handling tasks in a firmware. I have 3 major tasks to do: Scanning for whether a switch is being pressed or not. Data transmission via SPI - To EEPROM Data ...
2
votes
1answer
859 views

STM32 Rotary Encoder with Hardware Interrupts

I'm trying to get a rotary encoder working on my STM32. I have channel A & B being pulled up to 3V and debounced with 1uF capacitors. The board has channel A & B connected to PA11 & ...
0
votes
0answers
176 views

TXE bit won't clear UART ARM M0

I'm trying to get UART working on a STM32F0 part and can't figure out the interrupts. According to the reference manual ...
0
votes
1answer
160 views

STM32F207 I2C errors

I am learning embedded development on the STM3220G-EVAL board with the STM32F207 microcontroller. I am testing the I2C interface by interfacing the two I2C2 and I2C3 modules on the same chip and ...
1
vote
1answer
114 views

Measuring rotations problem with motor encoder

I have this motor encoder mounted on the back of a 120RPM motor which has a gearing of 298:1 ratio. The back shaft is directly from the motor, not through any gears. Im using an encoder disk that has ...
3
votes
2answers
152 views

Preemptive Interrupts and “Context Switching”

In RTOS, when a Higher Priority task becomes Ready to Run, it stops or preempts currently running (Lower Priority) task and start executing itself. Before switching tasks, RTOS saves required data ...
0
votes
1answer
78 views

SmartFusion debug problems

I am using an Actel SmartFusion system-on-a-chip, running a bare-board application that uses the MSS with SPI, ACE and GPIO. (I am developing in Libero IDE 11.1 and SoftConsole.) My program ...
-1
votes
2answers
109 views

What happens when the same interrupt is caused during an ISR? [closed]

To handle an interrupt the processor jumps to an interrupt service routine (ISR). If this ISR generates the same interrupt then this can result in: a) program error b) hardware error c) stack ...
3
votes
2answers
107 views

How interrupts handle does work on a physical layer

I want to understand how HW IRQ does work on a physical layer. I ask my question considering a specific example. As known after a packet coming to a network adapter a hardware interrupt is signalling. ...
1
vote
1answer
2k views

Use AVR Timer1 for Compare Interrupt AND PWM at same time

Is it possible to use Timer1 on an ATMega to generate a compare interrupt on OCR1A and PWM output on OCR1B? I've tried with similar to the following, but neither work with everything I've tried. ...
4
votes
2answers
337 views

MSP430: how to let the timer ISR interrupt the Serial RX ISR?

I am working on a MSP430 connected to the PC via serial. The MSP430 also communicates with some other boards using a bit-banged serial interface. I'm using the timer peripheral to bit bang the serial, ...
2
votes
2answers
65 views

Use interrupt to determine a change in IR detector

I have build a schematic to read a counter. The counter has a white point at one of the digits, that I detect with a IR transmitter-receiver. The voltage at the receiver changes from 2.2 to 2.5 volts ...
1
vote
1answer
295 views

dsPIC33 Simple External Interrupt problem

This will be laughably easy for someone who has worked with the dsPIC33 and XC16 compiler, but has already cost me a day. Hopefully someone can save me any more wasted time! Could someone please tell ...
0
votes
1answer
293 views

Inverting interrupt edge (STM32 wake up pin)

A sleeping STM32 can be woken up by a rising edge on its wake up pin. But if the IC on the other end of the line only interrupts as falling edge, is it possible to invert it somehow ?