Reputation: 1
Everyone, I am working with ATtiny85 using Arduino IDE. Recently I was learning about RTOS. I want to ask if it possible to run RTOS on ATtiny85 microcontroller? According to my knowledge it may be possible using some other techniques? but not specifically RTOS. Am I right or not. Is it possible or not, if not then is there any other way to run two or more tasks at the same time with out blocking the code?
I am using timer0 go generate an interrupt after certain time. now want to to another task using ATtiny85.
Upvotes: -1
Views: 291
Reputation: 69
For sure, it is possible. There are many RTOS available (also commercial ones) and it depends, which are supported, set of features on given HW and also how much resources it needs.
Demonstration, where are limits for micro controllers: It is also possible to run "normal" OS, like linux, on micro controller. Question is, if it is practical (boot time in hours for example). Nice reading https://dmitry.gr/?r=05.Projects&proj=07.%20Linux%20on%208bit (And there are more learning/hobby projects like this.
Upvotes: 0
Reputation: 1393
Yes, it is possible to make an RTOS that will run on Attiny85. All an RTOS needs is a data structure to represent each thread and a way of switching between them.
Here is an illustrative version of an RTOS that fits into even an ATTINY25 if it must... http://www.femtoos.org/
Upvotes: 0