Project 7.18 Multitasking

Most complex real-time systems consist of a number of tasks running independently. This requires some form of scheduling and task control mechanisms. For example, consider an extremely simple real-time system that must flash an LED at required intervals and at the same time look for a key input from a keypad. One solution would be to scan the keypad in a loop at regular intervals while flashing the LED at the same time. Although this approach may work for simple systems, in most complex real-time systems, a real-time operating system (RTOS) or a multiprocessing approach are usually employed. Multiprocessing is beyond the scope of this project.
An RTOS is a program that manages system resources, scheduling the execution ...

Get PIC Microcontroller Projects in C, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.