Lecture 3 Slides
Lecture 3 Slides
Chapter 3
Digital Signal Conditioning
1
2 / 29
Objective
Introduce the basic technique of digital signal
conditioning, especially interfacing, in process
control.
Review of Digital Numbers 5 / 29
(10011101)2 =
(1001 1101)2 =
(9D)16
(A7)16 =
(10100111)2
Review of Digital Numbers: 8 / 29
Boolean Functions and Logic Gates
OR Gate
Boolean Functions and Logic Gates 9 / 29
AND Gate
XOR Gate
Boolean Functions and Logic Gates 10 / 29
NAND
NOR
• Boolean algebra is a mathematical method
to solve logical equation
• Operation for Boolean operation are
– Equity “=”
– Complement “Ā”
– AND “.”
– OR “+”
11 / 29
• For combination of logic operation there
are theorem listed below
12 / 29
Boolean Application to Control 13 / 29
• Application of digital techniques to the solution of
control problem often involves use of complex
logical operations (Digital Signals)
1 High pressure
B=
0 Low pressure
Pressure
Level
1 High level
A= Temperature
0 Low level
1 High temp.
C=
1 ON 0 Low temp.
Alarm = A • B + A • C + A • B • C Alarm = D =
0 OFF
Alarm condition (D=1)
1. Low level with high pressure 14 / 29
2. High level with high temperature
3. High level with low temperature and high pressure
Alarm = D = A • B + A • C + A • B • C
15 / 29
Review of Digital Logic
16 / 29
Tri-State Buffers Generic model of
computer bus system
Tri-state buffers allow
multiple signals to share a Computer Interface
single digital line in the bus.
17 / 29
Converter
20 20
Using comparator to compare the measured temperature
against the temperature limit.
Tin 2.2 mV/ºC +
C OUT1
VT lim OUT1=1 if Tin>Tlim
=0.352V OUT1=0 if Tin<Tlim
Tin
22 mV/ºC + OUT1
C
VT lim =0.352V ALARM
Pin
0.2 V/kPa +
C
VP lim =2.0V OUT2
22 22
The truth table for the ALARM output is as shown below.
OUT1 0 1 0 1
OUT2 0 0 1 1
ALARM 0 0 0 1
23 23
Digital-to-Analog Converters (DACs)
27 / 29
28 / 29
• The analog information can be
mathematically represented by treating the
binary number as fractional number
where
Vout = analog voltage output
VR = reference voltage
b1b2 bn = n-bit binary word
• The minimum analog voltage would be zero
• The maximum analog voltage depends on
number of digits
• For 4 bits word, the maximum is
Vmax = VR 2−1 + 2−2 + 2−3 + 2−4 + 2−5 + 2−6 + 2−7 + 2−8 = 0.9961VR
29 / 29
• Alternatively, the analog output can be
found as: N
Vout = n
VR
2
Example:
An 8-bit converter with a 10.0-V reference has an input of
010011102. Find Vout.
Solution:
010011102 = 7810
30 / 29
31 / 29
Digital Signal Conditioning
N 1
Vout = n Vref Vout = n Vref
2 2
Bipolar DAC:
Bipolar DAC outputs a voltage ranging from plus to minus
N 1
Vout = n
Vref − VR
2 2
Converters R-2R ladder DAC 32 / 29
R
DAC is
implemented using R R R −
an op amp with 2R + V out
resistive ladder 2R 2R 2R 2R
network b0
b1
b2
b3
VR
Assignments:
HW1: P3.10 & P3.14
HW2: