1-Principles of Digital Systems - 1
1-Principles of Digital Systems - 1
Faculty of Technology
Electrical and Computer Engineering Department
The major difference between analog and digital quantities, then, can be simply stated as
follows:
• analog continuous
• digital discrete (step by step)
An analog system contains devices that manipulate physical quantities that are represented
in analog form.
The digit that carries the most weight of the digits; it is referred to as the most significant digit
(MSD), the digit that carries the least weight and is called the least significant digit (LSD).
Eg: 1011.1012 = 1𝑥23 + 0𝑥22 + 1𝑥21 + 1𝑥20 + 1𝑥2−1 + 0𝑥2−2 + 1𝑥2−3 = 11.62510
Binary counting: The sequence (shown in Figure below) begins with all bits at 0; this is called
the zero count.
For a given number system, by using N digits or places, we can go through 𝑏 𝑁 counts
where b is the given base. The last count is given by 𝑏 𝑁 − 1.
For example, with two digits in base 10, we can go through counts (00 through 99 ); with four
bits in base 2, we can go through counts (0000 through 1111 ); and so on.
Self assessment
1. What is the decimal equivalent of 11010112 ?
2. What is the next binary number following 101112 in the counting sequence?
3. What is the largest decimal value that can be represented using 12 bits?
In electronic digital systems, binary information is represented by voltages (or currents) that
are present at the inputs and outputs of the various circuits. Typically, the binary 0 and 1 are
represented by two nominal voltage levels. For example, zero volts (0 V) might represent
binary 0, and 5 V might represent binary 1.
In actuality, because of circuit variations, the 0 and 1 would be represented by voltage ranges.
In digital systems, the exact value of a voltage is not important; for example, for the voltage
assignments of Figure below, a voltage of 3.6 V means the same as a voltage of 4.3 V. In analog
systems, the exact value of a voltage is important.
Logic Circuits: The manner in which a digital circuit responds to an input is referred to as the
circuit’s logic. Each type of digital circuit obeys a certain set of logic rules. For this reason,
digital circuits are also called logic circuits.
Digital Integrated Circuits: Almost all of the digital circuits used in modern digital systems are
integrated circuits (ICs). Several integrated-circuit fabrication technologies are used to
produce digital ICs, the most common being CMOS, TTL, NMOS, and ECL.
Serial transmission of data sends a single bit at a time over a single wire sequentially (e.g.
From computer to modem).
The principal trade-off between parallel and serial representations is one of speed versus
circuit simplicity. The parallel transmission of binary data from one part of a digital system is
fast, but complex where as serial transmission is slow but simple (needs fewer number of
transmission lines).
6. Memory
In digital circuitry that have memory, they can retain the response (output) to a momentary
input is called memory.
Self assessment
1. What is the difference between a digital circuit that has memory and the one
that does not.
2. Name the five major functional units of a computer.
3. Which two units make up the CPU?
4. An IC chip that contains a CPU is called a _____.
Electrical and Computer Engineering Department 4
Digital Logic Design
Recall
2. What
✓ Theistwo
thebasic
nextways
binary number following
of representing 10111
the numerical 2 in
value the counting
of physical quantities are
analog (continuous) and digital (discrete).
✓ Most quantities in the real world are analog, but digital techniques are generally
superior to analog techniques, and most of the predicted advances will be in the
digital realm.
✓ The binary number system (0 and 1) is the basic system used in digital technology.
✓ Digital or logic circuits operate on voltages that fall in prescribed ranges that
represent either a binary 0 or a binary 1.
✓ The two basic ways to transfer digital information are parallel—all bits
simultaneously—and serial—one bit at a time.
✓ The main parts of all computers are the input, control, memory, arithmetic/logic,
and output units.
✓ The combination of the arithmetic/logic unit and the control unit makes up the
CPU (central processing unit).
✓ A microcomputer usually has a CPU that is on a single chip called a
microprocessor.
✓ A microcontroller is a microcomputer especially designed for dedicated (not
general-purpose) control applications
Bytes: Most microcomputers handle and store binary data and information in groups of
eight bits, so a special name is given to a string of eight bits: it is called a byte.
Nibbles: Binary numbers are often broken down into groups of four bits, used with BCD
codes and hexadecimal number conversions. Because it is half as big as a byte, it was named
a nibble.
Words: A word is a group of bits that represents a certain unit of information that a computer
can process at a time. The word size can be defined as the number of bits in the binary word
that a digital system operates on. For example, personal computer on can handle four or eight
bytes at a time, so it has a word size of 32 or 64 bits resp.
Self assessment
1. How many bytes are needed to represent 235 10 in binary?
2. What is the largest decimal value that can be represented in BCD using two
bytes?
3. How many hex digits can a nibble represent?
4. How many nibbles are in one BCD digit?
5. A typical CD-ROM can store 650 megabytes of digital data. How many bits of data
can a CD-ROM hold? (Mega = 220 )
9. Alphanumeric Codes
A computer should recognize codes that represent letters of the alphabet, punctuation marks,
and other special characters as well as numbers. These codes are called alphanumeric codes.
A complete alphanumeric code would include the 26 lowercase letters, 26 up percase letters,
10 numeric digits, 7 punctuation marks, and anywhere from 20 to 40 other characters, such
as ?, /, #, %, *, and so on.
American Standard Code for Information Interchange (ASCII): every alphanumerals are
represented by seven-bit binary code.
Parity Bit: A parity bit is an extra bit that is attached to a code group that is being transferred
from one location to another. The parity bit is made either 0 or 1, depending on the number
of 1s that are contained in the code group.
In the even-parity method, the value of the parity bit is chosen so that the total number of
1s in the code group (including the parity bit) is an even number. For example, suppose that
the group is 1000011. The code group has three 1s. Therefore, we will add a parity bit of 1
to make the total number of 1s an even number. The new code group, including the parity
bit, thus becomes
The odd-parity method is used in exactly the same way except that the parity bit is chosen so
the total number of 1s (including the parity bit) is an odd number. For example, for the code
group 1000001, the assigned parity bit would be a 1. For the code group 1000011, the parity
bit would be a 0.
Recall
2. What
✓ Theishexadecimal
the next binary number
number system isfollowing 10111
used in digital 2 in and
systems the computers
counting as an
efficient way of representing binary quantities.
✓ In conversions between hex and binary, each hex digit corresponds to four bits.
✓ The repeated-division method is used to convert decimal numbers to binary or
hexadecimal.
✓ Using an N-bit binary number, we can represent decimal values from 0 to 2N-1
✓ The BCD code for a decimal number is formed by converting each digit of the
decimal number to its four-bit binary equivalent.
✓ The Gray code defines a sequence of bit patterns in which only one bit changes
between successive patterns in the sequence.
✓ A byte is a string of eight bits. A nibble is four bits. The word size depends on the
system.
✓ An alphanumeric code is one that uses groups of bits to represent all of the
various characters and functions that are part of a typical computer’s keyboard.
✓ The ASCII code is the most widely used alphanumeric code.
✓ The parity method for error detection attaches a special parity bit to each
transmitted group of bits