Programming the Finite State Machine

with 8-Bit PICs in Assembly and C

Andrew Pratt

Diese Publikation zitieren

Andrew Pratt, Programming the Finite State Machine (20.04.2024), Elektor, Aachen, ISBN: 9781907920929

112
Accesses

Beschreibung / Abstract

Inhaltsverzeichnis

  • Programming the Finite State Machine
  • Table of Contents
  • Preface
  • 1 †¢ Getting Started
  • 1.1 †¢ Introduction
  • 1.2 †¢ Practical Implementation
  • 1.3 †¢ Some Fundamentals
  • 1.4 †¢ Program Memory
  • 1.5 †¢ Hello World
  • 2 †¢ The Assembly Program as a Finite State Machine
  • 2.1 †¢ Introduction
  • 2.2 †¢ A State Machine Framework for Assembly Language
  • 2.3 †¢ Timer0
  • 2.4 †¢ Interrupts
  • 2.5 †¢ A More Complicated LED Flasher
  • 2.6 †¢ Running More Than One Machine in a Program
  • 2.7 †¢ Driving a Seven Segment LED Display
  • 2.8 †¢ The Differences Between the PIC 12F1822 and the 16F1823
  • 2.9 †¢ Interrupts and State Diagrams
  • 3 †¢ Macros, Subroutines and Bank Switching
  • 3.1 †¢ Introduction
  • 3.2 †¢ Create Your Own Instruction
  • 3.3 †¢ Subroutines
  • 3.4 †¢ Bank Switching
  • 4 †¢ Inputs and Outputs
  • 4.1 †¢ Introduction
  • 4.2 †¢ Serial Output to a Computer
  • 4.3 †¢ Serial Input from a Computer
  • 4.4 †¢ Analog Inputs
  • 4.5 ● Pulse with modulated outputs
  • 4.6 ● Digital Inputs
  • 5 †¢ Project Hardware Construction
  • 5.1 †¢ Introduction
  • 5.2 †¢ Overview of the Suggested Method
  • 5.3 †¢ Cutting and Drilling the board
  • 5.4 †¢ Populating and Wiring the Board
  • 5.5 †¢ The Circuit Board Test Program
  • 6 †¢ Binary Arithmetic
  • 6.1 †¢ Introduction
  • 6.2 †¢ Binary Addition of Unsigned Numbers
  • 6.3 †¢ Binary Subtraction of unsigned integers
  • 6.4 †¢ Binary Subtraction with Negative Results
  • 6.5 †¢ Negative numbers in binary
  • 6.6 †¢ Binary Multiplication
  • 6.7 †¢ Binary Division
  • 7 †¢ Digital Voltmeter Project
  • 7.1 †¢ Introduction
  • 7.2 †¢ The State Diagrams
  • 7.3 †¢ Scaling the Raw Analog Value
  • 7.4 †¢ Extracting the individual figures for the display
  • 7.5 †¢ Detecting No Input Voltage
  • 7.6 †¢ Recalibration
  • 8 †¢ Troubleshooting and Planning
  • 8.1 †¢ Introduction
  • 8.2 †¢ Have an Overview of the Project
  • 8.3 †¢ Break Big Problems Down Into Smaller Ones
  • 8.4 †¢ Read Through Your Code in Detail and Add Comments
  • 8.5 †¢ Debugging a Running Program
  • 8.6 †¢ Traffic Lights
  • 8.7 †¢ Using Debug Macro on the Voltmeter Programmable
  • 8.8 †¢ A List of Things to Remember
  • 9 †¢ A Comparison with C
  • 9.1 †¢ Introduction
  • 9.2 †¢ The Microchip XC8 Compiler
  • 9.3 †¢ Introduction to C
  • 9.4 †¢ Serial Communication
  • 10 †¢ Further C
  • 10.1 †¢ Introduction
  • 10.2 †¢ Data Types
  • 10.3 †¢ More on Functions
  • 10.4 †¢ Integer Arithmetic
  • 10.5 †¢ The Voltmeter in C
  • 10.6 †¢ Summary of Assembly, C, and Finite State Machines
  • Index

Ähnliche Titel

    Mehr von diesem Autor