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
67 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
175 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
192 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
117 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
57 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
70 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
125 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
66 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
127 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
27 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
123 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
394 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
79 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
0answers
66 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 ...
0
votes
1answer
76 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
104 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
60 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
78 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
91 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
666 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
185 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
53 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
135 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
195 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 ?
1
vote
1answer
89 views

Interrupts and Arduino EthernetShield

I'm in need of a little guidance in a project I'm working on. Basically, I'll be using two arduinos: The first one will have: 1 RF Link Receiver (linke here: ...
1
vote
2answers
402 views

Toggle OC1A, OC1B and OC1C using timer in CTC mode

For most AVR MCUs for each timer they got 3 dedicated pins (eg. OC1A, OC1B and OC1C) that can be toggled automatically when the counter reaches the so called top value in the corresponding 3 registers ...
2
votes
1answer
116 views

AVR Interrupt “Interference”

I'm currently working on receiving signals from an RC remote. I have used pins A8 to A15 on my Arduino Mega board. The ports and interrupts are setup with the help of this code: ...
4
votes
1answer
139 views

ATtiny45 pin change interrupt PB5?

On the ATTiny45 data sheets it states that PB5 can be used as a digital IO pin and I want to use it to trigger a pin change interrupt, my only issue is that it is also the reset pin and the moment I ...
0
votes
1answer
286 views

MikroC Hardware Interrupt

I am trying to program a PIC 16F876A using mikroC. I need the program to run when I push a button to a certain point, stop and wait till the button is pushed again before finishing. ...
3
votes
2answers
123 views

Sending a rapidly changing variable through SPI

I am trying to send the value of a counter running in timer1(32bit) to another chip, ideally through SPI. The timer triggers an interrupt every 1ms to increment the counter. Overall, the variable ...
0
votes
1answer
95 views

AVR Timer for PWM and interrupt?

I am developing a system that needs to drive 4 stepper motors through 4 dual H-bridges, for each phase of movement the AVR will receive SPI messages stating how many steps each motor should do and ...
1
vote
1answer
81 views

Atmega169PA interrupt source

Is there a simple way of determining which module causes an interrupt on an ATmega169PA? I have 3,000 units executing the same code and there were 10 units that executed my ISR(BADISR_vect) handler ...
1
vote
2answers
147 views

Why vectored interrupts are not possible?

vectored interrupts are not possible if a cpu has single interrupt request line and single interrupt grant line while multiple interrupting devices are possible . Is the above statement is correct ...
3
votes
1answer
321 views

Migrated from C18 to Hi-Tech C 18.. Interrupt not working

Here is my source code. This code is working perfectly fine in C18 Compiler. Not until I migrated to Hi Tech C. It does not enter the interrupt service routine. Moreover, it somehow corrupted sid ...
3
votes
1answer
1k views

PIC: how to set timer0 to give an interrupt at every 1 sec?

I am programming a PIC18F67K22 and I've set it to use a 16X4Mhz Internal RC oscillator with PLL enabled. -High level interrupt on TIMER0 overflow -I am using ...
0
votes
0answers
28 views

Trigger button press via mspdebug

I am experimenting with a MSP430 (inside a eZ430 Chronos), and I’d like to debug my code while the device is attached to the USB debug board. It seems that the buttons do not work while the device in ...
0
votes
1answer
685 views

AVR Atmega8 USART and ADC and PWM

I have created 2 different PWMs using timer 1 and 2 on ATmega8, that is used to control a linear motor. I'm using a hall effect sensor to detect changes in voltage as the linear motor moves left and ...
3
votes
1answer
177 views

Handling multiple interrupts dsPIC

I have been thinking about my design for a while but couldn't figure out a better way to deal with buffer overrun in multiple interrupts. A dsPIC33EP chip is connected to a TFT display, a UART ...
1
vote
1answer
88 views

Is USB a switched network?

I recently explained to someone why USB before 3.0 must use polling as opposed to interrupts here. Basically, from my understanding of I2C, USB is also a master slave architecture sharing a cheap 1 ...
6
votes
1answer
771 views

Correct usage of a pin change interrupt

I'm trying to use pin change interrupts to detect pressed buttons. Until now I have never worked with these kind of interrupts and there are some problems, so I want to make sure if this is the ...
1
vote
2answers
363 views

How do I detect 1-Wire peripherals without constant polling?

I'm looking to bit bang 1-Wire from an Atmega uC. My design calls for the Atmega (acting as Host) to detect the presence of a single 1-wire eeprom when it's physically connected to the uC. I don't ...
3
votes
1answer
189 views

Why UART Interrupts are not working properly in dsPIC?

Hello I am working with the UART1 module in a dsPIC33FJ128GP802 but it is not working as expected using XC16 compiler. Here is my initialization code and interrupt routine, the ...
2
votes
1answer
149 views

Why does DSPIC33F restarts when timer interrupt flag is addressed?

I have a peculiar problem with the timer on the DSPIC33F. I need to create a delay function and I have decided to use Timer 2 to count the number of instruction cycles. The function would enable the ...
3
votes
4answers
421 views

Is it possible to have multiple ISR routines for a single timer in micro controller?

I have doubt that micro controller will support multiple interrupt routines for a single timer. For example, single timer which interrupts at 5ms, 10ms, 1s etc. In my design I am using 3 timers: one ...
1
vote
3answers
156 views

What's The fundamental difference between interrupts and delay in embedded programming?

I'm new in embedded programming in C, just getting to understand coding. Is there a fundamental difference between an interrupt function and a delay function? I would greatly appreciate answers with ...
1
vote
1answer
660 views

What do the different interrupts in PCIe do? I referring to MSI, MSI-X and INTx

We have the following interrupts: MSI, MSI-X and INTx. What do these different type of interrupts do in PCIe? I only need a short description. I only know that in PCIe interrupts are generated as ...
3
votes
1answer
2k views

STM32 Interrupt Priority (preemption) Problems

I have another problem (High resolution system timer in STM32) which I have tracked down (mostly) to this issue, and have created a test case here for the simplest STM32 processor I could find (on the ...
2
votes
2answers
1k views

How many external interrupts has attiny85?

The title is quite self descriptive. I ask this question because I found contradicting information in the atmel web page. I need two external interrupts to control one rotary encoder. One interrupt ...
0
votes
3answers
408 views

5V Arduino interrupt from a 3.3V device

I m trying to trigger an Arduino Mega interrupt pin from a 3.3V sensor. This voltage doesn't seem to be enough, since Arduino recognizes the interrupt only when I move the wire (probably since it ...
0
votes
1answer
56 views

Value of the link register when interrupt occurs

and reading the exception and interrupt handling chapter of the ARM system design book. I have noted that link register is not always pointed to the next resume instruction. So it should be added or ...