Microcontroller Theory and Applications with the PIC18F (eBook)
907 Seiten
Wiley (Verlag)
9781394318247 (ISBN)
Straightforward and comprehensive textbook on programming and interfacing techniques for the PIC18F4321 microcontroller, supported by hundreds of illustrations throughout
Microcontroller Theory and Applications with the PIC18F presents core information on the theory of microcontrollers and the fundamental concepts of assembly and C language programming and interfacing techniques associated with the Microchip's PIC18F4321 microcontroller. Characteristics and principles common to typical microcontrollers are emphasized, and basic microcontroller interfacing techniques are demonstrated via examples using the simplest possible devices such as switches, LEDs, Seven-Segment Displays, and the hexadecimal keyboard. In addition, interfacing the PIC18F with other devices such as LCD displays, ADC, DAC is also included. Furthermore, topics such as CCP (Capture, Compare, PWM) and Serial I/O using assembly and C languages along with simple examples are also provided.
Information on the design of the PIC18F-based digital DC voltmeter and interfacing the PIC18F with PWM (Pulse Width Modulation) mode to a DC motor using both assembly and C languages is provided. Finally, PIC18F Serial I/O examples using both SPI and I2C modes are also included. All these examples are illustrated by means of successful implementations in the laboratory.
Building on the success of previous editions, this Third Edition has been extensively revised to include enhanced clarity in each chapter and additional illustrations, end-of-chapter problems, and examples. Certain concepts such as stack, bank-memory, programmed I/O, interrupt I/O, and CCP have been rewritten to better relate them to the PIC18F. Details on the MPLABX assembler/debugger and XC8 C-Compiler are now included as well.
Microcontroller Theory and Applications with the PIC18F includes information on:
- Microcontroller data types, unsigned and signed binary numbers and ASCII code, unpacked and packed binary-coded-decimal numbers, and the evolution of the microcontroller
- Provides guidelines on how to choose the right language (Assembly or C ) for specific applications
- PIC18F architecture and addressing modes, covering register architecture, memory organization, and program and data memories
- Programming PIC18F programmed I/O, interrupt I/O, and interfacing PIC18F4321 to a hexadecimal keyboard and a seven-segment display
- ADC, DAC, CCP, and Serial I/O interfacing techniques
M. Rafiquzzaman, Ph.D., P.E, Professor Emeritus, Electrical & Computer Engineering Department, California State Polytechnic University, Pomona, CA. Professor Rafiquzzaman has over 50 years of academic and industrial experience. He has authored 18 books (including all editions) on digital logic, microprocessors, microcontrollers, and computer architecture. His first popular book on microprocessors was published by Wiley in 1982 and his other books are published by Wiley, Prentice-Hall, CRC Press, Harper & Row, and West Publishing.
Dr. Rafiquzzaman is a member of the US Olympic committee. He managed Swimming, Diving, and Synchronized Swimming events of the 1984 Los Angeles Olympic Organizing Committee. He is currently President of Rafi Systems Inc., a high tech cataract lens manufacturing company in California.
Preface
Microcontrollers play a vital role in the design of digital systems. Microcontrollers evolved from single‐chip microcomputers during the 70s. The microcomputer contains CPU (central processing unit), memory, and I/O (input/output) on a single chip. Microcontrollers, on the other hand, typically contain CPU, memory, I/O, ADC (analog‐to‐digital converter), DAC (digital‐to‐analog Converter), hardware timers, and serial I/O on a single chip.
Intel Corporation is generally acknowledged as the company that introduced the first microprocessor (CPU on a chip) in the marketplace in 1971. Single‐chip microcomputers such as the Intel 8048 evolved during the late 70s. Soon afterward, based on the concept of single‐chip microcomputers, Intel introduced the first 8‐bit microcontroller: the Intel 8051. The microcontrollers became popular during the 80s. Microcontrollers are extensively used in embedded systems and are also called embedded controllers.
As an example of an embedded controller, consider a personal computer interfaced to a printer as the host. The microcontroller hidden inside the printer is the “embedded controller.” The purpose of the microcontroller, in this case, is to input data from the host and print it. Thus, an embedded controller typically performs only one task (printing in this case). Typical microcontroller applications include automobile engine control systems, implantable medical devices, remote controls, office machines, appliances, power tools, toys, and other embedded systems. Although Intel developed the first microcontroller, Intel is not that active in manufacturing contemporary microcontrollers. Typical microcontroller manufacturers include Microchip Technology, Texas Instruments, Arduino, and ARM.
Microchip Technology manufactures PIC18F 8‐bit microcontroller chips. The PIC18F is a very basic microcontroller chip. The PIC18F family is popular with both industrial developers and hobbyists due to their low cost, wide availability, and availability of low cost or free development tools. PIC18F microcontrollers are typically used for industrial automation, home automation, embedded systems, robotics, instrumentation, and control systems, education, and training.
Arduino (an Italian‐based company) offers licensing for microcontroller manufacturers to provide single boards with their microcontrollers. Arduino‐based microcontrollers are very popular in industries because they are easy to use and have strong features and tools that make them attractive for many applications. An example of a simple Arduino board consists of a Microchip/Atmel 8‐bit microcontroller, large amount of flash memory, serial I/O, and other features. Arduino is extensively used in home automation systems. Arduino boards, combined with sensors, actuators, and wireless connectivity, allow homeowners to control various aspects including lighting and temperature control, and automated security systems.
ARM (Advanced RISC Machine) is a UK‐based company that makes Reduced Instruction Set Computer (RISC)‐based designs and licenses to chip manufacturers. ARM does not actually manufacture any chip themselves. Instead, they design the architecture and cores of a processor and then partner companies like Apple, ST Microelectronics, and NXP who license those designs to build their own chips. ARM offers 32‐bit and 64‐bit CPU core. Due to their low costs, low power consumption, and low heat generation, ARM processors are useful for low‐powered devices such as smartphones, laptops, tablet computers, and embedded systems.
The PIC18F family continues to be popular. It provides a basic understanding of a typical and a simple microcontroller from chip level. Based upon over 50 years of industrial and academic experiences, the author feels that the PIC18F family is an excellent and powerful educational tool for a first course in microcontrollers from chip level. Arduino and ARM‐based microcontrollers can be covered in follow‐up courses or in senior projects.
The third edition of this book is written to enhance the coverage of the second edition and will present the fundamental concepts of assembly and C language programming and interfacing techniques associated with the Microchip’s PIC18F4321 microcontroller. The author believes in the basics. Hence, simple I/O devices such as switches and LEDs are used to illustrate I/O techniques. This is very important for the average students and beginners. Design of PIC18F‐based Digital DC voltmeter and then interfacing the PIC18F to DC motor using both assembly and C languages are provided. Several chapters of the second edition are re‐written, and new end‐of‐chapter problems will be included.
In the third edition, the first part of the book will contain theory of microcontrollers as in the second edition. However, several topics including microcontroller basics such as stack, memory banks, access bank, and programmed and interrupt I/O are clarified and enhanced. These concepts are then related to the PIC18F4321 in the second part of the book.
The PIC18F uses Harvard architecture with a RISC‐based CPU. Conventional CPUs complete fetch, decode, and execute cycles of an instruction in sequence. However, the PIC18F uses pipelining in which instruction fetch and execute cycles are overlapped. This speeds up instruction execution time of the PIC18F. Furthermore, coverage of CPU architectures, RISC vs. CISC, pipelining, assembly and C language programming, and I/O techniques associated with typical microcontrollers is presented in a more simplified manner in the first part of the book. These topics are then related to the PIC18F4321 in the second part of the book.
Several assembly and C language programs along with I/O examples are included using Microchip’s newer versions of MPLAB X assembler, XC8 C‐compiler, and PICKit4 module (for interfacing the PIC18F4321to a Personal Computer). These newer versions of the PIC18F assembler, C‐compiler, and PICKit4 interface module are used in developing the hardware and software in the third edition. One can build a PIC18F‐based system on a breadboard using one of the PIC18F devices such as the PIC18F4321. The designer can download the assembled or compiled programs using PICKit4 from the personal computer to the PIC18F4321 on the breadboard, and then perform meaningful experiments. This is the most inexpensive way for the students or beginners to implement experiments using a typical microcontroller chip such as the PIC18F4321.
Like the second edition, the third edition is also self‐contained and includes several basic topics that are updated and more clarified from the previous edition. Characteristics and principles common to typical microcontrollers are emphasized, and basic microcontroller interfacing techniques are demonstrated via examples using the simplest possible devices such as switches, LEDs, Seven‐segment displays to more advanced devices such as LCD displays., ADC (analog to digital converter), and DAC (digital to analog converter). Topics such as PWM (pulse width modulation), and Serial I/O are also included. These topics are presented in a more simplified manner in the third edition.
The book has evolved from the author’s 50+ years of industrial experience with microprocessors and microcontrollers, and from classroom notes for the microcontroller course taught at the Electrical and Computer Engineering Department, California State Polytechnic University, Pomona: ECE 3301 (Microcontroller Applications).
The text is divided into 11 chapters in the third edition. Most of these chapters are enhanced with more explanations along with examples and more end‐of‐chapter problems.
Chapter 1 is provided with a review of terminologies, number systems, and evolution of microcontrollers. Finally, a comparison of the basic features of a few popular microcontrollers comparable to the PIC18F along with typical microcontroller applications are included. Some of these topics such as state‐of‐the‐art in microcontroller applications and comparison of basic features of typical microcontroller chips are re‐written in this edition.
Chapters 2 through 9 form the nucleus of the book. Chapter 2 covers typical microcontroller architectures. The concepts of CPU architecture, program and data memory units, pipelining, and RISC vs. CISC are included. Certain topics such as the stack and bank memory are simplified and explained with more examples.
Chapter 3 is focused on the memory organization and I/O (input/output) techniques associated with typical microcontrollers. Topics such as main memory array design, including memory maps, are also covered. Typical microcontroller input/output techniques including programmed I/O and interrupt I/O are also included. In the third edition, microcontroller I/O techniques are explained with more examples in a simplified manner.
Chapter 4 contains programming concepts associated with typical microcontrollers. Topics include machine, assembly and C language programming, typical addressing modes, and instruction sets. More explanations are provided in the third edition relating them to the PIC18F MPLAB X assembler/debugger), and XC8 C‐compiler (newer versions than MPLAB and C18 in the second edition).
The theory of assembly and C programming languages and I/O techniques covered in Chapter 4 is demonstrated in Chapters 5 through 7 by means of a typical 8‐bit microcontroller. A specific device from the PIC18F...
| Erscheint lt. Verlag | 8.1.2025 |
|---|---|
| Sprache | englisch |
| Themenwelt | Mathematik / Informatik ► Informatik |
| Technik ► Elektrotechnik / Energietechnik | |
| Schlagworte | Computer on a chip • Embedded Controller • Firmware-only processor • Integrated Control Circuit • MCU (Microcontroller Unit) • Microcontroller • On-chip processor • One-chip Computer • Single-chip Computer • Single-chip Microcontroller |
| ISBN-13 | 9781394318247 / 9781394318247 |
| Informationen gemäß Produktsicherheitsverordnung (GPSR) | |
| Haben Sie eine Frage zum Produkt? |
Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM
Dateiformat: EPUB (Electronic Publication)
EPUB ist ein offener Standard für eBooks und eignet sich besonders zur Darstellung von Belletristik und Sachbüchern. Der Fließtext wird dynamisch an die Display- und Schriftgröße angepasst. Auch für mobile Lesegeräte ist EPUB daher gut geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich