YAVRTOS – Yet Another Atmel AVR OS

Chris O’Byrne created YAVRTOS for understanding how RTOS can be built and how they Tick.

YAVRTOS – Yet Another Atmel AVR OS

What is a real-time operating system?

Processors are only actually only able to do one thing at a time, whereas we need them to do more than one thing at a time (e.g. update the display while checking for keypresses while reading the serial port). A real-time operating system (RTOS) provides facilities for achieving that.

What is a task?

A task does one of the things (e.g. update the display, check for keypresses, read the serial port) that the application needs done. The real-time operating system allows tasks to execute concurrently, while providing facilities for e.g. tasks to communicate with each other.

What is a tick?

The RTOS needs to be able to switch between tasks – they way it does this is by using a regular processor interrupt (e.g. one of the timer interrupts). Every such interrupt is called a “tick”. These interrupts must be set up before the RTOS is started.

My Notes –

There are two things to learn from Chris, build something to completely learn a concept. This is a tough but thorough way of learning. The easier way is to learn from examples. Hacking and Reverse Engineering also good for students to digest methods exhaustively.

The way chris follows leads to things like innovation/improvement and inventions. That is A Better way. This phrase is probably attributed to hp, now called Agilent Technologies. The computing/printing division carries the hp brand name.

I had once serviced a DMM by hp(agilent) decades ago. It had something like a custom 8039. This was decades back. It was a 5-1/2 or more. It had a Watchdog built with CMOS 40xx chips. I never understood watchdogs then, they were not even called watchdogs.

The “Tick” is the heartbeat of a RTOS, not only it keeps polling all peripheral chips or I/O, It cannot skip a beat, even high priority interrupts cannot stop the routine tasks or even delay them. If it has to sample a Analog level ten times a second and produce a output control byte at the same speed; It could be RTOS for Process Control. For a rocket this will not be RTOS. Speed and not missing a step. Many times faster than the process it is meant for, probably ?

  • Electronic Projects – Rickard Gunée
    Electronic Projects – Rickard Gunée PIC Game system – Hardware description of the system that is running pong and tetris. AVR Color Clock – A [...]
  • Open Source Robot Framework
    The basic setup you’ll need to build a plastic extruding CupCake CNC machine. from Bre Pettis Makerbot – 3D Mechanical Prototype Synthesis Makerbot is an [...]
  • Hysteresis – Charles Proteus SteinmetzHysteresis – Charles Proteus Steinmetz
    He was an American Mathematician and Electrical Engineer. He fostered the development of alternating current that made possible the expansion of the electric power industry [...]
  • Complete Pro 3 axis CNC kit
    Kit 601: Complete Professional 3 axis CNC kit: Complete kit for Hobby application, use this kit to gain time on your hobby transformations or DIY [...]
  • EID – Electronics Training Kits and Systems
    This is a colorful, useful and educative project from Erlich Industrial Development, Corp. You will learn using Op-Amps as comparators and also LED bar graph [...]
  • Erik Grindheim and Engineering AssistantErik Grindheim and Engineering Assistant
    Some projects are Audio VU meters, Serial Port PIC programmer and other interesting articles. The low and high logic levels are displayed by LEDs,which are [...]
  • Audio Elektronik – Analoge Elektronik
    Audio Elektronik – Analoge Elektronik Audio amplifiers, measuring instruments and test equipment for Hifi and electronics. Theory, test and analog techniques. The test equipment gallery [...]
  • Ozitronics – Electronic KitsOzitronics – Electronic Kits
    “Audio Amplifiers, Voice Recorders Clocks, Counters & Timers, Data Acquisition & Control Educational Kits, Test & Measurement ” Ozitronics – Electronic Kits K1001 – 8 [...]
About delabs 462 Articles
delabs is a web-service for product design and development.

Be the first to comment

Leave a Reply