Blog 2 - RTOS Using the PIC Microcontroller
1.0 Introduction In this next installment of the binbot blog, the process of RTOS will be examined. RTOS stands for: Real Time Operating System A real time operating system is a system in which multiple "tasks" (which will be represented by functions) are called and ran by a central piece of code, which is the operating system. In a real-time operating system, the operating system quickly cycles between tasks, breaking from one task to run the next. Programs to be run in this experiment: Tasks Termination Enable/Disable Messages Yield Semaphores Await Statistics Basic Kernel 2.0 Programs 2.1 Tasks Tasks is the first and simplest piece of code to be run by the PIC. In this program the PIC simply cycles between different tasks of varying different rates. Figure 1: Output of "Tasks" in the terminal window Figure 1 shows the output of the program displayed in a terminal window. It can be seen from this that tasks 3 and 4 are the highest priority task...