Questions tagged [interrupts]

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 interrupts are called traps. It is an alternate mechanism to polling and is the basis around which most I/O, multitasking and control is implemented.

Filter by
Sorted by
Tagged with
0
votes
3answers
3k views

PIC interrupt delay_ms

I'm using MikroC Pro, PIC16F1824 with XTAL 4Mhz. Basically I have 2 mode of LEDs. I use serial cable to send which mode to play. Mode 1 = On for 3 seconds and Off for 3 seconds. Mode 2 = On for 1 ...
9
votes
3answers
20k views

How are interrupt handlers implemented in CMSIS of Cortex M0?

I have a LPC1114 kit. Last few days I have been digging up CMSIS implementation of Cortex M0 to find how things are done in it. So far I understood how each registers are mapped and how I can access ...
2
votes
1answer
827 views

Writing to timer counter while timer is running

I'm using PIC16F1947 for a project. The project requires real time tracking so a stable 32768 Hz crystal is connected with the Timer1 oscillator. The Timer1 oscillator circuit and the crystal will ...
1
vote
1answer
499 views

Learning about the Interrupt system of the 8085 processor

I am trying to investigate the RST5.5, RST6.5, and RST7.5 interrupts on the 8085 microprocessor. I want to find information about the to the type of interrupting signal used and the built in ...
6
votes
2answers
2k views

Teensy USB Interrupts

I'm trying to learn about interrupts using one of the Teensy USB boards. It's got an AVR AT90USB1286 chip on it. I'm using the code below, and I'm expecting my ISR block to get called and periodically ...
5
votes
3answers
2k views

Stepper Motor Control Timing

I have a question regarding stepper motor control while using the TCP/IP stack. In the past I have used a timer for my stepper motor control. I set the period of a timer to the required time between ...
8
votes
1answer
5k views

Bug in Keil ARM compiler with interrupt handlers and C++?

I have a problem with writing interrupt handlers in Keil ARM compiler for LPC1114. When I write program in C++ and specify --cpp compiler option all code from interrupt handlers disappears, it is ...
3
votes
2answers
5k views

Does anyone have any examples or suggestions utilizing Atmel's ATMEGA2560 and external interrupt's?

I am trying to utilize an ATMEGA2560 and it's interrupt. I have some code that must execute until a button is pressed at which time I need the code to stop and wait for another button press to ...
2
votes
4answers
2k views

What is the ISR for the comparator change interrupt on a dsPIC33F?

I'm asking for the ISR name for the comparator interrupt for a dsPIC33F. I've tried _CompInterrupt, _CMInterrupt and _CMPInterrupt. All three bring up warnings about non-existent ISR names. I can't ...
2
votes
1answer
1k views

Increasing the delay using 'option' register in Pic16f877a

I have learned that the maximum 'delay' possible in pic16f877a running with a source of 11.0592MHz (11059200 / 4 actually) is 23 ms.. without using software delays (delay_ms( )).. the calculation was ...
4
votes
5answers
5k views

USART transmit problems on a PIC

I'm trying to send data to an SD card from a PIC18f4580, but the PIC is not sending what it should be. related global variables: ...