PIC Microcontrollers: An Introduction to Microelectronics / Edition 3

Paperback (Print)
Buy Used
Buy Used from BN.com
$24.68
(Save 41%)
Item is in good condition but packaging may have signs of shelf wear/aging or torn packaging.
Condition: Used – Good details
Used and New from Other Sellers
Used and New from Other Sellers
from $7.08
Usually ships in 1-2 business days
(Save 83%)
Other sellers (Paperback)
  • All (9) from $7.08   
  • New (5) from $34.59   
  • Used (4) from $7.08   

Overview

PIC Microcontrollers provides a comprehensive and fully illustrated introduction to microelectronic systems principles using the best-selling PIC16 range. Building on the success of previous editions, this third edition will enable readers to understand PIC products and related programming tools, and develop relevant design skills in order to successfully create new projects. Key features include:

  • Initial focus on the 16F84A chip to introduce the basic architecture and programming techniques, progressing to more recently introduced devices, such as the 16F690, and comparison of the whole PIC16 range
  • Use of the standard Microchip development software, MPLAB IDE, as well the interactive ECAD package Proteus VSM
  • Standard Microchip demo hardware, specially designed application boards, in-circuit programming and debugging
  • Basic interfacing, motor drives, temperature control and general control system applications
  • Numerous fully documented code examples which can be downloaded from the companion website

The book is aimed principally at students of electronics on advanced vocational and undergraduate courses, as well as home enthusiasts and professional engineers seeking to incorporate microcontrollers into industrial applications.


  • A focus on the 16F84A as the starting point for introducing the basic programming principles and architecture of the PIC, progressing to newer chips in the 16F range, in particular the 16F690, and Microchip starter kits
  • How to use the free Microchip development environment MPLAB IDE, plus Proteus VSM interactive electronic design software, to develop your own applications
  • Numerous fully-documented, working code examples downloadable from the companion website

Audience: First / second year undergraduate courses in microelectronics e.g. Microelectronic Systems; Introduction to Microprocessor / Microcontrollers Systems; introductory Embedded Systems Design; Control Electronics. Student projects using the PIC. Electronics engineers (including embedded systems designers, control engineers), technicians in industry, hobbyists.

Read More Show Less

Editorial Reviews

From the Publisher
"For undergraduate students and entry level hobbyists, this introductory volume on programming PIC microcontrollers provides practical instruction, as well as theoretical background information, in working with modern microelectronics. Beginning with an overview of terms and concepts, the work covers topics such as microcontroller architecture, application design, program debugging, PIC motor applications, and control systems. Chapters include illustrations, code examples, exercise questions and sample applications, and access to additional online resources is provided. This third edition is updated to account for advances in microcontroller technology and references both modern chips as well as the classic PIC16F84A. Author information is not provided."—Reference and Research News, October 2012
Read More Show Less

Product Details

  • ISBN-13: 9780080969114
  • Publisher: Elsevier Science
  • Publication date: 10/25/2011
  • Edition description: New Edition
  • Edition number: 3
  • Pages: 456
  • Product dimensions: 7.40 (w) x 9.20 (h) x 0.80 (d)

Meet the Author

Martin Bates is one of the leading authors specializing in introductory level texts on PIC microcontrollers for the academic, professional and hobby markets, with 20 years’ experience of teaching microprocessor systems.

Read More Show Less

Read an Excerpt

PIC Microcontrollers

An Introduction to Microelectronics
By Martin Bates

Newnes

Copyright © 2011 Martin Bates
All right reserved.

ISBN: 978-0-08-096916-9


Chapter One

Computer Systems

Chapter Outline

1.1. Personal Computer System 5 1.1.1. PC Hardware 6 1.1.2. PC Motherboard 7 1.1.3. PC Memory 9 1.2. Word-Processor Operation 10 1.2.1. Starting the Computer 10 1.2.2. Starting the Application 10 1.2.3. Data Input 11 1.2.4. Data Storage 11 1.2.5. Data Processing 11 1.2.6. Data Output 12 1.3. Microprocessor Systems 13 1.3.1. System Operation 14 1.3.2. Program Execution 15 1.3.3. Execution Cycle 16 1.4. Microcontroller Applications 17 1.4.1. Microcontroller Application Design 17 1.4.2. Programming a Microcontroller 23 Questions 1 25 Activities 1 26

Chapter Points

• A microprocessor system consists of data input, storage, processing and output devices, under the control of a CPU.

• The main unit of a desktop PC is a modular system, consisting of the motherboard, power supply and disk drives.

• The motherboard carries the microprocessor (CPU), RAM, BIOS ROM, bus controllers and I/O interfaces.

• The CPU communicates with the main system chips via a shared set of address and data bus lines.

• The microcontroller provides most of the features of a conventional microprocessor system on one chip.

In this chapter, we will start with something familiar, looking at how a personal computer (PC) works when running a word processor, to establish a few technical concepts that are used in microcontrollers (MCUs). Hopefully, most readers will be familiar with this, and will know how the application functions from the user's point of view. Some basic microcontroller system ideas will be introduced by analyzing how software interacts with computer hardware, allowing the user to enter, store and process documents. For example, we will see why different kinds of memory are needed to support the system operation. If you are familiar with these concepts, you can skip this chapter.

The PC also provides the hardware platform for the PIC® program development system. The programs for the PIC are written using a text editor, and the machine code program is created and downloaded to the PIC chip using the PC. The PIC development system hardware can be seen connected in Figure 1.1. We will see how this works later.

We will also have a quick look at a basic microcontroller system, set up to operate as a simple equivalent of the microprocessor-based PC system, to see how it compares. Here, the microcontroller has a keypad with only 12 keys instead of a keyboard, and a seven-segment display instead of a screen. Its memory is much smaller than the PC, yet it can carry out the same basic tasks. In fact, it is far more versatile; the Intel™ processors used in the PC are designed specifically for that system. The microcontroller can be used in a great variety of circuits, and it is much cheaper.

1.1. Personal Computer System

The conventional desktop system comprises a main unit, separate keyboard and mouse, and monitor. The main unit has connectors for these (when wireless peripherals are not available) and universal serial bus (USB) ports for memory sticks, printers, scanners, etc., as well as hardwired (Ethernet), or wireless (Wi-Fi) network interfaces. The circuit board (motherboard) in the main unit carries a group of chips which work together to provide digital processing of information and control of input and output devices. A power supply for the motherboard and the peripheral devices is included in the main unit.

The laptop has the same components in a compact form, with integrated keyboard and screen, while tablet computers are even more compact with a touch-sensitive screen and no keyboard. The difference between a microprocessor and microcontroller system is illustrated quite well by comparing a desktop computer with a touch-screen game console or mobile phone. The facilities and applications are similar, they just differ in scale and complexity.

A block diagram (Figure 1.2a) is a good way to show such a system in simplified form, so we can identify the main components and how they connect. In the case of the disk drives and network, for example, the information flow is bidirectional, representing the process of saving data to, and retrieving data from, the hard disk or server. The internal architecture of a microcontroller is shown in its data sheet as a block diagram.

Any microprocessor or microcontroller system must have software to run on the hardware. In a desktop, this is stored on a hard disk inside the main unit; this can hold a large amount of data that is retained when the power is off. There are two main types of software required: the operating system (e.g. Microsoft® Windows) and the application (e.g. Microsoft® Word). As well as the operating system and application software, the hard disk stores the data created by the user, in this case, document files.

The keyboard is used for data input, and the screen displays the resulting document. The mouse provides an additional input device, allowing control operations to be selected from menus or by clicking on icons and buttons. This provides a much more user-friendly interface than earlier computers, which had a command-line interface. Then, actions were initiated by typing a text command such as 'dir' to show a directory (folder) of files. Network specialists still use this type of interface as it allows batch files (list of commands) to be created to control system operation. The network interface allows us to download data or applications from a local or remote server, or share resources such as printers over a local area network (LAN) and provide access to a wide area network (WAN), usually the Internet. In the domestic environment, a modem is currently needed to connect to the Internet via a telephone line or cable service. The network browser (e.g. Microsoft® Internet Explorer) is then another essential application.

1.1.1. PC Hardware

Inside the PC main unit (Figure 1.2b), the traditional motherboard has slots for expansion boards and memory modules to be added to the system. The power supply and disk drives are fitted separately into the main unit frame. The keyboard and mouse interface are integrated on the motherboard. In older designs, expansion boards carried interface circuits for the disk drives and external peripherals such as the display and printer, but these functions are now increasingly incorporated into the motherboard itself. Peripherals are now usually connected via USB or wirelessly.

The desktop PC is a modular system, which allows the hardware to be put together to meet the individual user's requirements, with components sourced from different specialist suppliers, and allows subsystems, such as disk drives and keyboard, to be easily replaced if faulty. This also allows easy upgrading (e.g. fitting extra memory chips) and also makes the PC architecture well suited to industrial applications. In this case, the PC can be 'ruggedized' (put into a more robust casing) for use on the factory floor. This modular architecture is one of the reasons for the success of the desktop PC hardware, which has continued in the same basic form for many years, as a universal processor platform. The laptop is the main alternative for the general user, but it is not so flexible, and tends to be replaced rather than upgraded. Another reason for its success is the dominance of Microsoft operating systems, which have developed in conjunction with the Intel-based hardware, providing a standard platform for domestic, commercial and industrial computers.

1.1.2. PC Motherboard

The main features of typical motherboards are shown in Figure 1.3. The heart of the system is the microprocessor, a single chip, or central processing unit (CPU). The CPU controls all the other system components, and must have access to a suitable program in memory before it can do anything useful. The blocks of program required at any one time are provided by both the operating system and the application software, which are downloaded to random access memory (RAM) from the hard disk as required. The programs consist of lists of machine code instructions (binary code) that are executed in sequence by the CPU.

The Intel CPU has undergone rapid and continuous development since the introduction of the PC in the early 1980s. Intel processors are classified as complex instruction set computer (CISC) chips, which means they have a relatively large number of instructions that can be used in a number of different ways. This makes them powerful, but relatively slow compared with processors that have fewer instructions; these are classified as reduced instruction set computer (RISC) chips, of which the PIC microcontroller is an example.

The CPU needs memory and input/output devices for getting data in, storing it and sending it out again. The main memory block is made up of RAM chips, which are generally mounted in Dual In-line Memory Modules (DIMMs). As far as possible, input/output (I/O) interfacing hardware is fitted on the motherboard (keyboard, mouse, USB, etc., preferably wireless), but additional peripheral interfacing boards may be fitted in the expansion card slots to connect the main board to extra disk drives and other specialist peripherals, traditionally using the PCI bus, a parallel data highway 32 bits wide.

All these parts are connected together via a pair of bus controller chips, which handle parallel data transfers between the CPU and the system. The 'northbridge' provides fast access to RAM and the graphics (screen) interface, while its partner, the 'southbridge', handles slower peripherals such as the disk drives, network and PCI bus. The motherboard itself can be represented as a block diagram (Figure 1.4) to show how the components are interconnected.

The block diagram shows that the CPU is connected to the peripheral interfaces by a set of bus lines. These are groups of connections on the motherboard, which work together to transfer the data from the inputs, such as the keyboard, to the processor, and from the processor to memory. When the data has been processed and stored, it can be sent to an output peripheral, such as the screen.

Buses connect all the main chips in the system together, but, because they mainly operate as shared connections, can only pass data to or from one peripheral interface or memory location at a time. This arrangement is used because separate connections to all the main chips would need an impossible number of tracks on the motherboard. The disadvantage of bus connection is that it slows down the program execution speed, because all data transfers use the same set of lines, and only one data word can be present on the bus at any one time. To help compensate for this, the bus connections are as wide as possible. For example, a 64-bit bus, operating at 100 MHz (108 Hz), can transfer 6.4 gigabits (6.4 × 109 bits) per second. The current generation of Intel® CPUs also use multiple (typically 4) 64-bit cores in one chip to improve performance.

1.1.3. PC Memory

There are two principal types of memory in the PC system. The main memory block is RAM, where input data is stored before and after processing in the CPU. The operating system and application program are also copied to RAM from disk for execution, because access to data in RAM is faster. Unfortunately, RAM storage is 'volatile', which means that the data and application software disappear when the PC is switched off, and these have to be reloaded each time the computer is switched back on.

(Continues...)



Excerpted from PIC Microcontrollers by Martin Bates Copyright © 2011 by Martin Bates. Excerpted by permission of Newnes. All rights reserved. No part of this excerpt may be reproduced or reprinted without permission in writing from the publisher.
Excerpts are provided by Dial-A-Book Inc. solely for the personal use of visitors to this web site.

Read More Show Less

Table of Contents

Preface Introduction Chapter 1 Computer Systems Chapter 2 Microcontroller Operation Chapter 3 A Simple PIC Application Chapter 4 PIC Program Development Chapter 5 Internal Architecture Chapter 6 Programming Techniques Chapter 7 Development Systems Chapter 8 Application Design Chapter 9 Program Debugging Chapter 10 Hardware Prototyping Chapter 11 Motor Applications Chapter 12 More PIC Microcontrollers Chapter 13 More PIC Applications Chapter 14 More Control Systems Appendix A: Binary Numbers Appendix B: Microelectronic Devices Appendix C: Digital Systems Appendix D: DIZI84 Board Appendix E: DIZI690 Board References & Links Index

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)