All Questions
Tagged with c++ interrupts
9 questions
0
votes
1
answer
74
views
Is parallel buffering with ISR possible?
Speaking generally, given a time-critical module and an MCU (act as buffer),.
If we look at the datasheet of the module, we know the timing diagram. Then, it's possible we can read the module through ...
8
votes
1
answer
701
views
Program never goes into interrupt
I used to work with C but I am trying to learn using C++ for embedded programming. I want to do a basic GPIO interrupt example to understand the structure of a class and its usage.
My microcontroller ...
-1
votes
2
answers
469
views
Why is my interrupt so slow/inconsistent? Arduino external interrupt as pedestrian crossing button
So this is the setup;
It's a traffic light system with 2 road lights and a pedestrian crossing. The normal sequence is
alternating between main road green and secondary road green. It reads these ...
0
votes
1
answer
231
views
Error Real Time Clock implementation AVR microcontroller
I want to create a real-time clock using ATmega328p microcontroller.
The microcontroller's frequency is 1 MHz. So, I think I should use timer interrupts in CTC mode to generate interrupt every second.
...
2
votes
2
answers
1k
views
Interrupts using member function
I am trying to use a member function in an interrupt. The function uses member variables so I created a global instance of that class to use it in a static function.
The problem is that I created a ...
3
votes
2
answers
7k
views
Use PWM and ISR at same time on AVR
Is it possible to use AVR PWM outputs and ISR interrupts at the same time?
I've got a project I'm trying to do on an ATMega328P and I need 3 PWM outputs but ALSO need to be able to use ISR interrupts ...
3
votes
2
answers
2k
views
Understanding volatile class fields in AVR C++ programs
I'm having some confusion about what members to declare volatile in a program I'm writing in C++ for an AVR microcontroller, with interrupts. When it's plain C it makes sense - the compiler doesn't ...
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 ...
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 ...