Questions tagged [interrupt]

Use for questions related to interrupt signals and interrupt handling.

In computing, an interrupt is an asynchronous signal indicating the need for attention or a synchronous event in software indicating the need for a change in execution.

A hardware interrupt happens in response to some hardware event (say mouse movement) and causes the processor to save its state of execution and begin execution of an interrupt handler. At the same time, the possibility for this interrupt is disabled (to prevent it happening repeatedly) and must be re-enabled by software after the current interrupt has been serviced.

Interrupts are usually identified by number, and normally there is a system table somewhere in the OS that maps this number to the address of function that must service the interrupt.

Software interrupts as seen by the programmer do not differ much from the usual function calls. However they are usually implemented as specific instructions in the instruction set so may require less code to be called. Software interrupts are processed in a very similar way to the way hardware interrupts are processed, often using similar context switching and a shared interrupt table for both.

3261 questions
1
vote
1 answer

Interrupt Vector Handler Address

I am developing a simple OS, which needs a small interrupt vectors. I have been reading about the interrupt vectors in order to understand the concepts. Many of the resources refer to like this: [1…
Salma
  • 119
  • 3
  • 15
1
vote
1 answer

Stuck before delay in sub program

I have the task to program two timers, where I display something on my LCD-Display. I have a matrix keyboard where I can type in some basic things like numbers and some letters with this code: void keyboard_read() { digitalWrite(s1, LOW); …
BenZein
  • 13
  • 3
1
vote
1 answer

Systick interrupt function not getting called on stm32F103RB nucleo board

I am trying to implement a very simple program to call a function from systick interrupt on stm32f103rb board. The program runs fine but it never calls the interrupt function. I have gone through many fourms and experimented with different register…
Ravi
  • 251
  • 2
  • 3
  • 11
1
vote
0 answers

How to connect ov5642 camera module Pixel clock (8MHz) to imx6 quad

I am using i.mx6quad with debian jessie (3.14.60-fslc-imx6-sr). I want co connect ov5642 camera module with PARALLEL 8BIT interface (using 8gpios for data and 3 for control signals). I wrote a linux kernel module to service interrupts from control…
S.Seba
  • 121
  • 1
  • 11
1
vote
0 answers

Interrupt Handling 18F4550 PIC

I'm trying to get myself familiar with Interrupts when it comes to the 18F4550 PIC. At this point I've written a software that would light up an LED whenever the INT0 raises a flag. My code states that every 500 ms, INT0 will raise a flag and "is…
TheLebDev
  • 531
  • 6
  • 18
1
vote
1 answer

STM32F4xx Description of IRQ handlers in the stm32f4xx.c file

I am searching for the description of the IRQ-Handlers, which are defined in the stm32f4xx.c file. I can't find any description of them. For example: void WEAK CAN1_TX_IRQHandler(void); void WEAK CAN1_RX0_IRQHandler(void); void WEAK …
1
vote
1 answer

How to enable UART Interrupt in imx6q?

I am using I.MX6Q Sabre SD board. I am trying to build custom image with my own start script and ld script. The image is to be loaded with u-boot. I am trying to enable the UART receive interrupt for UART1. But it does not enter the Interrupt…
Ajeesh
  • 95
  • 2
  • 15
1
vote
0 answers

How can I interrupt a Watir script while keeping connectivity to the browser?

I have a script that uses Watir webdriver. However, it takes a long time and I need to stop it occasionally. I'd like to be able to interrupt it and handle the interrupt by performing a few tasks, such as logging out of the website I am on. Then, it…
nikojpapa
  • 660
  • 1
  • 8
  • 16
1
vote
2 answers

How to use function pointer inside arduino interrupt service routine to modify the ISR?

I'm trying to design a simple Arduino interrupt service routine that uses a function pointer in it so that it can effectively be modified from the main() function. The following is my code. #include #include #include…
1
vote
1 answer

flush printwriter on application close

So I have a printwriter that will occasionally write to a file ("occasionally" here meaning "periodically after a certain number of specified events"). Now if these events happen to be too few, the log file may end up empty when the application is…
User1291
  • 7,664
  • 8
  • 51
  • 108
1
vote
3 answers

Threads Waiting in Line Queue, Java

I'm In a sticky situation. I know this is almost as far as i can get for now, but what i want to do is actually to make an array of thread (or many thread) and accommodate number of threads in queue in the line, so for example i can accommodate 3…
HerlDerp
  • 47
  • 1
  • 1
  • 11
1
vote
0 answers

Why won't my program read from a USB interrupt endpoint

I am writing a libusb program to interact with a USB gamepad. I found it, opened it, detached from kernel, claimed interface, and when I try to usb_interrupt_read it returns -110 (resource temporarily unavailable) what is doing on? Also,…
pvinis
  • 4,059
  • 5
  • 39
  • 59
1
vote
0 answers

Why is UART TX interrupt not forwarded to GIC on OMAP4430

I'm developing a BSP for VxWorks and got stuck with the following problem: UART3 TX interrupt enabled and IIR shows PENDING THR interrupt, but the Cortex A-9 GIC doesn't recognize it. Therefore the VxWorks IO buffer gets full but the UART FIFO…
1
vote
1 answer

Set handler for GPIO state change using python signal module

I want to detect change in gpio input of raspberry pi and set handler using signal module of python. I am new to signal module and I can't understand how to use it. I am using this code now: import RPi.GPIO as GPIO import time from datetime import…
Himanshu mittal
  • 155
  • 5
  • 16
1
vote
1 answer

Check interrupted status from within wait()

When a thread t calls the wait() method on an object u, it goes to the WAITING state until another thread calls notify() on the same object u OR another thread calls the interrupt() method on the waiting thread t. Taking into account that a waiting…
Athanasios V.
  • 319
  • 1
  • 4
  • 14
1 2 3
99
100