Contents

Preface

1 Number Systems

1.1 Analogue Versus Digital

1.2 Introduction to Number Systems

1.3 Decimal Number System

1.4 Binary Number System

1.4.1 Advantages

1.5 Octal Number System

1.6 Hexadecimal Number System

1.7 Number Systems – Some Common Terms

1.7.1 Binary Number System

1.7.2 Decimal Number System

1.7.3 Octal Number System

1.7.4 Hexadecimal Number System

1.8 Number Representation in Binary

1.8.1 Sign-Bit Magnitude

1.8.2 1's Complement

1.8.3 2's Complement

1.9 Finding the Decimal Equivalent

1.9.1 Binary-to-Decimal Conversion

1.9.2 Octal-to-Decimal Conversion

1.9.3 Hexadecimal-to-Decimal Conversion

1.10 Decimal-to-Binary Conversion

1.11 Decimal-to-Octal Conversion

1.12 Decimal-to-Hexadecimal Conversion

1.13 Binary–Octal and Octal–Binary Conversions

1.14 Hex–Binary and Binary–Hex Conversions

1.15 Hex–Octal and Octal–Hex Conversions

1.16 The Four Axioms

1.17 Floating-Point Numbers

1.17.1 Range of Numbers and Precision

1.17.2 Floating-Point Number Formats

Review Questions

Problems

Further Reading

2 Binary Codes

2.1 Binary Coded Decimal

2.1.1 BCD-to-Binary Conversion

2.1.2 Binary-to-BCD Conversion

2.1.3 Higher-Density BCD Encoding

2.1.4 Packed and Unpacked BCD Numbers

2.2 Excess-3 Code

2.3 Gray Code

2.3.1 Binary–Gray Code Conversion

2.3.2 Gray Code–Binary Conversion

2.3.3 n-ary Gray Code

2.3.4 Applications

2.4 Alphanumeric Codes

2.4.1 ASCII code

2.4.2 EBCDIC code

2.4.3 Unicode

2.5 Seven-segment Display Code

2.6 Error Detection and Correction Codes

2.6.1 Parity Code

2.6.2 ...

Get Digital Electronics: Principles, Devices and Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.