Microcontroller Programming
eBook - ePub

Microcontroller Programming

An Introduction

  1. 546 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Microcontroller Programming

An Introduction

About this book

Microcontroller Programming: An Introduction is a comprehensive one-stop resource that covers the concepts, principles, solution development, and associated techniques involved in microcontroller-based systems. Focusing on the elements and features of the popular and powerful Motorola 68HC11 microcontroller IC as a representative example, this book

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Microcontroller Programming by Syed R. Rizvi in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Engineering. We have over one million books available in our catalogue for you to explore.

Information

1

Number Systems, Operations, and Codes

… Read Euler, because in his writings all is clear, well calculated, because they teem with beautiful examples, and because one must always study the sources.
—Joseph L. Lagrange* (on his deathbed, 1813)
OUTLINE
1.1 Introduction
1.2 Digital versus Analog Quantities
1.3 Digital Numbering System (Base 10)
1.4 Binary Numbering System (Base 2)
1.5 Octal Numbering System (Base 8)
1.6 Hexadecimal Numbering System (Base 16)
1.7 Binary-Coded-Decimal System
1.8 Binary Conversions
1.9 Binary Operations
1.10 Octal Conversions
1.11 Hexadecimal Conversions
1.12 Hexadecimal Operations
1.13 1’s and 2’s Complements of Binary Numbers
1.14 Signed Numbers
1.15 The ASCII Code
1.16 Summary

OBJECTIVES

Upon completion of this chapter, you should be able to
1. Appreciate the difference between digital and analog quantities.
2. Determine the weighting factor for each digit position in the decimal, binary, octal, and hexadecimal numbering systems.
3. Convert any number from one of the four number systems (decimal, binary, octal, or hexadecimal) to its equivalent value in any of the remaining three numbering systems.
4. Apply arithmetic operations to the binary and hexadecimal number systems.
5. Describe the format and use of binary-coded-decimal (BCD) numbers.
6. Convert a binary number to its 1’s and 2’s complement form.
7. Express positive and negative numbers in sign-magnitude, 1’s complement, and 2’s complement form.
8. Determine the ASCII code for any alphanumeric data by using the ASCII code translation table.
Key Terms: Alpha Numeric, Analog, ASCII Code, BCD, Binary, Bit, Byte, Decimal, Digital, Hexadecimal, Least Significant Bit (LSB), Least Significant Digit (LSD), Most Significant Bit (MSB), Most Significant Digit (MSD), Nibble, Octal, Octet, Parity

1.1 Introduction

There are many ways in which we can represent a numeric value. Each convention for representing numeric values is called a number system. The term “number,” to most of us, immediately brings to mind the familiar decimal number system with its 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. It may sound bizarre to discuss number systems with only two digits, or five, or perhaps eight, but in reality, the only reason we use the decimal numbers is because we have ten fingers that led us to the ten basic symbols of the decimal number system. In this chapter, we will discuss the four number systems (decimal, binary, octal, or hexadecimal), and study their relationship to each other. These systems are essential to the study of digital computing. The binary number system and digital codes are fundamental to computing devices such as microcontrollers and to digital electronics in general. The major reason why binary digits are...

Table of contents

  1. Cover
  2. Half Title
  3. Title Page
  4. Copyright Page
  5. Dedication
  6. Table of Contents
  7. Preface
  8. Acknowledgments
  9. The Author
  10. 1. Number Systems, Operations, and Codes
  11. 2. Semiconductors and Digital Logic
  12. 3. Microcontroller Hardware
  13. 4. Microcontroller Software
  14. 5. Instructions
  15. 6. Control Structures and Subroutines
  16. 7. Hello World!
  17. 8. Input/Output (I/O) Ports
  18. 9. Interrupts
  19. 10. Analog Capture
  20. 11. Input Capture
  21. 12. Higher-Level Programming
  22. Appendix 1—Supplemental Web Site
  23. Appendix 2—States and Resolution for Binary Numbers
  24. Appendix 3—Basic Boolean Theorems and Identities
  25. Appendix 4—The Resistor Color Code
  26. Appendix 5—Waterfall Software Development Lifecycle Model
  27. Appendix 6—Loading Your Program into the EEPROM
  28. Appendix 7—Pulse-Width Modulation
  29. Appendix 8—HC11 Instruction Set
  30. Appendix 9—Comprehensive Glossary
  31. Index