All Questions
Tagged with isr or interrupts
870 questions
3
votes
1
answer
2k
views
What does granularity mean?
I was wondering what granularity means? It is used in the context of:
A background task that performs a simple operation. The granularity of the background task, specifying the number of ...
4
votes
1
answer
3k
views
dsPIC33, SPI slave, and Timer1 interrupts. What happens?
I have an interesting problem with the dsPIC33FJ128GP802.
I have it configured as a slave SPI device connected to an Arduino acting as the master.
Timer1 is set up to trigger an interrupt at specific ...
2
votes
1
answer
9k
views
When Arduino catch interrupt, is noInterrupts() called?
I read the documentation about interrupts in Arduino and there is this example code:
...
12
votes
1
answer
8k
views
Arduino and Interrupts: Fast way to get pin values
I use an Arduino Uno and already set it up to work with interrupts on digital pins 2, 3, 4 and 5 according to an explanation1 I found.
void setup() contains the ...
3
votes
1
answer
858
views
MSP430 Illegal Instruction
A few questions here along the same lines, I'm looking at the datasheet for the MSP430x2xx family (I'm using the MSP430F235 FWIW). It says there in section 2.2.4 that "illegal instruction fetch" is an ...
1
vote
1
answer
577
views
I having troubling understand what other interrupt firing besides TMR2 on PIC18f4550
I having troubling understand what other interrupt firing high_isr besides TMR2 on PIC18f4550.
Way I detect it I set pin MY_DBG_PIN toggling everytime high_isr is activated, and from what I try to do,...
6
votes
1
answer
7k
views
Handling timer overflow and compare interrupts in ATMega328 (Arduino)
I'm trying to simulate PMW mode on multiple pins in software by controlling a Timer2.
I'm using maximum prescaler value to get approximately 60 pulses per second when timer counts to its maximum ...
3
votes
5
answers
672
views
ISR - Scope vs. Counter
I have a simple program basically increment the counter every time I get an interrupt. The code is something like this:
...
5
votes
3
answers
2k
views
What would be the best way to design a real time clock for the MSP430?
Basically that. The way I am doing it now is with the TimerA set to 1 second interrupts. But I think that it's very annoying. Are there any other ways to do it?
I want to basically set timers on that ...
0
votes
3
answers
4k
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
3
answers
21k
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
1
answer
1k
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
1
answer
529
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
2
answers
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
3
answers
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 ...
9
votes
1
answer
7k
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
2
answers
6k
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
4
answers
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
1
answer
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
5
answers
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:
...