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 dependent upon which interrupt was generated. Interrupts can be either hardware-sourced or software-sourced; software-sourced ...

learn more… | top users | synonyms (1)

0
votes
0answers
5 views

Variations in pulses generated and read by a uC

I have a 2 uC's(LPC1778 and a PIC), that perform 2 separate functions. The PIC generates pulses that are coded,where each bit of the code has a pulse duration of 1ms and a complete code is 8 bits ...
1
vote
1answer
45 views

Priority among prioritised interrupts

I am using 2 interrupts on LPC1778. One for CAN and one for timer. The CAN interrupts whenever a new message is received. The timer interrupts every 200uS. The priority for timer interrupt is the ...
-3
votes
0answers
16 views

DC Brushless Control using interrupts [closed]

I'm using a Brushless DC motor with the ESC module .. . . while using PIC microcontroller (PIC18F4520 ) ... i wonder how i can generate a PWM signal to control it's speed and direction simultaneously ...
1
vote
3answers
64 views

Uart Transmit every 1µs Interrupt StM32 NucleoF401-Re

I am using the STM32 Nucleo F401-RE and HAL libraries. I would like to send value through UART to the PC console every 1µs interruption. Actually I want every 1 µs interruption to increment a ...
1
vote
3answers
76 views

Deciding Timer Interrupt time

I have used timer interrupt in my application, mainly for timing reasons like timeout detection for processes,pulse generation etc, every 1 ms. Now i have a doubt. Suppose in main(), if im doing ...
-1
votes
0answers
31 views

Cordinator Atmega328p wakes up end device

I have a coordinator(arduino +zigbee s2) and 2 end devices (atmega328 +zigbee s2+sensors) and I want the coordinator to decide when and which end device will wake up, take measures, send to ...
0
votes
0answers
26 views

Is Energia buggy when it comes to using Serial.print() near sleepSeconds() call?

So, I've been experimenting with sleep, sleepSeconds, suspend() and wakeup. These are AWESOME by the way... Here's what I've found. suspend() puts the controller into LPM4 which makes it ONLY come ...
0
votes
1answer
28 views

How do you implement an Energia interrupt handler?

So, I have an application that needs to be very conservative with the power. I use the suspend() command to go into LPM4 and wait for an interrupt to occur. During the interrupt, I attempt to ...
1
vote
1answer
41 views

How do you use low-power mode on an MSP430G2553 using an Energia sketch?

I am using an energia sketch to program my MSP430G2553 controller. I need to know how to use low-power mode. Do I leave the loop section of the sketch empty and set up an interrupt in the setup ...
1
vote
1answer
74 views

How to count using Interrupts

I have an issue where I want to count how many times I hit a switch using an interrupt. I tried placing the count variable inside the main but it claims that count does not exist. I put count inside ...
2
votes
0answers
47 views

Mega Interrupt doesn't work [migrated]

I am working on a protection circuit with 2 raindrop sensors which would be hooked onto the arduinos 2 interrupt pins and as soon as they detect water they shut some relays off, turn a red led on ...
1
vote
1answer
68 views

How to use the Non Maskable Interrupt on SAM4S?

I'm trying to use the NMI on a SAM4S (Cortex M4), but I'm finding some hard time to make it work. The main objective is to jump to the NMI handler whenever the power is about to go down, so that I can ...
1
vote
1answer
48 views

Does Interrupting a Microcontroller Data Receive with a Higher Priority Interrupt Cause Data Loss?

I would like to know what would happen if a Serial Terminal were to send a large amount of data to a PIC/AVR, for example over USART interrupt, which was then interrupted by a higher priority ...
2
votes
2answers
83 views

Reset Interrupt - Beginning or End of ISR?

Im working on a uC that has interrupts configured for various FIFO's present in the uC. Each FIFO is connected to a common bus and can receive data independently(at any point of time). Now, everytime ...
1
vote
1answer
42 views

stm32f207 ethernet interrupts problem

I installed RTX (rtos from Keil) and Ethernet library from STM for stm32f207 MC. I configured UDP using ethernet + LwIP as in examples from STM. Without RTOS UDP works fine. I send and get packets ...
9
votes
2answers
539 views

Enable interrupt but no ISR

I would like to know what happens if an Interrupt is enabled(ex:Arbitration Lost Interrupt in CAN module of NXP's LPC1778),but no ISR has been defined for the interrupt. When such an interrupt ...
0
votes
2answers
119 views

STM32: UART Interrupt is triggering without any flags getting set

I am using the UART4 module of an STM32F105. I'm using the RXNE ("RX Buffer Not Empty") interrupt to grab data as it comes in. It's working as expected. When the RXNE interrupt is enabled it also ...
-2
votes
1answer
69 views

Interrupt programming PIC18F4520 :: Toggling LED

[Edit: replaced sideways photo with upright photo] I recently started using interrupts in pic programming. I started with this program but I am not able to go through what has been done in this ...
0
votes
2answers
89 views

Difference between FIQ and IRQ

Im working on TI based processors now and they have 2 types of Interrupt configuration(FIQ or IRQ).I have seen such interrupts before when i was doing a hobby project using a LPC1778 but since i didnt ...
1
vote
0answers
60 views

Context Switch without interrupt disabled?

I developing a program on ARM M4 where I don't actually want to disable interrupt even when doing a context switch. If any interrupt occurs during context switch, is it possible to handle it soon ...
2
votes
2answers
71 views

Systick interruption doesn't trigger when handling another interrupt

I am experimenting with the STM32f4 discovery and i tried to use a delay (based on SYSTICK) in an ...
0
votes
2answers
78 views

Sensing Voltage with a Digital Pin

I am relatively new with Arduino and did a little bit of research prior to this post. But I am trying to sense when I have voltage coming from an AC/DC converter (12Vdc) so I can switch from my ...
4
votes
1answer
246 views

UART Interrupt does not get more than one Char - PIC32MX110F106B

I am really struggling with an UART communication with my PIC32MX110F016. It is the first time I am trying to implement an UART communication with PIC32MX family but I find it difficult and I don't ...
1
vote
1answer
180 views

Clearing USART (UART) interrupt flags in an STM32?

I am using an STM32F105 to communicate with a Linx GPS chip using a UART. If I don't use interrupts (if I just poll the RX flag) then it works just fine. But I'm getting unexpected results when ...
0
votes
1answer
90 views

MSP430 Problem with Multiple Interrupt Timers

I am currently investigating the use of pulse density modulation (PDM) combined PWM (In short, PDM-PWM) as a substitute for conventional PWM in the application of maximum power point tracking (MPPT) ...
0
votes
2answers
61 views

Detecting interrupt on Atmega8 from zero crossing detector circuit

I have a zero crossing detector circuit, whose output I am providing to my Atmega8 as an interrupt, but unfortunately its not working. If I use DC supply 5V (logic 1) as an interrupt, it works. Where ...
3
votes
1answer
55 views

AVR external interrupt triggering by the falling edge: for how long should I keep signal low to guarantee triggering?

The question header appeared to bee too long. I'm sorry for that. So I have a schematic generating a short LOW on INT0 pin of ATmega48PA. From the simulation I figured out that the LOW level will be ...
18
votes
2answers
1k views

Should all traps always be defined?

I've seen two cases now with dsPIC 30F4013 where the controller was resetting due to an undefined trap. Why these traps were getting raised in the first place is still a mystery, but that's not my ...
0
votes
2answers
52 views

CAN -> acceptance filter then interrupt or vice versa

I would like to know which occurs first while using CAN communication. Based on the answer I would conclude whether an acceptance filter must be used in my project or not. Scenario: There are three ...
1
vote
2answers
79 views

Serial Communication Rx ISR logic design

If im not wrong, an ISR is supposed to do minimal processing when it receives a data serially(via UART). Im planning on implementing such a protocol for communication between 2 systems via uart. This ...
0
votes
2answers
62 views

PIC16 10hz timer with timer1 and 1Mhz clock

I need to increment a stopwatch at 10hz using timer1 on a PIC16F628. The external clock is 1Mhz, supplied by a packaged oscillator (EPSON sg8002db). With no prescaler, the value to set the timer to (I ...
1
vote
0answers
50 views

How to set MSP430 Driver Library timerA configurations

I am using MSP430F5529 and MSP430 Driver Library. As you can see, I set upMode timer configuration, compare mode configuration and enabled the initial interrupts. However, timerA interrupt is not ...
0
votes
1answer
80 views

MCU External Interrupt False Triggering

Above is the picture describing the configuration outside the MCU. Vin is 0 to 5V Peak to Peak square wave which may have 0 to 50 KHz frequency, or even higher. The MCU is supposed to handle ...
-1
votes
2answers
60 views

Why are INTERRUPT CONTROLLER SPECIAL REGISTERS in arm different from others? [closed]

For example, in s3c2440, it clears only the bit positions of the SRCPND corresponding to those set to one in the data. The bit positions corresponding to those that are set to 0 in the data remains as ...
0
votes
2answers
143 views

Why does my RTC generate interrupts faster than once per second?

I have configured an RTC module on a uC to generate interrupts every second (~32 kHz module clock with a 0x7FFF prescaler in between the counter and the clock - I hope so, seems like ~32k is the ...
0
votes
2answers
132 views

STM32F407ZET6 and nordic nrf24l01+ communication with interrupt driven SPI

Currently working on STM32F407ZET6 MCU. I am trying to generate an interrupt based SPI communication with nordic nrf24l01+ chipset. The MCU is in Master mode. I am able to establish an SPI ...
2
votes
1answer
121 views

Rx data rate on CAN bus faster than polling rate

I'm working on a safety-critical SIL 4 system and so interrupts have to be kept to a bare minimum (hence using only timer interrupts). CAN is used in polling mode. Suppose data arrives at a CAN node ...
-1
votes
1answer
86 views

Interrupt INT0 on PIC32MX110F016 not working

I am trying to put the INT0 working in a PIC32MX110F016 but it seems it never goes there. The INTO pin is Electrically powered with a pull-up resistor and when I press a tactile button it goes from ...
0
votes
1answer
86 views

PIC32mx Timer5 not working

I am struggling to put my Timer5 working properly. I think I have enabled all the registers but the interrupt never occurs. I already put a break point inside in the FingerprintRun() in the asm("nop") ...
0
votes
1answer
101 views

Beagle Bone Black interrupts for optical encoder

I'm trying to have my optical encoder work on interrupts. I found some resources online that discuss it but they all seem to be based on an older version of debian since the files and folders in ...
0
votes
1answer
176 views

Bit Banging UART PIC32mx

I am trying to bit banging an UART Port using PIC32MX with timer5 (the only available at this time) but I am struggling how to configure the timer for a Baud Rate of 115200bps. I don't want a flow ...
5
votes
2answers
578 views

STM32F7 gets stuck in external interrupt callback function

i am working on a project to connect a camera to an STM32F7 Discovery board using the DCMI interface. The camera part works fine, but i have a strange problem with external interrupts from the ...
0
votes
2answers
161 views

Disable interrupt in ISR on STM32F4

Is is possible to disable an interruption during its service routine to prevent it from happening again for some time? For example: ...
1
vote
1answer
114 views

How to distinguish between a read and a write in a Harmony USART BufferEventHandler?

I would like to use the Harmony USART driver on a PIC32MX695F512H using interrupts and with buffer support. After setting the appropriate settings in the MPLAB Harmony Configurator, the system has ...
1
vote
1answer
43 views

Latching battery switch triggered by interrupts

I've got an accelerometer with a couple interrupt pins and I've figured out how to get it to fire its interrupts on any change in acceleration or lack thereof for a given duration. What I want to do ...
1
vote
2answers
336 views

How to simplify UART interrupt handlers on Tiva TM4C with SIMcom 900

UARTIntHandler0 interfaces to the USB UART for debugging. UARTIntHandler1 interfaces to the SIM900 GSM module. The purpose of ...
12
votes
4answers
405 views

AVR SEI instruction

The AVR SEI instruction (http://www.atmel.com/webdoc/avrassembler/avrassembler.wb_SEI.html) waits for the next instruction to finish before enabling interrupts. If I use another instruction to set ...
0
votes
1answer
99 views

How to remove noise signal on the interrupt pin of micro controller [closed]

My system is interrupt driven, but sometime due to noise signal generates, micro controller treats this signal as an interrupt which is wrong so how can I remove that signal and allow controller to ...
0
votes
1answer
45 views

Is it possible to get two low-voltage interrupts pins on a Atmega328?

Caution: Noob at work :) I'm trying to get one of two 1.5V-2V signal inputs to trigger an interrupt routine on an Atmega328 (Doc PDF). By using the analog comparator interrupt, I gather I block the ...
0
votes
3answers
70 views

Programmed IO vs interrupt for devices

Although I can understand the difference between programmed IO (PIO) and interrupt (INT) transfers, still there is something vague. In PIO, the processor repeatedly checks READY pin to see if the ...