JNTUA Linear and Digital IC Applications Notes - R20
JNTUA Linear and Digital IC Applications Notes - R20
me/jntua
Prepared by:
Mrs. S.LEELALA LAKSHMI ,Professor,HOD
Course Contents
◼ Communication
◼ Control
◼ Instrumentation
◼ Computer
◼ Electronics
Advantages
:
◼ Small size
◼ Low cost
◼ Less weight
◼ Highly reliable
◼ Matched devices
◼ Fast speed
Classification
◼ Digital ICs
◼ Linear ICs
Integrated circuits
Classification of ICs
Selection of IC
Type Package Criteria
Metal can 1. Heat dissipation is important
package 2. For high power applications like power
amplifiers, voltage regulators etc.
◼ Reliability
◼ Ease of fabrication
◼ Power to be dissipated
Temperature
Ranges
Operational Amplifier
Operational
Amplifier
An “Operational amplifier” is a direct coupled high-gain
amplifier usually consisting of one or more differential
amplifiers and usually followed by a level translator and
output stage.
Package
s
◼ Motorola - MC,MFC
◼ RCA - CA,CD
◼ Texas Instruments - SN
◼ Signetics - N/S,NE/SE
◼ Burr- Brown - BB
◼ RCA - CA3741
- SN52741
◼ Texas Instruments
- N5741
◼ Signetics
Differential Amplifier
V0 =Ad (V1 – V2 )
Vc =
(V1 + V2 )
2
CMRR= ρ = | |A
d
Ac
◼ Input capacitance
◼ CMRR
◼ Power consumption
◼ Slew rate
◼ Supply current
1. Input Offset
Voltage
It is denoted as Vios
It is expressed mathematically as
I b1 + I b 2
2
It is denoted as Ri
5. Input capacitance
It is denoted as Ci
voltage gain
7. CMRR
CMRR = Ad /Ac
8. Output Voltage
swing
The op-amp output voltage gets saturated at +Vcc and –
VEE and it cannot produce output voltage more than +Vcc
and –VEE. Practically voltages +Vsat and –Vsat are
slightly less than +Vcc and –VEE .
For op-amp 741C the saturation voltages are + 13V for supply voltages + 15V
9. Output Resistance
It is denoted as Ro
13. Power
Consumption
It is the amount of quiescent power to be consumed by op-
amp with zero input voltage, for its proper functioning
It is denoted as Pc
Slew rate
dVo = Vm ω cosωt
Vs = Vm sinωt
dt
Vo = Vm sinωt
dVo
S =slew rate =
dt max
S = Vm ω = 2 π f Vm
For distortion free output, the
S = 2 π f Vm V / sec maximum allowable input
frequency fm can be obtained as
This is also called full
S
power bandwidth of the f m =
2 V m
op-amp
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
/Hz
It is denoted as Voos
Op-amp characteristics
dependent on the power
supply voltages
◼ Absolute maximum power supply voltage
Ideal Op-amp:
◼ Input Impedance Ri =∞
◼ Output Impedance Ro =0
◼ Bandwidth BW =∞
◼ No effect of temperature
◼ Power supply rejection ratio PSRR = 0
+Vsat
AOL = ∞
-Vd +Vd
0
+Vsat ≈ +Vcc
-Vsat
2. If Vd is
less than corresponding to a, the
output attains
–Vsat
3. Thus range a-b is input range for which output varies
0 .3 5
tr =
fH
Op-amp
Characteristics
◼ DC Characteristics
Input bias current Input offset current Input
◼ AC Characteristics
Slew rate Frequency response
1. Temperature
3. Time
V io s
Input offset voltage drift =
T
-2
TA , ambient
temp in oc
-55
-25 0 25 50 75
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
100
80
Ib in
nA 60
40
TA ambient temp.
20
in oC
-55
-25 0 25 50 75
Iios
Thermal drift in input offset current =
T
2 Slope can be of
either polarities
Iios in
nA 1
0
-1
-2
TA , ambient
temp in oc
-55
-25 0 25 50 75
AC
Characteristics
Frequency Response
Ideally, an op-amp should have an infinite bandwidth but practically op-
amp gain decreases at higher frequencies. Such a gain reduction
with respect to frequency is called as roll off.
AOL
AOL ( f ) =
2
f
1+
fo
f
AOL ( f ) = ( f ) = − tan −1
f0
UGB= Af ff
1. Differential amplifier
2. Inverting amplifier
Differential Amplifier
The amplifier which amplifies the difference between the two input
voltages is called differential amplifier.
Key point: For very small Vd , output gets driven into saturation due to high AOL ,
hence this application is applicable for very small range of differential input
voltage.
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Inverting Amplifier
Vo = -AOL Vin2
Keypoint: The negative sign indicates that there is phase shift of 180o between
input and output i.e. output is inverted with respect to input.
Non-inverting Amplifier
Vo =AOL Vin1
Keypoint: The positive output shows that input and output are in phase and
input is amplified AOL times to get the output.
Features:
i) No frequency compensation required
ii) Short circuit protection provided
iii) Offset Voltage null capability
iv) Large common mode and differential voltage range
v) No latch up
Unit - II
Applications of OP-Amp
4. If Rf > R1,, the gain is greater than 1 If Rf < R1,, the gain is less than 1
Thus the output voltage can be greater than, less than or equal to the input
voltage in magnitude
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
6. The closed loop gain is denoted as AVF or ACL i.e. gain with feedback
2. The voltage gain is positive indicating that for a.c. input, the output
and input are in phase while for d.c. input, the output polarity is
same as that of input
3. The voltage gain is independent of open loop gain of op-amp, but
depends only on the two resistance values
4. The desired voltage gain can be obtained by selecting proper
values of Rf and R1
AOL R f
Closed Loop Voltage gain = ACL = −
R1 + R f + R1 AOL
ACL A (R + R )
Closed Loop Voltage gain = = OL 1 f
R1 + R f + R1AOL
Instrumentation Amplifier
▪ Sample and Hold Circuit takes samples from the analog input
signal and hold them for particular period of time and then
outputs the sampled part of input signal. This circuit is only useful
for sampling few microseconds of input signal. A Sample and
Hold circuit consist of switching devices, capacitor and an
operational amplifier.
Instrumentation Amplifier
AC AMPLIFIER
Differentiator
Integrato
r
Differential amplifier
This circuit amplifies only the difference between
the two inputs. In this circuit there are two
resistors labeled R IN Which means that their
values are equal. The differential amplifier
amplifies the difference of two inputs while the
differentiator amplifies the slope of an input
Summer
Comparat
or
A comparator is a circuit which compares
a signal voltage applied at one input of an
op- amp with a known reference voltage at
the other input. It is an open loop op - amp
with output + Vsat
Comparat
or
Applications of
comparator
1. Zero crossing detector
2. Window detector
3. Time marker generator
4. Phase detector
Schmitt trigger
Multivibrator Circuit:
UNIT –III
◼ Active filters
◼ Timer and phase locked loops
Filter
Filter is a frequency selective circuit that passes
signal of specified Band of frequencies and attenuates
the signals of frequencies outside the band
Type of Filter
1. Passive filters
2. Active filters
Passive filters
Passive filters works well for high frequencies.
But at audio frequencies, the inductors become
problematic, as they become large, heavy and
expensive.For low frequency applications, more number
of turns of wire must be used which in turn adds to the
series resistance degrading inductor’s performance ie,
low Q, resulting in high power dissipation
Active filters
Active Filters
Pass-
band
f f f
fc fc fcl fcu
A(dB) A(dB)
Butterworth
BRF
Chebyshev
Bessel
f
fcl fcu f
2-pole 3-pole
4-pole
An
Example
Design a unity-gain LP Butterworth filter with a critical
frequency of 5 kHz and an attenuation of at least 38 dB
at 15 kHz.
The attenuation at 15 kHz is 38 dB
the attenuation at 1 decade (50 kHz) = 79.64 dB.
We require a filter with a roll-off of at least 4 poles.
Kf = 31,416 rad/s. Let’s pick C1 = 0.01 F (or 10
nF).Then C2 = 8.54 nF, C3 = 24.15 nF, and C4 = 3.53 nF.
Pick standard values of 8.2 nF, 22 nF, and 3.3 nF. Kx =
3,444
Make all R = 3.6 k (standard value)
2-pole 3-pole
4-pole
Exampl
e
Design an equal-component LPF with a critical
frequency of 3 kHz and a roll-off of 20 dB/oct.
Minimum # of poles = 4
Choose C = 0.01 F; R = 5.3 k
From table, Av1 = 1.1523, and Av2 = 2.2346.
Choose RI1 = RI2 = 10 k; then RF1 = 1.5 k, and
RF2 =
12.3 k .
Select standard values: 5.1 k, 1.5 k, and 12 k.
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Attenuation (dB)
BPF BRF
f f
fcl fctr fcu fcl fctr fcu
The quality factor, Q, of a filter is given by: f
Q = ctr
where BW = fcu - fcl and BW
fctr = fcu fcl
a HPF: BW 2 BW BW 2 BW
fcl = + f ctr2 − ; fcu = + f ctr2 +
4 2 4 2
> 1.
The Q of this filter is usually
Broadband Band-Reject
Filter
A LPF and a HPF can also be combined to give abroadband
BRF:
BW = fctr = 1
Q
C1 = C2 = C2 R1
R2 = 2 CR1
R1
R3 =
2Q2 −1
Narrow-band Band-Reject
Filter
Easily obtained by combining the inverting output of a
narrow-band BRF and the original signal:
The equations for R1, R2, R3, C1, and C2 are the same as before.
RI = RF for unity gain and is often chosen to be >> R1.
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
TRIANGULAR WAVE
GENERATOR
555 IC
The 555 timer is an integrated circuit
specifically designed to perform signal
generation and timing functions.
Astable multivibrator
Astable multivibrator
Monostable multivibrator
Voltage controlled
oscillator
A voltage controlled oscillator is an
oscillator circuit in which the frequency of
oscillations can be controlled by an externally
applied voltage
Advantages of Monolith:
UNIT - IV
◼ DATA CONVERTETRS
◼ VOLTAGE CONVERTS
Classification of ADCs
1. Direct type ADC.
2. Integrating type ADC
Integrating type
converters
An ADC converter that perform conversion
in an indirect manner by first changing the
analog I/P signal to a linear function of time or
frequency and then to a digital code is known as
integrating type A/D converter
Successive Approximation:
INTRODUCTION TO VOLTAGE
REGULATORS
IC Voltage Regulators:
Multipin IC Voltage
Regulator
◼ The LM723 has an
equivalent circuit that
contains most of the parts
of the op-amp voltage
regulator discussed
earlier.
◼ It has an internal voltage
reference, error amplifier,
pass transistor, and
current limiter all in one
IC package.
LM 723C Schematic
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
LM723 Voltage
Regulator
◼ Can be either 14-pin DIP or 10-pin TO-100 can
◼ May be used for either +ve or -ve, variable or fixed
regulated voltage output
◼ Using the internal reference (7.15 V), it can operate as a
high-voltage regulator with output from 7.15 V to about
37 V, or as a low-voltage regulator from 2 V to 7.15 V
◼ Max. output current with heat sink is 150 mA
◼ Dropout voltage is 3 V (i.e. VCC > Vo(max) + 3)
LM723 in High-Voltage
Configuration
Design equations:
V (R + R )
Vo = ref 1 2
R2
R3 =
R1R2 Rsens = 0.7
R1 + R2 I max
Choose R1 + R2 = 10
k,
External pass transistor and and Cc = 100 pF.
current sensing added. To make Vo variable,
replace R1 with a pot.
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
LM723 in Low-Voltage
Configuration
I L(max) = R 4 Vo + 0.7(R 4 + R 5 )
R 5 R sen s
I sho rt
= 0.7(R + R ) 4 5
RR 5 sen s
0.7Vo
R sens =
I short (Vo + 0.7) − 0.7I L(max)
◼ It is used to obtain an
output > the Vreg
value up to a max.of
37 V.
◼ R1 is chosen so that
R1 0.1
Vreg/IQ, where I is
+ the
Vo = Vreg
V
+ I Q R2
reg
R1
3-Terminal Variable
Regulator
◼ The floating regulator could be made into a variable
regulator by replacing R2 with a pot. However, there are
several disadvantages:
Minimum output voltage is Vreg instead of 0 V.
IQ is relatively large and varies from chip to chip.
Power dissipation in R2 can in some cases be quite
large resulting in bulky and expensive equipment.
◼ A variety of 3-terminal variable regulators are available,
e.g. LM317 (for +ve output) or LM 337 (for -ve output).
(a) (b)
Circuit with capacitors Circuit with protective
to improve performance diodes
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
UNIT-V
▪ CMOS Logic
▪ Combinational circuits
▪ Sequnitional circuits
Overview
Integration Levels
• Gate/transistor ratio is roughly 1/10
– SSI < 12 gates/chip
– MSI < 100 gates/chip
– LSI …1K gates/chip
– VLSI …10K gates/chip
– ULSI …100K gates/chip
– GSI …1Meg gates/chip
Moore’s law
• A prediction made by Moore (a co-founder of Intel) in
1965: “… a number of transistors to double every 2
years.”
In the beginning…
Diode Logic (DL)
•simplest; does not
scale =
•NOT not possible
(need an active
eRleesmisetnotr)-
Transistor Logic (RTL)
•replace diode switch
with a transistor switch
•can be cascaded =
was…
Diode-Transistor Logic (DTL)
•essentially diode logic with transistor
amplification
•reduced power consumption
•faster than RTL
IOH – Current flowing into an output in the logical “1” state under specified load
conditions
IOL – Current flowing into an output in the logical “0” state under specified load
conditions
IIH – Current flowing into an input when a specified HI level is applied to that
input IIL – Current flowing into an input when a specified LO level is applied to
that input
IOH ) IOL
DC fanout = min( ,
IIH IL I
TPD,HL TPD,LH
TPD,HL – input-to-output
propagation delay from HI
to LO output TPD,LH – input-
to-output propagation delay
from LO to HI output
Speed-power
product: TPD Pavg
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Noise margin:
VN = min(VNH,VNL)
VNH
VNL
TTL
Bipolar Transistor-Transistor Logic (TTL)
•first introduced by in 1964 (Texas Instruments)
•TTL has shaped digital technology in many ways
•Standard TTL family (e.g. 7400) is obsolete
•Newer TTL families still used (e.g. 74ALS00)
Distinct features
• Multi-emitter transistors
•Totem-pole transistor
arrangement
•Open LTspice example:
TTL NAND… 2-input NAND
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
TTL evolution
Schottky series (74LS00) TTL
•A major slowdown factor in BJTs is due to
transistors going in/out of saturation
•Shottky diode has a lower forward bias (0.25V)
•When BC junction would become forward biased,
the Schottky diode bypasses the current
preventing the transistor from going into saturation
ECL
Emitter-Coupled Logic (ECL)
•PROS: Fastest logic family available (~1ns)
•CONS: low noise margin and high power
dissipation
•Operated in emitter coupled geometry (recall
differential amplifier or emitter-follower),
transistors are biased and operate near their Q-
point (never near saturation!)
• Logic levels. “0”: –1.7V. “1”: –0.8V
•Such strange logic levels require extra effort
when interfacing to TTL/CMOS logic families.
•Open LTspice example: ECL inverter…
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
CMOS
Complimentary MOS (CMOS)
• Other variants: NMOS, PMOS (obsolete)
• Very low static power consumption
• Scaling capabilities (large integration all MOS)
• Full swing: rail-to-rail output
• Things to watch out for:
– don’t leave inputs floating (in TTL these will
float
to HI, in CMOS you get undefined behaviour)
–susceptible to electrostatic damage (finger of
death)
Life-cycle
Combinational
Circuits
Outline
◼ Boolean Algebra
◼ Decoder
◼ Encoder
◼ MUX
History: Development of
Formal Logic
Three Operations
(1) x + 0 =x
(2) x ·0=0
(3) x + 1 =1
(4) x·1=1
(5) x + x = x
(6) x · x = x
(7)x + x’ = x
(8) x · x’ =0
(9) x + y = y + x
(10)xy = yx
(11) x + ( y + z ) = ( x + y ) + z
(12)x (yz) = (xy) z
(13)x ( y + z ) = xy + xz
(14) x + yz = ( x + y )( x + z)
(15) ( x + y )’ = x’y’
(16) ( xy )’ = x’ + y’
(17) (x’)’ = x
Gate
s
◼ Refer to the hardware to implement Boolean operators.
Outline
◼ Boolean Algebra
◼ Decoder
◼ Encoder
◼ MUX
Decod
er
Accepts a value and decodes it
◼ Output corresponds to value of n inputs
Consists of:
◼ Inputs (n)
◼ Outputs (2n , numbered from 0 → 2n -1)
2-to-4
Decoder
2-to-4
Decoder
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
3-to-8
Decoder
Decoder
Expansion
◼ Decoder expansion
Combine two or more small decoders with
enable inputs to form a larger decoder
Decoder
Expansion
Outline
◼ Boolean Algebra
◼ Decoder
◼ Encoder
◼ Mux
Encoders
Encoders
Encoders
Priority Encoder
Consists of:
◼ Inputs (2n)
◼ Outputs
when more than one output is active, sets
output to correspond to highest input
V (indicates whether any of the inputs are
active)
◼ Selectors / Enable (active high or active low)
D3 D2 D1 D0 A1 A0 V
0 0 0 0 x X 0
0 0 0 1 0 0 1
0 0 1 0 0 1 1
0 0 1 1 0 1 1
0 1 0 0 1 0 1
0 1 0 1 1 0 1
0 1 1 0 1 0 1
0 1 1 1 1 0 1
1 0 0 0 1 1 1
1 0 0 1 1 1 1
1 0 1 0 1 1 1
1 0 1 1 1 1 1
1 1 0 0 1 1 1
1 1 0 1 1 1 1
1 1 1 0 1 1 1
1 1 1 1 1 1 1
Priority Encoder
Outline
◼ Boolean Algebra
◼ Decoder
◼ Encoder
◼ Mux
Multiplexer (MUX)
4 to 1 line multiplexer
4 to 1 line
multiplexer
S1 S0 F
2n MUX to 1 0 0 I0
n for this MUX is 2 0 1 I1
1 0 I2
This means 2 1 1 I3
selection lines s 0
and s1
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Multiplexer (MUX)
Consists of:
◼ Inputs (multiple) = 2n
◼ Output (single)
I2
I1
I
0
S1
S
0 2-to-4 Decoder
4-to-1 Multiplexer
Note that the multiplexer has an extra OR gate.A1 andA0 are the two inputs
in decoder. There are four inputs plus two selecs in multiplexer.
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Cascading multiplexers
Using three 2-1 MUX
to make one 4-1 MUX
S1 S0 F
0 0 I0
0 1 I1
1 0 I2
1 1 I3
Example: Construct an
8-to-1 multiplexer using I0
2-to-1 multiplexers. I1
S2 S1 S0 F
I2
0 0 0 I0
I3
2-1
F
0 0 1 I1 MUX
0 1 0 I2
S E
I4
0 1 1 I3 S2 E
I5
1 0 0 I4
1 0 1 I5
1 1 0 I6
I6
1 1 1 I7 I7
S2 S1 S0 X
0 0 0 I0
0 0 1 I1
0 1 0 I2
0 1 1 I3
1 0 0 I4
1 0 1 I5
1 1 0 I6
1 1 1 I7
E S Y
(Enable) (Select) (Output)
0 X All 0’s
1 0 A
1 1 B
UNIT-5
Sequential Circuits
Combinational
Logic
◼ Combinational Logic:
Outputdepends only on current input
Has no memory
Sequential Logic
◼ Sequential Logic:
Output depends not only on current input but
also on past input values, e.g., design a
counter
Need some type of memory to remember the
past input values
Sequential Circuits
Timed “States”
Sequential Logic:
Concept
Clock
Period
F F
F Combinational F
Circuit
F
F
0 S’ S’ R’ Q Q’
Q 1
0 0
0 1 1 0 Set
1 0
Q’ 0
1 R’ 1 1
X Y NAND
00 1
01 1
10 1
11 0
1 S’ S’ R’ Q Q’
Q 1
0 0
0 1 1 0 Set
1 0
Q’ 0
1 R’ 1 1 1 0 Hold
X Y NAND
00 1
01 1
10 1
11 0
1 S’ S’ R’ Q Q’
Q 0
0 0
0 1 1 0 Set
1 0 0 1 Reset
Q’ 1
0 R’ 1 1 1 0 Hold
X Y NAND
00 1
01 1
10 1
11 0
1 S’ S’ R’ Q Q’
Q 0
0 0
0 1 1 0 Set
1 0 0 1 Reset
Q’ 1
1 R’ 1 1 1 0 Hold
0 1 Hold
X Y NAND
00 1
01 1
10 1
11 0
0 S’ S’ R’ Q Q’
Q 1
0 0 1 1 Disallowed
0 1 1 0 Set
1 0 1 1 Reset
Q’ 1
0 R’ 1 1 2 0 Hold
0 1 Hold
X Y NAND
00 1
01 1
10 1
11 0
D Latch
◼One way to eliminate the undesirable
indeterminate state in the RS flip flop is to
ensure that inputs S and R are never 1
simultaneously. This is done in the D latch:
Flip-Flops
D Flip-Flop
Characteristic Tables
Setup time
Shift register:
Example
D Q B
◼ What is the Next State
Function? CP C Q
Example (continued)
◼ Boolean equations
for the functions: x
D Q A
A(t+1) = A(t)x(t) A’
C Q
+ B(t)x(t) Next State
B(t+1) = A’(t)x(t)
y(t) = x’(t)(B(t) + A(t)) D Q B
CP C Q'
Output
State
Diagrams
◼ The sequential circuit function can be represented in
graphical form as a state diagram with the following
components:
A circle with the state name in it for each state
A directed arc from the Present State to the Next State for each
state transition
A label on each directed arc with the Input values which causes
the state transition, and
A label:
◼ On each circle with the output value produced, or
◼ On each directed arc with the output value produced.
Example: State
Diagram
s,x=0/y=0 x=0/y=1 x=1/y=0
◼ Diagram gets
confusing for AB
large circuits 00 x=0/y=1 1 0
◼ For small circuit x=1/y=0
usually easier to x=1/y=0
understand than x=0/y=1
the state table
01 11
x=1/y=0
MEMORY
Memory
Address Data
Picture of Memory 00000000
00000001
◼You can think of memory as being one big array of
0000000
data. 2
The address serves as an array index. .
Each address refers to one word of data. .
.
◼ You can read or modify the data at any given
.
memory address, just like you can read or modify
.
the contents of an array at any given index.
.
.
. Word
.
.
FFFFFFF
D
FFFFFFFE
FFFFFFFF
◼ Write (RAM): The data on the data bus is stored into the selected
location
Control signals - specifies what the memory is to do
◼ Control signals are usually active low
#bits
◼ The total storage capacity is 224 x 16 = 228 bits
Size matters!
◼ Memory sizes are usually specified in numbers of bytes (1 byte= 8 bits).
◼ The 228-bit memory on the previous page translates into:
ROM PROGRAMMING
ROM Usage
◼ ROMs are useful for holding data that never changes.
ROM Structure
32Kx8 ROM
Microprocessor EPROM
application
ROM Timing
Logic-in-ROM Example
Reading RAM
• 50 MHz CPU – 20 ns clock cycle time
• Memory access time= 65 ns
• Maximum time from the application of the address to the
appearance of the data at the Data Output
WRITING RAM
2k x n memory
k ADDRESS DATA n
IN/OUT
RD/WR’
CS
WRITING RAM
Static memory
◼ How can you implement the memory chip?
◼ There are many different kinds of RAM.
We’ll start off discussing static memory, which is most commonly used in
caches and video cards.
Later we mention a little about dynamic memory, which forms the bulk of a
computer’s main memory.
◼ Static memory is modeled using one latch for each bit of storage.
SRAM Devices
Dynamic memory
◼ Dynamic memory is built with capacitors.
A stored charge on the capacitor represents a logical 1.
No charge represents a logic 0.
◼ However, capacitors lose their charge after a few milliseconds. The memory
requires constant refreshing to recharge the capacitors. (That’s what’s
“dynamic” about it.)
DRAM Cell