ivanseidel / ivanseidel/DueTimer

Multiple Timers Hanging

Open
#77 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
217
Forks
87
PR merge metrics
No merged PRs in 30d

Description

Hi, I've modified the example code from the multiple timer folder with my desired interrupt time (1000 microseconds for Timer0 and 5000 microseconds for Timer3). From the arduino serial monitor, It seems that the arduino hangs at 5000us. Does this mean that the arduino does not know what ISR to prioritize? I've attached the code and the output of the arduino serial monitor for visualization.

```
void firstHandler(){
Serial.println("[- ] First Handler!");
}

void secondHandler(){
Serial.println("[ - ] Second Handler!");
}

void thirdHandler(){
Serial.println("[ -] Third Handler!");
}

void setup(){
Serial.begin(115200);

Timer0.attachInterrupt(firstHandler).start(1000);
Timer3.attachInterrupt(secondHandler).start(5000);

}

void loop() {

}
```

![image](https://user-images.githubusercontent.com/65759544/100383773-6afb2a80-3059-11eb-9b87-fa229054d708.png)

Am I missing something? Its my first time using the library. Any help would be greatly appreciated. Thank you.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the modified code from the multiple timer example and reproduce the behavior using the supplied Timer0 and Timer3 intervals. Compare the Arduino serial monitor output with the expected handler activity; done means identifying why execution hangs at 5000 microseconds and determining the appropriate library-side or example-side correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.