Questions tagged [interrupt-handling]

The concept of handling system interrupts in an application or embedded system.

The concept of handling system interrupts in an application.

This tag may also refer to an operating-system-specific way of handling interrupts, or interrupt handling in a specific type of microcontroller or processor.

Use this tag only if you have reason to believe that your issue is directly related to interrupt handling. Do not use this tag if your application is using interrupt handling, but interrupt handling does not cause the issue your are asking about.

828 questions
-1
votes
1 answer

Linux, Using hardware interrupts on I/O to place data into user accessable area via Direct memory access

I am currently working with the BeagleBone Black using Ubuntu and I am trying to find some direction. I have created a c program that listens for SIGIO and runs a read() to get the data on that line. From my research on the internet and looking…
-1
votes
1 answer

Perl: How to add an interrupt handler so one can control a code executed by mpirun via system()?

We use a cluster with Perceus (warewulf) software to do some computing. This software package has wwmpirun program (a Perl script) to prepare a hostfile and execute mpirun: # ... system("$mpirun -hostfile $tmp_hostfile -np $mpirun_np @ARGV"); #…
Andrei
  • 10,918
  • 12
  • 76
  • 110
-1
votes
1 answer

Arduino AC Dimmer - serial communication lost due to interrupt

I 've made a pcb for a wireless ac light dimmer which is based on ATMega328p(Arduino Uno), 433 MHZ UART module for wireless communication, a TRIAC for ac load dimming and a MOC3020 for zero crossing detection for the arduino interrupt. Briefly, I…
-1
votes
2 answers

interrupt handler from scratch

I want to understand operating system development for AMD64 architecture from scratch and came to a point. However, I need to learn how to attach an interrupt handler. I haven't been able to find any good tutorial which describes that process step…
user2972185
  • 231
  • 3
  • 12
-1
votes
1 answer

void loop() with noInterrupts() in arduino does not behave expectedly

to describe my problem, i share a short code with arduino here: int index=0; void setup() { Serial.begin(9600); noInterrupts(); TCCR1A=0; // RESET TCCR1B=0; //RESET TCNT1=0; TCCR1B |= (1<
morshed005
  • 1
  • 1
  • 1
-1
votes
1 answer

How do I run a thread run() inside of the GUI's actionPerformed() method?

This is my first time doing multi-threading and I'm kind of stuck on how to make two threads, "Reader" thread and "Writer" thread execute only when the JButton "jbStart" is clicked? I can't put the run() method inside of the actionPerformed()…
TheAmazingKnight
  • 2,442
  • 9
  • 49
  • 77
-1
votes
1 answer

How to Register and UnRegister events for Interrupt

Its not on Standard C, I was trying to develop application in C. Here is the scenario:Its like a power mode implementation of a processor, so that when the processor, wakes from sleep, an interrupt will be generated, so that if i have an event…
sur
  • 345
  • 1
  • 3
  • 13
-2
votes
1 answer

Handling interrupt vectors in C

void interrupt (*isr8)(void); volatile int count; void interrupt MyISR8() { count++; isr8(); if (count > 20*18) // after 20 secs { setvect(8,isr8); exit(1); } } void main() { isr8 = getvect(8); …
-2
votes
1 answer

What happened when I clear the interrupt flag before entering the interrupt handler?

Let say an interrupt (interrupt 1) happens while I am in an ISR for another interrupt (interrupt 2) with the same or higher priority. Then before exiting the current ISR, I clear the interrupt flag of interrupt 1. Will the interrupt handler of…
cuckoo
  • 111
  • 2
  • 9
-2
votes
2 answers

Real mode interrupt works if I use call, doesn't work(won't execute) if I use INT

I was trying to add a system call to my REAL MODE operating system, and it will work if I write this: call [21h*4] however it just doesn't work if I try to call it with int 0x21 Here's the code I used to setup the system call: mov word…
-2
votes
1 answer

STM32F4 What will happen if both Preempt Priority and SubPriority of IRQa and IRQb are same?

Lets say (IRQa ,0,0) in line 1 (IRQb, 0, 0) in line 2 Which interrupt is serviced first ?
-2
votes
1 answer

Finding CPU efficiency using polling and interrupt method

I am confused by how to find the efficiency of a cpu given some information from a sample problem. I have been searching the web, but everything I can find is either too advanced for what I need, or doesn't relate exactly. Given that I cannot find…
huSh
  • 55
  • 1
  • 10
-2
votes
1 answer

(Linux Kernel) problems with interrupt handling

I read in an operating system book I'm using that interrupt handling may have some side effects on the running process but there were no more details about it. I thought about blocking all interrupts when a program is running. Can somenone tell me…
-2
votes
2 answers

android app closed on interruption

when my android app is running, i am getting a phone call, either i attend the call or cancel it my app gets closed in background. I want my app to be running in background. while i get the phone call in onStop method i am able to see the toast…
-2
votes
1 answer

Explanation of __do_IRQ function

I'm preparing a presentation on how the Linux kernel handles interrupts based on the book Understanding the Linux Kernel ny Bovet & Cesati. The cover says it covers Version 2.6. However, I can't quite figure out how the given __do_IRQ() function is…
DangerDan
  • 137
  • 1
  • 2
  • 14
1 2 3
55
56