Pages: [1]   Go Down
Author Topic: clock-driven round robin scheduler  (Read 748 times)
0 Members and 1 Guest are viewing this topic.
NZ
Offline Offline
Jr. Member
**
Karma: 1
Posts: 91
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

Im looking for a clock-driven round robin scheduler for the Arduino
Just need an task overrun indicator

I have had look but they all appear to be or close fully blown RTOS's

Any suggestions

Ta
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 533
Posts: 26937
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Write your own?
I've only written for a specific project.
Do things like capture
currentTime = millis();
and check if the currentTime is >= to the next time I want some to happen.
Can do that for as many tasks as you want to run.

If you want more, probably have better luck asking in the software forum, get a real software engineer involved.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Edison Member
*
Karma: 48
Posts: 1612
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What sort of tasks are you going to be running that requires a round robin scheduler?

Pete
Logged

Where are the Nick Gammons of yesteryear?

Offline Offline
God Member
*****
Karma: 25
Posts: 526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

By clock driven, do you mean preemptive?  Which version of Arduino are you looking at?
Logged

NZ
Offline Offline
Jr. Member
**
Karma: 1
Posts: 91
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just want to make sure that no tasks take longer than a set time and that I get back to some tasks within a specified time.

If the task overrun in time, I just need to set a semaphore so I know. Possible do some controlled shutdown or something.

Would be handy to know which task overflows, but at this point is properly not necessary.

I don't need priority, dynamic scheduling or anything like that.

Round Robin schedulers are predictable.
Trying to eliminate use of interrupts to get predictability

Was sure this most have been done numerous times, but maybe not released as free/w

Have been watching the TTE systems videos on youtube and like his approach, predictability :-)



Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 67
Posts: 3675
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Search for posts by Morris Dovey. IIRC, he posted details of his home grown task scheduler.
Logged

Pages: [1]   Go Up
Jump to: