Introduction

Authors: Charles West and Max Prasad, Microchip Technology Inc.

When designing embedded applications, it is common to define the application’s behavior using the concept of a state machine. Many logic systems can be modeled as state machines, which can simplify the design process. Additionally, modeling a logic system as a state machine can enhance efficiency and performance. Traditionally, state machines have been implemented in software; however, modern Microchip 8-bit PIC® microcontrollers (MCUs) are equipped with a plethora of Core Independent Peripherals (CIPs) that make it possible to implement state machines in a variety of ways, including methods that do not require software intervention. This application note discusses how to design state machines using CIPs that can run without software intervention to enhance system performance.