Questions tagged [interrupts]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
57 views

How timer interrupt is handled in the presence of other interrupt services?

When timer interrupt is received, if there is already some ISR being executed, doesn't it delay (elongate) the time interval measured? If yes, how is it handled? For the sake of precise time ...
1
vote
1answer
25 views

Problem with moving heavy computation into ISR's (dspic33E)?

I am controlling a robotic system using a dspic33E. I have a few PID control loops for motor control, several SPI slaves, and an I2C master that I communicate with. Currently, I use interrupts for ...
0
votes
1answer
47 views

PID control loop and feedback acquisition synchronization

In many real-time PID control loop application I have seen that the control loop is triggered exactly as the ADC interrupts arrives in order to achieve maximum synchronization between feedback ...
2
votes
1answer
241 views

How to split tasks between interrupts and the main loop on a bare metal controller?

I'm working on a robotics project where I have 3 services running. I have my sensor DAQ, my logic ISR (motor controller at 20kHz) and my EtherCAT slave controller. DAQ and EtherCAT run in the idle ...
1
vote
2answers
1k views

How to interrupt on a data ready trigger when communications to the sensor are interrupt driven?

Background: I'm using the L3GD20H MEMS gyroscope with an Arduino through a library (Pololu L3G) that in turn relies on interrupt-driven I2C (Wire.h); I'd like to be able to handle each new reading ...
2
votes
1answer
1k views

Programming 4-digit seven segment display using interrupts only

I have to program an autonomous bot (using an ATmega2560). It has a 4-digit seven segment display attached to it. I have to make the bot traverse through arena while continuously displaying the time ...
4
votes
2answers
1k views

Wheel encoder triggers interrupt too many times

I am building a simple robot with two driving wheel. I want to control the wheel rotation using a wheel encoder like this one. Here is a code I have on Arduino to try to understand the problem I'm ...
7
votes
6answers
4k views

Polling or Timer interrupt?

We hope to build a simple line follower robot and we got a problem when we were discussing about PIC programming. We planed to write a endless loop, check the sensor panel reading and do the relevant ...
5
votes
3answers
6k views

Limits of PWM, Timers and Interrupts?

I have a robot with two wheels/motors and each has a quadrature encoder for odometry. Using the wheel/motor/encoder combo from Pololu, I get 48 transition changes per rotation and my motors give me a ...
5
votes
3answers
3k views

How to manage interrupts on an AVR?

I have a number of interrupt service routines on an AVR. These include interrupts for USART serial communication, timers, and SPI communication. For all of these, I use circular queues (using a start ...