1.5 Hardware Implementation on 8-Bit PIC Microcontrollers
Modern 8-bit PIC microcontrollers offer several Core Independent Peripherals (CIPs) that can be used to implement a state machine completely in hardware. Table 1-5 lists various CIPs that can be used for different state machine functions. Refer to the specific device data sheet for information on availability of these peripherals.
State Machine Function | Hardware Implementation | Core Independent Peripherals |
---|---|---|
State | Flip-Flops |
Configurable Logic Block (CLB) Configurable Logic Cell (CLC) Signal Routing Port (SRPORT) |
Next-State Function | Discrete Logic Elements |
Configurable Logic Block (CLB) Configurable Logic Cell (CLC) |
Output Function | Discrete Logic Elements |
Configurable Logic Block (CLB) Configurable Logic Cell (CLC) |
State Time | Hardware Timers/Counters |
Timer0/1/2 Universal Timer (UTMR) Signal Measurement Timer (SMT) Pulse-Width Modulation (PWM) |