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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.