1 Introductory Concepts
1 Introductory Concepts
1 Introductory Concepts
1
Outline
1.1 Numerical Representations
1.2 Digital and Analog Systems
1.3 Digital Number Systems
1.4 Representing Binary Quantities
1.5 Digital Circuits/Logic Circuits
1.6 Parallel and Serial Transmission
1.7 Memory
1.8 Digital Computers
2 9/30/2022
Objectives (1)
• Distinguish between analog and digital representations
• Cite the advantages and drawbacks of digital techniques compared with analog
• Understand the need for analog-to-digital converters (ADCs) and digital-to-analog
converters (DACs)
• Recognize the basic characteristics of the binary number system
• Convert a binary number to its decimal equivalent
• Count in the binary number system
3 9/30/2022
Objectives (2)
• Identify typical digital signals
• Identify a timing diagram
• State the differences between parallel and serial transmission
• Describe the property of memory
• Describe the major parts of a digital computer and understand their functions
• Distinguish among microcomputers, microprocessors, and microcontrollers
4 9/30/2022
1.1 Numerical Representations
- Two ways of representing the numerical value of quantities: analog and digital.
- In analog representation a quantity is represented by a continuously variable, proportional
indicator.
Digital
Digitalization
Analog
6 9/30/2022
1.1 Numerical Representations (cont.)
7 9/30/2022
1.1 Numerical Representations (cont.)
(solenoid)
Speaker
Analog signal
(current signal)
Tape recorder
Microphone
Sound signal
8 9/30/2022
1.1 Numerical Representations (cont.)
Remark!!!
Analog ≡ Continuous
Digital ≡ Discrete (step by step)
9 9/30/2022
1.1 Numerical Representations (cont.)
Example 1.1: Which of the following involve analog quantities and which involve
digital quantities?
(a) Ten-position switch
(b) Current flowing from an electrical outlet
(c) Temperature of a room
(d) Sand grains on the beach
(e) Automobile fuel gauge
(a) Digital
(b) Analog
(c) Analog
(d) Digital, since the number of grains can be only certain discrete (integer)
values and not every possible value over a continuous range
(e) Analog, if needle type; digital, if numerical readout or bar graph display
10
1.2 Digital and Analog Systems
Definition:
• A digital system is a combination of devices designed to manipulate logical
information or physical quantities that are represented in digital form; that is,
the quantities can take on only discrete values.
• An analog system contains devices that manipulate physical quantities that are
represented in analog form. In an analog system, the quantities can vary over a
continuous range of values.
11 9/30/2022
1.2 Digital and Analog Systems (cont.)
12 9/30/2022
1.2 Digital and Analog Systems (cont.)
• Accuracy is measuring near the target/true value while Precision is getting the consistent
results of repeated measurements.
• In other words, accuracy is the difference between the observations/measurements and the
true/actual value of the part, while precision is the variation in measurements obtained when
measuring the same part several times with the same instrument.
13
1.2 Digital and Analog Systems (cont.)
14
1.2 Digital and Analog Systems (cont.)
15
1.2 Digital and Analog Systems (cont.)
16 9/30/2022
1.2 Digital and Analog Systems (cont.)
Example for “the real world is analog”
Digital-to-analog
converter (DAC)
Analog-to-digital
converter (ADC)
A roll of film
18 9/30/2022
1.2 Digital and Analog Systems (cont.)
Example for “processing digitized signals takes time”
20 9/30/2022
1.2 Digital and Analog Systems (cont.)
Example for “processing digitized signals takes time”
• A final solution is used just a couple of op-amps and a few dollars’ worth of other
components: a totally analog approach.
• Today we have accessed to processors fast enough and measurement techniques
precise enough to accomplish this feat, but the simplest solution is still analog.
21
1.2 Digital and Analog Systems (cont.)
• Ordinary Location Relays
• Multiple styles available in octal base, square base,
flange mounted, miniature, and miniature slim-line
• Pole combinations available in SPDT, DPDT, 3PDT,
4PDT with a carrying current rating of 5A-25A
• Operating coil voltage options in 24-240V AC and 12-
110V DC
• Optional indicating light and/or mechanical actuator
https://www.c3controls.com/products/gene
ral-purpose-relays/
22
Sockets & Retainer Clips
1.3 Digital Number Systems
23 9/30/2022
1.3 Digital Number Systems (cont.)
1.3.1 Decimal system (cont.) Example for the number is 2745.214
positional-value system
24 9/30/2022
1.3 Digital Number Systems (cont.)
1.3.2 Binary system
Definition: In the binary system, there are only two symbols or possible digit
values, 0 and 1.
• Even so, this base-2 system can be used to represent any quantity that can be
represented in decimal or other number systems.
• In general, it will take a greater number of binary digits to express a given quantity.
25 9/30/2022
1.3 Digital Number Systems (cont.)
1.3.2 Binary system (cont.)
Binary position values as powers of 2
26
1011.1012 = 11.62510
1.3 Digital Number Systems (cont.)
27 9/30/2022
1.3 Digital Number Systems (cont.)
28 9/30/2022
1.3 Digital Number Systems (cont.)
29 9/30/2022
1.3 Digital Number Systems (cont.)
Examples:
What is the largest number that can be represented using eight bits?
30 9/30/2022
1.4 Representing Binary Quantities
31 9/30/2022
1.4 Representing Binary Quantities (cont.)
• Represented by any device with only two
states
• A switch: closed or open
• Compact disc (CD)
• Digital lock
• Light bulb (bright or dark)
• Diode (conducting or non-conducting)
• Electromagnet (energized or de-energized)
• Transistor (cut off or saturated)
• Photo-cell (illuminated or dark)
• Thermostat (open or closed)
• Spot on a magnetic disk (magnetized or
demagnetized).
32
1.4 Representing Binary Quantities (cont.)
33
1.4 Representing Binary Quantities (cont.)
timing diagram
34 9/30/2022 (a) Typical voltage assignments in digital system; (b) typical digital signal timing diagram
1.4 Representing Binary Quantities (cont.)
35
1.5 Digital Circuits/Logic Circuits
Definition:
• Digital circuits are designed to produce the output voltages that fall within the prescribed
0 and 1 voltage ranges.
• Likewise, digital circuits are designed to respond predictably to input voltages that are
within the defined 0 and 1 ranges.
voltage
36 9/30/2022
1.5 Digital Circuits/Logic Circuits (cont.)
voltage
• Logic Circuits
The output is shown for two different
input signal waveforms. Note that is
the same for both cases because the
two input waveforms, while differing in
their exact voltage levels, are at the
same binary levels.
What is your
observation?
37 9/30/2022
1.5 Digital Circuits/Logic Circuits (cont.)
38 9/30/2022
REVIEW QUESTIONS
1. True or false: The exact value of an input voltage is critical for a digital circuit.
False
2. Can a digital circuit produce the same output voltage for different input
voltage values?
YES
3. A digital circuit is also referred to as a __logic__ circuit.
4. A graph that shows how one or more digital signals change with time is called a
__time diagram______.
39
1.6 Parallel and Serial Transmission
• Parallel transmission
40 9/30/2022
1.6 Parallel and Serial Transmission (cont.)
• Serial transmission
41 9/30/2022
1.6 Parallel and Serial Transmission (cont.)
• Figure demonstrates serial transmission such as is employed when using a serial COM
port on your computer to send data to a modem, or when using a USB (Universal Serial
Bus) port to send data to a printer.
• Although the details of the data format and speed of transmission are quite different
between a COM port and a USB port, the actual data are sent in the same way: one bit
at a time over a single wire.
42
1.6 Parallel and Serial Transmission (cont.)
43
1.7 Memory
Non-memory circuit Memory circuit
• When an input signal is applied • When an input is applied to such
to most devices or circuits, the a circuit, the output will change
output somehow changes in its state, but it will remain in the
response to the input. new state even after the input
• When the input signal is is removed.
removed, the output returns to • This property of retaining its
its original state (their outputs response to a momentary input
revert back to normal). is called memory.
44 9/30/2022
1.7 Memory (cont.)
• Memory devices and circuits play an important role in digital systems
because they provide a means for storing binary numbers either
temporarily or permanently, with the ability to change the stored
information at any time.
• As we shall see, the various memory elements include magnetic and
optical types and those that utilize electronic latching circuits (called
latches and flip-flops).
45 9/30/2022
1.8 Digital Computers
• Definition
• A computer is a system of hardware that performs arithmetic operations,
manipulates data (usually in binary form), and makes decisions.
• Computer vs. Human
• Much greater speed and accuracy;
• Perform all calculations and operations one step at a time;
• A complete set of instructions that tell it exactly what to do at each step of
its operation called a program
46 9/30/2022
1.8 Digital Computers (cont.)
• Major Parts of a Computer
47 9/30/2022
1.8 Digital Computers (cont.)
• Type of computers by size and mobility
• Microcomputer, personal computer
• Stationary: workstation, desktop, smart TV, smart speaker, …
• Mobile: laptop, tablet, information appliance, mobile phone, …
• Midrange: server, minicomputer, …
• Large: super-computer, mainframe computer, …
• Types of computer by purpose
• General-purpose microcomputer
• Dedicated computer
• Microprocessor, microcomputer
48 9/30/2022
1.8 Digital Computers (cont.)
• The central processing unit (CPU) contains all of the circuitry for fetching and
interpreting instructions and for controlling and performing the various
operations.
• The microprocessor is essentially a central processing unit (CPU) in an
integrated circuit (IC, chip) that can be connected to the other blocks of a
computer system.
• Computers that use a microprocessor as their CPU are usually referred to as
microcomputers. The general-purpose microcomputers (e.g., PCs, PDAs
(personal digital assistants), etc.) perform a variety of tasks in a wide range of
applications depending on the software (programs) they are running.
• These computers cannot be programmed by the user, but simply perform their
intended control task: they are referred to as microcontrollers (embedded
controllers).
49
Summary
50 9/30/2022
Summary (cont.)
51 9/30/2022
Summary (cont.)
52 9/30/2022
HOMEWORK!!!
53
HOMEWORK!!! (cont.)
54
HOMEWORK!!! (cont.)
55
ANSWERS!!!
56
ANSWERS!!! (cont.)
57
FUNNY!!!!!!
58
THANK FOR YOUR LISTENNING
59
TEST 1
QUICK TEST
60
VGU
VIETNAMESE-GERMAN UNIVERSITY