Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
• A clock edge applied to the C inputs of the register of Fig. 6-1 will load
all four inputs in parallel.
• For synchronism, it is advisable to control the operation of the
register with the D inputs rather than controlling the clock in the C
inputs of the flip-flops.
• A 4-bit register with a load control input that is directed through gates
and into the D inputs of the flip-flops si shown in Fig. 6-2.
• When the load input is 1 , the data in the four inputs are transferred
into the register with next positive edge of the clock.
• When the load input is 0 ,the outputs of the flip-flops are connected
to their respective inputs.
• The feedback connection from output to input is necessary because
the D flip-flops does not have a “no change” condition.
Mode Control
Register Operation
S1 S0
0 0 No Change
0 1 Shift right
1 0 Shift Left
1 1 Parallel load
Schhol of Computing, SRMIST
Universal Shift Register
• Shift registers are often used to interface digital system situated
remotely from each other.
• If the distance is far, it will be expensive to use n lines to transmit the
n bits in parallel.
• Transmitter performs a parallel-to-serial conversion of data and the
receiver does a serial-to-parallel conversion.
A3 A2 A1 A0
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0Schhol of Computing,
0 SRMIST 0
BCD Ripple Counter
• A decimal counter follows a sequence of ten states and returns to 0
after the count of 9.
• This is similar to a binary counter, except that the state after 1001 is
0000.
• The operation of the counter can be explained by a list of conditions
for flip-flop transitions.
100101…
DAC
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011
Digital Input Signal
inverting input 2R I Rf
• Vout= -IRf 4R
- Vout
+
2nR
MSB
LSB
If Rf=R/2
V1 V2 V3 Vn
Vout IRf n
2 4 8 2
For example, a 4-Bit converter yields
1 1 1 1
Vout Vref b3 b2 b1 b0
2 4 8 16
Where b3 corresponds to Bit-3, b2 to Bit-2, etc.
2R 2R
Req
2R 2R R
2R 2R
R R
R 1
V3 2
V V2
RR 2
I
Likewise,
1
V2 V1
Vout 2
1
V1 Vref
2
Vout IR
1 1 1 1
Vout Vref b3 b2 b1 b0
2 4 8 16
For general n-Bit R-2R Ladder or Binary Weighted Resister DAC
n
1
Vout Vref bn i i
i 1 2
Schhol of Computing, SRMIST
R-2R Ladder
• Advantages
• Only two resistor values (R and 2R)
• Does not require high precision resistors
• Disadvantage
• Lower conversion speed than binary weighted DAC
Vref
Resolution VLSB
2N
where N number of bits
Schhol of Computing, SRMIST
Speed
• Rate of conversion of a single digital input to its analog equivalent
• Conversion rate depends on
• clock speed of input signal
• settling time of converter
• When the input changes rapidly, the DAC conversion speed must be
high.
• Gain
• Offset
• Full Scale
• Resolution
• Non-Linearity
• Non-Monotonic
• Settling Time and Overshoot
.
from the ideal
Analog Output
output
Digital Input
.
output and the ideal
Analog Output
output
Digital Input
.
gain and offset errors
Analog Output
Digital Input
Analog
• Settling Time – time required for Output
the output to fall with in +/- ½ VLSB +1/2*VLSB
Settling Time
Time
x(t)
t
Schhol of Computing, SRMIST
Definition
• Voltmeter
ΔV 7.77 V
Voice
Schhol of Computing, SRMIST
Conversion process
3 steps:
• Sampling
• Quantification
• Coding
x(t)
Ts xs(t)
x(t) xs(t=k*Ts)
Schhol
t
Ts of Computing, SRMIST
Conversion process: Coding
xq(t)
N-1
N-2
Q
ΔVr
2
1
0
t
Ts
Schhol of Computing, SRMIST
Accuracy
t
Ts
t
Schhol of Computing, SRMIST t
Ts
Sampling rate
Nyquist-Shannon theorem: Minimum
sampling rate should be at least twice the
highest data frequency of the analog signal
fs>2*fmax
Analog
Analog
Filter
Analog ADC Digital
In practice: fs ≈ (3…5)*ffilter
0 0
Analog Digital
Schhol of Computing, SRMIST
Types of ADCs
• Flash ADC
• Sigma-delta ADC
• Dual slope converter
• Successive approximation converter
• “parallel A/D”
• Uses a series of
comparators
• Each comparator
compares Vin to a
different reference
voltage, starting w/
Vref = 1/2 lsb
Advantages Disadvantages
• Very fast • Needs many parts
(255 comparators for
8-bit ADC)
• Lower resolution
• Expensive
• Large power
consumption
Integrator
Digital
Vin + Σ +
low-pass
Sample
decimator
- - filter
Oversampler
Serial output
1-bit
DAC
Advantages Disadvantages
Advantages Disadvantages
- • Sets MSB
+ SAR DAC
VIN • Converts MSB to analog
1000 0000
0100 using DAC
Out • Compares guess to
If no, then test next bit input
• Set bit
• Test next bit
Advantages Disadvantages
0 5 10 15 20 25
Resolution (Bits)