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
21 views

Attiny10 not triggering timer overflow interrupt while simulation (Atmel Studio 6)

I have problems simulating the timer overflow in Atmel Studio 6. The code is for an Attiny10 and looks like below. As far as I know I set all the neccessary bits to enable the counter (which works in ...
2
votes
3answers
58 views

Interrupt question ARM?

I often see something like this void UART2_IRQHandler(void) __irq, and I wonder why __irq is used when declaring interrupt handler, is it required or handler can ...
0
votes
1answer
52 views

UART Interrupt won't work

I have a problem when trying to test send and receive lines on RS485 communication, anyone know what may cause a problem here? It works without interrupt but with interrupt won't work. I am working on ...
1
vote
1answer
23 views

Determine if button press triggered wakeup from STOP mode with STM32F0

I'm using an external interrupt triggered by a button press to wake up an STM32F030K6 from STOP mode. I was wondering if there's any way of distinguishing, within the interrupt handler, a button press ...
0
votes
2answers
41 views

intel nuc gpio access from ubuntu

I want to implement Interrupt Request via GPIO on Intel NUC d34010wkb. Are there any accessible GPIOs on board and how to access them? If there aren't any accessible GPIOs then what could be a ...
2
votes
4answers
259 views

Understanding interrupts and software button debounce

I'm quite new to AVR programming (avr-gcc). To react on button-press, I am using a PCINT ISR with the internal pull-up resistor enabled like this: ...
0
votes
1answer
32 views

Stop timer set new value and start again AVR (Interrupt)

I have AVR MCU. I am playing with timer now. What I need ? I have timer counting up with some frequency. In each interrupt I am incrementing variable, and somewhere I need to check value of this ...
8
votes
3answers
1k views

Software interrupt vs function

After about 3 years of working with MCUs still I don't know what's the use of Software interrupts? I have done several jobs with STM32 and I have never used the software interrupts. Indeed this is a ...
0
votes
0answers
29 views

Interbytetiming ,kwp2000,Fastinit

How to set interbyte delay, I should be able to get 25ms low and 25ms high and later the data bytes at 10400 baudrate, implementing kwp2000 protocol. When I send bytes ...
7
votes
4answers
633 views

Interrupt handling in microcontrollers and FSM example

Initial question I have a general question about the handling of interrupts in microcontrollers. I am using the MSP430, but I think the question may be extended to other uCs. I would like to know ...
0
votes
0answers
18 views

Expanding the Interrupt Structure of an 80286 System using a 74ALS244

Can we initiate a type 2 interrupt(or Non-Maskable Interrupt) even though Device 1 never issues an interrupt request? And how to do it? I think we should connect the interrupt request of type 2 ...
0
votes
3answers
60 views

How to get equal number of clock cycles before ISR on an AVR

While writing a time critical piece of code for an Attiny13, I figured I could use the rising edge of an input as a trigger to read in some self clocking data. However, the number of clock cycles ...
0
votes
1answer
43 views

STM32 and SDCard: space management

My task is to gather measurement from peripheries of STM32F4 on SDCard and I started reading about this. Could you double check if I'm correct: Single block memory on my SDCard is 512 bytes, so ...
1
vote
1answer
45 views

Testing the ADC interrupt on dsPIC33EP256MC506

I have a Microchip MCLV-2 development board intended for controlling small rating BLDC and PMSM. I am trying to develop a simple program to test the ADC interrupt. Basically, I want the program to ...
1
vote
0answers
37 views

PIC32 Input Capture Module

I'm trying to use the input capture module on a PIC32MX250F128B to measure the frequency of a square wave. The results I'm getting are both inconsistent and incorrect. All I'm trying to do here is ...
1
vote
1answer
81 views

Interrupt within an interrupt on a PIC18

I am working on code for an external interrupt from RB0 on a PIC18F4550. When an interrupt is detected on RB0, timer0 is activated. I then need to watch for timer0 overflowing. If it does, then the ...
2
votes
1answer
94 views

STM32: Timer interrupt works immediately

This is code for timer in my project on STM32F429: ...
-2
votes
0answers
14 views

Multiple interrupts [migrated]

I am trying to create an Arduino program that combines a pulse sensor (that measures the Beats Per Minutes) and a music shield. I am experiencing some difficulties with the coding because the pulse ...
0
votes
0answers
17 views

program stops in non maskable interrupt when initializing time interrupt

I am using RX62N microcontroller and am new to it. In this i was trying to blink the led using interrupt(compare match timer) but after the initialization it always goes to the non maskable interrupt ...
1
vote
1answer
48 views

PIC18f4550 Timer setup for 1sec Interrupt

I want to generate Interrupt(on PIC18f4550 using TIMER0) every 1 sec but by using the following code interrupt is generated after every 6 secs. ...
2
votes
1answer
34 views

How to use level-triggered interrupts with STM32F1xx?

I'm getting conflicting info on whether I can use level-triggered (as opposed to edge-triggered) interrupts with the STM32F1xx microcontroller. In ST's CMSIS-compliant Standard Peripheral Libraries, ...
2
votes
2answers
117 views

Is there stack available in PIC ISRs?

I'm trying to better understand the interaction between the foreground (interrupt) and background (while (1)) loops in a PIC microcontroller. Specifically, a ...
4
votes
3answers
97 views

interrupt using Timer0 on PIC18f

Im looking for a little help and advice on my code. Im using C18 in the MPLab environment, PIC18f4520 with Fosc @ 4MHz, and usnig timer0 in 16 bit mode to count to overflow, set the overflow bit and ...
5
votes
3answers
548 views

How to read whole data sent to USART with interrupt?

I am currently able to read byte by byte from USART with this code ...
2
votes
1answer
43 views

Managing addresses of interrupt service routines and functions of the program in cortex M0

I am working with nordic nRF51422 uC with cortex M0 core and I have to store data in Non-Volatile Memory but to do that properly I need information where exactly code of the program is stored in ...
0
votes
1answer
147 views

ADXL345 Arduino UNO Activity Inactivity interrupt

I have DATA_READY, Activity and Inactivity interrupts mapped from INT1 to INT0 on the arduino. DATA_READY works fine, the problem is Activity and Inactivity are always set to 0 in the INT_SOURCE ...
1
vote
1answer
156 views

ADXL345 Arduino UNO data_ready interrupt

I would like the sensor values to be updated each 10ms(100Hz) and then run the algorithm and repeat the same process. However, after timing the algorithm it is taking only 2ms, I think the data_ready ...
1
vote
1answer
134 views

Using an External interrupt from any pin PIC16F873A

I'm trying to use an interrupt, which will occur on a rising edge of a signal coming from my LSM303DLHC accelerometer. The accelerometer has a Data Ready (DRDY) signal that fires every time new data ...
-3
votes
1answer
108 views

flow meter that displays litres per hour [closed]

for the past 2 week iv just started my first ever project to make a c program on the software called mikroc where i would get pulses in from the flow meter and calculate the flow rate of how much ...
1
vote
1answer
70 views

Connecting Open-Drain inputs or outputs together with one resistor

I had a couple of quick questions. I am designing a board using 10 IO expanders which I'll use as inputs. Each has an !INT pin which is open drain and pulled high to 5v through a resistor. Can I ...
4
votes
1answer
102 views

AVR: Timer overflow flag in TIFR [duplicate]

I have a little question about the TOVn flag located in the TIFRn register. The datasheet says, if the ...
0
votes
1answer
84 views

PIC 16F877A interrupt handling [closed]

I am trying to write a simple code to receive and resend data using USART but the code is not working. Could someone give suggestions on possible flaws in the code? I am using USART at baud rate ...
1
vote
2answers
144 views

PIC24F UART Rx Interrupt not firing

I am currently trying to write code for a 48 channel DMX controlled dimmer using a PIC24FJ32GA002. Using a scope I have confirmed that there is a DMX signal reaching the Rx pin of the UART which has ...
1
vote
1answer
173 views

dsPIC33E comparator interrupt doesn't occur

I'm currently trying to get the comparator on dsPIC33EP256GP502 works, but get stuck in the comparator interrupt. Basically what i want to do is just using the comparator to compare two external ...
0
votes
0answers
58 views

Nested Vector Interrupt between USB interrupt and pin interrupt scheduling

I am making a software SPI for a sensor with stm32f072 microcontroller. I have to display it in PC and am using USB protocol for this. While sending data from sensor to USB is completely alright. But ...
7
votes
1answer
360 views

How does the call stack operated during an interrupt on AVR?

(Specific to the Arduino Uno...) What happens to the stack when an interrupt occurs on an AVR microcontroller and I call a function? Does the compiler inline the code? Does it cache the stack ...
2
votes
1answer
84 views

MCU pull down input push button with interrupt ESD issue

I have an MCU operated at 3 volt with an input pin that is floating by default. I have an external pull down circuit with a 10K resistor connected to the I/O pin. I also have it tied to VCC using a ...
0
votes
2answers
193 views

Is the nRF24L01 IRQ line open-collector?

I need to know whether the nRF24L01(+) has an open-collector IRQ output, or a full push-pull driver. The datasheet doesn't mention this fact. The reason is that I'm working on a circuit involving two ...
1
vote
1answer
91 views

Processing SPI transactions using interrupts

I'm wondering what the best way to handle SPI transactions when using interrupts is. I'm about to write my SPI interface code to an external flash part using a PIC. I'm going to use interrupts and ...
3
votes
1answer
197 views

STM32F0 Interrupt Debugging

Issue: I'm having an impossible time debugging why one of my interrupts isn't working. I'm trying to setup a hardware interrupt on PA3, but as soon as I initialize it, the interrupt triggers and then ...
0
votes
1answer
77 views

Context switching and systick handling on the STM32F series

I am using a STM32F407 board to build my own tiny RTOS and I have some questions. How can I define my own stack in different memory location, so I can have one stack for each queue of tasks? How do ...
0
votes
1answer
109 views

Second interrupt dos not work in MSP430

In this project i want to control dc motor with numeric keypad. when I push a button first time, it works properly but when i push a button second or third times it does not react and it stays ...
11
votes
4answers
729 views

How does the controller know when to jump to the ISR?

I am talking about things at the core level. As far as I understand, the controller core just executes instructions which are fetched from the memory (Fetch - Decode - Execute). When an Interrupt ...
3
votes
1answer
128 views

Setting port in main loop causes ISR to starve

The example code initializes an asynchronous timer that is fired every second sets two ports as outputs (PA4, PA6 - LEDs connected) the timer ISR toggles pin PA4 permanently sets pin PA6 to 1 in the ...
3
votes
2answers
57 views

Low power strategy for dealing with spontainious bit flips durring sleep on AVR 8-bit?

I am designing a ATTINY-based circuit that is intended to run unattended for very long periods of time on a very small battery. The device spends almost all of its time in deep sleep, and only wakes ...
0
votes
2answers
143 views

Help driving 9V circuit with a 5V RTC clock interrupt pin (active low)

I am using this RTC clock module (http://datasheets.maximintegrated.com/en/ds/DS3231.pdf). The DS3231 has alarm function that can be programmed twice a day. When the alarm goes off it makes the ...
3
votes
7answers
321 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
2answers
71 views

How to make the code run only on interrupt?

I have the following code which is supposed to count the number of interrupts on pin P3.2 (external interrupt) and display it on UART. But this code is doing exactly opposite of it i.e. it's running ...
3
votes
0answers
47 views

How to implement critical sections on ARM Cortex A9 for GCC, no OS? [duplicate]

I am porting some legacy code from an ARM926 core to CortexA9. This code is baremetal and does not include an OS or standard libraries, all custom. I am having a failure that appears to be related ...
5
votes
2answers
392 views

How to implement critical sections on ARM Cortex A9

I am porting some legacy code from an ARM926 core to CortexA9. This code is baremetal and does not include an OS or standard libraries, all custom. I am having a failure that appears to be related ...