Skip to Content
Fundamentals of Digital Logic and Microcontrollers, 6th Edition
book

Fundamentals of Digital Logic and Microcontrollers, 6th Edition

by M. Rafiquzzaman
September 2014
Intermediate to advanced
512 pages
14h 29m
English
Wiley
Content preview from Fundamentals of Digital Logic and Microcontrollers, 6th Edition

Chapter 2Number Systems and Codes

This chapter describes the basics of number systems, codes, and error detection/correction. Note that adequate coverage of Number Systems and Codes is included in this chapter. This will provide sufficient background to understand the concepts described in the chapters that follow.

2.1 Number Systems

A computer, like all digital systems, utilizes two states to represent information. These two states are given the symbols 0, and 1. It is important to remember that these 0's and 1's are symbols for the two states and have no inherent numerical meanings of their own. These two digits are called binary digits (bits) and can be used to represent numbers of any magnitude. Digital systems including the microcontroller carry out all arithmetic and logic operations internally using binary numbers. Because binary numbers are long, a more compact form using some other number system is preferable to represent them. The computer user finds it convenient to work with this compact form. Hence, it is important to understand the various number systems used with computers. These are described in the following sections.

2.1.1 General Number Representation

In general, N can be written as a string of digits whose integer parts(dp-1,dp-2, ......,d1,d0) and fractional parts (d−1 “ d-q) are separated by the radix or decimal point (•). In this format, the number N is represented as

2.1

If a number has no fractional portion, then the number is called an integer number ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mastering Digital Electronics: An Ultimate Guide to Logic Circuits and Advanced Circuitry

Mastering Digital Electronics: An Ultimate Guide to Logic Circuits and Advanced Circuitry

Hubert Henry Ward

Publisher Resources

ISBN: 9781118969304Purchase bookOther