Programming the Finite State Machine with 8-Bit PICs in Assembly and C Programming the Finite State Machine with 8-Bit PICs in Assembly and C

Programming the Finite State Machine with 8-Bit PICs in Assembly and C

    • $30.99
    • $30.99

Publisher Description

This practical guide is aimed at electronics students and hobbyists. It is intended to be a valuable aid in writing programs using Finite State Machines (FSMs) in assembly language using 8-bit PIC microcontrollers. The last two chapters introduce the use of the C programming language and make a direct comparison with development in Assembly.



An FSM is a way of writing a program to make it easier to produce and modify. The machine is abstract in that it is just the structure of the program. This abstract machine can be represented by drawing a diagram on paper. The diagram is independent of the programming language used. The FSM chart gives a complete description of what the program does. It can then be implemented as source code.



The book should appeal to those with an interest in the combination of electronics and software and have an interest in how things work. The book will describe writing code for two particular microcontrollers: The 12F1822 and 16F1823. Both are mid-range and inexpensive. To read and write the programs to and from the PICs, all that is required is an FTDI TTL level USB lead (TTL-232R-5V-WE) in addition to two programs that are both available for free download as executable files and source code from Elektor. Microsoft Windows or Linux can be used.

The PIC programs are written in assembly language. This goes against the conventional wisdom of using a higher-level language such as C. One reason for this is that assembly is a good way of learning what is happening at the lowest level. This is important as microcontroller programming requires an understanding of the chip. Another reason for using the finite state machine approach is that it makes assembly programs surprisingly easy to follow. One of the main obstacles in the way of getting started with embedded programming is the installation and learning of new software tools.



The emphasis of this book is on making things straightforward with as little complication as possible.

GENRE
Computers & Internet
RELEASED
2020
June 10
LANGUAGE
EN
English
LENGTH
188
Pages
PUBLISHER
Elektor International Media
SELLER
Bookwire Gesellschaft zum Vertrieb digitaler Medien mbH
SIZE
17.9
MB

More Books Like This

Intermediate C Programming for the PIC Microcontroller Intermediate C Programming for the PIC Microcontroller
2020
C Programming for the PIC Microcontroller C Programming for the PIC Microcontroller
2019
Programming Arduino Projects with the PIC Microcontroller Programming Arduino Projects with the PIC Microcontroller
2021
C Programming for the Pc the Mac and the Arduino Microcontroller System C Programming for the Pc the Mac and the Arduino Microcontroller System
2013
ARM Microcontrollers Programming for Embedded Systems ARM Microcontrollers Programming for Embedded Systems
2019
Beginning x64 Assembly Programming Beginning x64 Assembly Programming
2019

More Books by Andrew Pratt