Professional Documents
Culture Documents
2018
dce
2018
dce dce
2018
1
dce dce
2018
dce dce
2018
7 8
2
dce dce
2018
dce dce
2018
3
dce dce
2018
Introduction to Chapter 1
• Digital technology is widely used. Examples:
• MSI Logic Circuits
– Computers
– Decoders
– Manufacturing systems
– Encoders
– Multiplexers – Medical Science
– Demultiplexers – Transportation
– Entertainment
– Telecommunications
• Basic digital concepts and terminology are
introduced
13 14
dce dce
2018
40
45
40
37
42 41
35 35 34 35
temperature C
C
30 29
0
0
temperature
25 25 25 25
23 22
20
10 10
7
0
5
0 1 2
4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
15 16
4
dce dce
2018
17 18
dce dce
2018
19 20
5
dce dce
2018
dce dce
2018
23 24
6
dce dce
2018
25 26
dce dce
2018
27 28
7
dce dce
2018
Representing Binary Quantities 2018
Representing Binary Quantities
• Exact voltage level is not important in digital • Digital Signals and Timing Diagrams
systems. – Timing diagrams show voltage versus time.
• A voltage of 3.6 V will mean the same (binary 1) – Horizontal scale represents regular intervals of time
as a voltage of 4.3 V. beginning at time zero.
– Timing diagrams are used to show how digital signals
change with time.
– Timing diagrams are used to compare two or more
digital signals.
– The oscilloscope and logic analyzer are used to
produce timing diagrams.
29 30
dce dce
2018
Digital Circuits/Logic Circuits 2018
Parallel and Serial Transmission
• Digital circuits - produce and respond to • Parallel transmission – all bits in a binary
predefined voltage ranges. number are transmitted simultaneously. A
• Logic circuits – used interchangeably with separate line is required for each bit.
the term, digital circuits. • Serial transmission – each bit in a binary
• Digital integrated circuits (ICs) – provide number is transmitted per some time
logic operations in a small reliable interval.
package.
31 32
8
dce dce
2018
Parallel and Serial Transmission 2018
Memory
• Parallel transmission is faster but requires • A circuit which retains a response to a
more paths. momentary input is displaying memory.
• Memory is important because it provides a way
• Serial is slower but requires a single path.
to store binary numbers temporarily or
• Both methods have useful applications permanently.
which will be seen in later chapters. • Memory elements include:
– Magnetic
– Optical
– Electronic latching circuits
33 34
dce dce
2018
35 36
9
dce dce
2018
Digital Computers
• Major parts of a computer • Types of computers
– Input unit – processes instructions and data into the – Microcomputer
memory. • Most common (desktop PCs, notebook computers)
– Memory unit – stores data and instructions. • Has become very powerful
– Control unit – interprets instructions and sends appropriate – Minicomputer (workstation)
signals to other units as instructed.
– Mainframe
– Arithmetic/logic unit – arithmetic calculations and logical
decisions are performed. – Microcontroller
• Designed for a specific application
– Output unit – presents information from the memory to the
operator or process. • Dedicated or embedded controllers
• Used in appliances, manufacturing processes, auto ignition
– The control and arithmetic/logic units are often treated as
systems, ABS systems, and many other applications.
one and called the central processing unit (CPU)
37 38
dce dce
2018
Conversion 2018
Binary to Decimal Conversion
• The hexadecimal number system is introduced.
• Since different number systems may be used in a • Convert binary to decimal by summing the
system, it is important for a technician to understand how positions that contain a 1.
to convert between them.
• Binary codes that are used to represent different
information are also described. 1 0 0 1 0 12
25 2 4 23 2 2 21 2 0
32 0 0 4 0 1 37 10
1011.1012 = ?
39 40
10
dce dce
2018
Decimal to Binary Conversion 2018
Decimal to Binary Conversion
• Two methods to convert decimal to • Reverse process described above
binary: – Note that all positions must be accounted for
– Reverse process described above
– Use repeated division
3710 25 0 0 22 0 20
1 0 0 1 0 12
41 42
dce dce
2018
Decimal to Binary Conversion 2018
Decimal to Binary Conversion
• Repeated division steps:
– Divide the decimal number by 2
• Repeated division –
– Write the remainder after each division until a quotient
This flowchart
of zero is obtained. describes the
– The first remainder is the LSB and the last is the MSB process and can be
used to convert from
decimal to any other
number system.
43 44
11
dce dce
2018
45 46
dce dce
2018
Hexadecimal Number System 2018
Hexadecimal Number System
• Convert from decimal to hex by using the • Example of hex to binary conversion:
repeated division method used for decimal to
binary and decimal to octal conversion. 9F216 = 9 F 2
• Divide the decimal number by 16 1001 1111 0010 =
• The first remainder is the LSB and the last is
the MSB.
– Note, when done on a calculator a decimal
1001111100102
remainder can be multiplied by 16 to get the result.
If the remainder is greater than 9, the letters A
through F are used.
47 48
12
dce dce
2018
49 50
dce dce
2018
Number Systems Conversion 2018
BCD
• Binary Coded Decimal (BCD) is another way to
present decimal numbers in binary form.
• BCD is widely used and combines features of
both decimal and binary systems.
• Each digit is converted to a binary equivalent.
51 52
13
dce dce
2018
BCD 2018
BCD
• To convert the number 87410 to BCD: • BCD is not a number system.
• BCD is a decimal number with each digit
8 7 4 encoded to its binary equivalent.
1000 0111 0100 = 100001110100BCD • A BCD number is not the same as a
straight binary number.
• Each decimal digit is represented using 4 bits. • The primary advantage of BCD is the
relative ease of converting to and from
• Each 4-bit group can never be greater than 9.
decimal.
• Reverse the process to convert BCD to
decimal.
53 54
dce dce
2018
Gray Code
• The gray code is used in applications where
numbers change rapidly.
• In the gray code, only one bit changes from each
value to the next.
Binary Gray Code
000 000
001 001
010 011
011 010
100 110
101 111
110 101
111 100
55 56
14
dce dce
2018
57 58
dce dce
2018
59 60
15
dce dce
2018
Parity Method for Error Detection 2018
Parity Method for Error Detection
• The parity method of error detection • Even parity method – the total number of
requires the addition of an extra bit to a bits in a group including the parity bit must
code group. add up to an even number.
• This extra bit is called the parity bit. – The binary group 1 0 1 1 would require the
addition of a parity bit 1 1 0 1 1
• The bit can be either a 0 or 1, depending
on the number of 1s in the code group.
• There are two methods, even and odd.
61 62
dce dce
2018
Parity Method for Error Detection 2018
Parity Method for Error Detection
• Odd parity method – the total number of • The transmitter and receiver must “agree”
bits in a group including the parity bit must on the type of parity checking used.
add up to an odd number. • Two bit errors would not indicate a parity
– The binary group 1 1 1 1 would require the error.
addition of a parity bit 1 1 1 1 1
• Both odd and even parity methods are
used, but even seems to be used more
often.
63 64
16
dce dce
2018
Odd Parity Error Detection 2018
Quiz
1. BCD code of 25810
• Original data 10011010 A. 001001011000
• With Odd Parity 110011010 B. 001001101000
C. 101011000
• 1-bit error 110111010 D. 00101011000
• 3-bit error 100110010 3. Odd parity bits for codes 11111, 10101, 10001
A. 1-0-1
• Number of 1s even indicates error B. 1-1-0
C. 0-1-0
D. 0-0-1
65 66
17