All Questions
Tagged with interrupt-handling or interrupt
4,702 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
44
views
ESP32S3 Timer with IRQ, program flow control with WDT activated (arduino)
Trying to control my program time flow with a IRQ, all supervised from a WDT (watchdog) setted at 1 min, if program doesn't reset the WDT, system resets.
After boot (NVS and FS data fetching), a TIMER ...
5
votes
0
answers
119
views
how to get IDT handler address in assembly
I am experiencing with OS programming I wrote a simple bootloader in assembly and I switched to protected mode. I want just to test interruption (keyboard) I did not want to do it with C but just in ...
0
votes
0
answers
47
views
Are maskable and nonmaskable interrupt signals raised on two different interrupt request lines?
Are maskable interrupts that are typically raised from controllers to request CPU attention and non maskable interrupts (reserved for critical hardware errors) raised on two different interrupt ...
5
votes
1
answer
194
views
How to make interruption handler in C
I have this C code:
void print_hello(void);
void far int_handler(void);
void kernel(void)
{
// Set interruption handler in IVT
*((unsigned short*)(0x30 * 4)) = (unsigned short)int_handler;
...
1
vote
0
answers
192
views
Is it possible to test A20 line safely through code that includes the assembly cli instruction in a linux system?
Attempting to test A20 line through this link: https://www.independent-software.com/operating-system-development-enabling-a20-line.html, if you scroll to the middle of the page there is this "Testing ...
0
votes
1
answer
66
views
How to wake up to resume execution on an ARM Cortex M0+ processor?
I have an Arduino MKR Wifi 1010, which has an ARM Cortex M0+ processor, and try to implement sleep correctly.
What happens is that an interrupt is registered, and then __WFI (Wait for interrupt) is ...
3
votes
0
answers
201
views
In-Order Delivery of UIO Interrupts for Userspace Driver [closed]
I have multiple UIO interrupts defined. I am using Linux 6.12 without the realtime config (so, using the default scheduler, CFS).
My userspace driver is using poll in a loop to watch these interrupts ...
1
vote
2
answers
123
views
How to handle N buttons with separate actions in pure C on Arduino without writing N ISR wrappers?
I'm working on an Arduino project in pure C with multiple buttons. Each button has a different action associated with it, and I want to handle button presses using interrupts.
Currently, the typical ...
Advice
1
vote
2
replies
141
views
How the Computer Handles Interrupts
What is the difference between an interrupt and a context switch?
I understand the concept of an interrupt and how it occurs. However, I'm digging deeper into the topic.
I studied Computer ...
0
votes
1
answer
44
views
Micropython PIO interrupt causes loop on PICO
Extract of longer program. Just to toggle the .side pin and then quit the PIO program. Causes loop and have to nuke the PICO! Loops before the 'Run' print. Thanks
TypeError: function takes 2 ...
1
vote
1
answer
114
views
Trouble setting up Interrupts in custom Assembly based Kernel
I am working on an assembly kernel, using the OSDev Wiki and a PDF from Nick Blundell. I have set up my GDT and it seems to work fine. I am also able to load the IDTR as well. However, when I try to ...
3
votes
1
answer
133
views
After enabling an interrupt via CSRRW in RISC-V, how many instructions may execute before trap entry?
In RISC-V machine mode, when you issue a csrrw that sets a bit in mie (i.e. enabling an interrupt that is already pending), must the very next instruction immediately branch to the interrupt handler? ...
0
votes
1
answer
70
views
STM32F4 ADC Multi-Channel Interrupt Logical Error
I am trying to use interrupts with the ADC module. I am using PA0 and PA1 as analog inputs for the ADC, and PC0 and PC1 as external LEDs. My goal is: when PA0 is triggered, PC0 should turn on. when ...
0
votes
0
answers
76
views
Is there a way to tell TI ARM Clang not to use R14 (LR) as a scratch register?
I have a program that I wrote that has interrupts of multiple priorities. Within the body of the low priority ISR, interrupts are re-enabled so that high priority interrupts can interrupt them if ...
0
votes
0
answers
38
views
Multiple Next.js Apps - ISR approach
Question regarding ISRs in Next.JS apps.
Basically if we got 2 Next.js apps. 1 app do ISR and output to a storage, and 2nd app refer to App 1 output. Is this possible - 2 apps sharing a single ISR ...