SlideShare a Scribd company logo
Sequential
Circuits
Memory Elements
Memory Element
• A latch is the simplest memory element that
can be constructed from standard logic gates.
• The manner in which the logic gates are
connected permit information to be stored.
Output Condition Output State
Q = 1; Q’ = 0 SET State
Q= 0; Q’ = 1 RESET or CLEAR
State
Q
Q (Q’)
LatchInputs
Normal
Output
Inverted
Output
chandran Digital Electronics 3
NAND SR Latch
• For the NAND SR Latch, the
SET and RESET inputs are
Active-LOW.
• When the SET input is 0, Q is
set to 1 i.e. SET state
• When the RESET input is 0, Q
is set to 0 i.e. RESET state
S
R Q’
Q
NAND Latch
R
S Q
Q’
Simplified
Block Symbol
chandran Digital Electronics 4
Waveform for NAND SR Latch
1
0
SET Input
1
0
RESET
1
0
Q Ouput
1
0
Q' output
Set Reset Hold Set Hold
chandran Digital Electronics 5
NOR SR Latch
R
S Q
Q’
Simplified
Block Symbol
• For the NOR SR latch, the
SET and RESET inputs are
Active-HIGH
• When the SET input is 1, Q is
set to 1 i.e. SET state
• When the RESET is 1, Q is
set to 0 i.e. RESET state
chandran Digital Electronics 6
Waveform for NOR SR Latch
1
0
SET Input
1
0
RESET
1
0
Q Ouput
1
0
Q' output
Set Reset Hold Set Hold
chandran Digital Electronics 7
Switch Bounce Problem
• Most mechanical switches generate some "bounce“. For normal
switches, this can last from as little as a fraction of a millisecond (ms),
to as long as 50 ms.
• This is usually not a problem if you are merely turning on a light.
However, for digital logic devices, random “bouncing” can create
problems. For instance, every time when a button is pressed to
increment a counter , instead of incrementing by one, several counts
could have been added causing counting errors.chandran Digital Electronics 8
De-bouncing a Mechanical Switch
• When the pole is at
position 1, The latch is in a
reset state (Q = ‘0’) with
Set = ‘1’ and Reset = ‘0’
• When the switch is toggled
and touches Position 2,
the Set becomes ‘0’ and
Reset becomes ‘1’
• Hence, Q = ‘1’
chandran Digital Electronics 9
De-bouncing a Mechanical Switch
• The pole will bounce off from Position 2.
• As the pole is now not touching either throw, both Set
and Clear became ‘1’. Therefore, Q remains
unchanged at ‘1’ during this time.
• When the pole swing back to Position 2 and bounce
off again, the output of the latch remains unchanged
at ‘1’.
• The latch will alternate between the set (Set = 0,
Clear =1) and memory (Set = 1, Clear = 1) states until
the bouncing stops.
chandran Digital Electronics 10
Experimental Results
Before:
Presence of Unwanted
Voltage Changes
After:
Unwanted Voltage
Changes Minimized
chandran Digital Electronics 11
D-Type Latch
Input Output
EN D Q
0 X Q0 (No change)
1 0 0
1 1 1
"X" indicates "don't care"
Q0 states Q just prior to EN going low
EN
D
Q
T2 T3 T4T1
“Latched”
at Q=0
“Transparent”
at Q=D
“Latched”
at Q=1
“Transparent”
at Q=D
“Latched”
at Q=0
EN
D Q
Q
chandran Digital Electronics 12
Clocked Flip-Flops (FFs)
Clock Input
• The clock signal is generally a regular rectangular
pulse train or square wave as shown below.
• Typically labeled as CLK, CK or CP
• Edge-triggered - It is activated by a signal transition .
This is indicated by the presence of a small triangle
on the CLK input.
CLK
Q
Q
CLK is activated by
Negative-going transition (NGT)
CLK is activated by
Positive-going transition (PGT)
CLK
Q
Q
chandran Digital Electronics 13
D Flip-flop
D CLK Q
0 0
1 1CLK
D Q
Q
D
CLK
0
Q
0
1
0
1
1
Note that CLK is activated
on the positive going
transition in this case
chandran Digital Electronics 14
EN
D
Q
EN
D
Latch
QD
Q
CLK
D
Q
Positive Edge
D Flip Flop
CLK
QD
Q
CLK
D
Q
Negative Edge
D Flip Flop
CLK
D Q
Q
D Latch vs. D Flip-flop
chandran Digital Electronics 16
Experimental Results
chandran Digital Electronics 17
Divide by 4 on single D Flip Flop IC
Vcc
Gnd
CLK
Output
D D
chandran Digital Electronics 18

More Related Content

What's hot

Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
Nahian Ahmed
 
Code conversion
Code conversionCode conversion
Code conversion
Alapan Banerjee
 
Flipflop
FlipflopFlipflop
Flipflop
sohamdodia27
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
Abhilash Nair
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
student
 
flip flops
flip flops flip flops
flip flops
Unsa Shakir
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
Vaagdevi College of Engineering
 
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Revathi Subramaniam
 
BCD ADDER
BCD ADDER BCD ADDER
Digital electronics logic families
Digital electronics logic familiesDigital electronics logic families
Digital electronics logic families
BLESSINAR0
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
DrSonali Vyas
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
wewe mahir
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
mubashir farooq
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
Siddhi Shrivas
 
K - Map
  K - Map    K - Map
K - Map
Abhishek Choksi
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
Janki Shah
 

What's hot (20)

Booth Multiplier
Booth MultiplierBooth Multiplier
Booth Multiplier
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
 
Code conversion
Code conversionCode conversion
Code conversion
 
Flipflop
FlipflopFlipflop
Flipflop
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
ASk,FSK,PSK
ASk,FSK,PSKASk,FSK,PSK
ASk,FSK,PSK
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
flip flops
flip flops flip flops
flip flops
 
4 bit uni shift reg
4 bit uni shift reg4 bit uni shift reg
4 bit uni shift reg
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
 
BCD ADDER
BCD ADDER BCD ADDER
BCD ADDER
 
Digital electronics logic families
Digital electronics logic familiesDigital electronics logic families
Digital electronics logic families
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
 
Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
K - Map
  K - Map    K - Map
K - Map
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 

Similar to Memory elements

Flip flops
Flip flopsFlip flops
Flip flops
Shashi Lata
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
Zakariae EL IDRISSI
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
AreebaShoukat4
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
Thapar Institute
 
Cse(b) g1 flipflop
Cse(b) g1 flipflopCse(b) g1 flipflop
Cse(b) g1 flipflop
KaranAgarwal71
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
UtsavDas21
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
Er. Nawaraj Bhandari
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
Sarah Sue Calbio
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
DrSonali Vyas
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
jyothir19
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
amudhak10
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
EasyStudy3
 
B sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuitB sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuit
Rai University
 
Flip flop
Flip flopFlip flop
Flip flop
Moni Adhikary
 
Latch and Flipflop.pptx
Latch and Flipflop.pptxLatch and Flipflop.pptx
Latch and Flipflop.pptx
ramkumarraja7
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential Circuit
Heman Pathak
 
Flip Flop.pdf
Flip Flop.pdfFlip Flop.pdf
Flip Flop.pdf
ShivarkarSandip
 

Similar to Memory elements (20)

Flip flops
Flip flopsFlip flops
Flip flops
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
 
Cse(b) g1 flipflop
Cse(b) g1 flipflopCse(b) g1 flipflop
Cse(b) g1 flipflop
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
 
lec7.ppt
lec7.pptlec7.ppt
lec7.ppt
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
Sequential
SequentialSequential
Sequential
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
B sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuitB sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuit
 
Flip flop
Flip flopFlip flop
Flip flop
 
Latch and Flipflop.pptx
Latch and Flipflop.pptxLatch and Flipflop.pptx
Latch and Flipflop.pptx
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential Circuit
 
12 latches
12 latches12 latches
12 latches
 
Flip Flop.pdf
Flip Flop.pdfFlip Flop.pdf
Flip Flop.pdf
 

More from chandkec

Class 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animalsClass 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animals
chandkec
 
Industries
IndustriesIndustries
Industries
chandkec
 
Theoritical concept of operating system
Theoritical concept of operating systemTheoritical concept of operating system
Theoritical concept of operating system
chandkec
 
Operators and Conditional statements in C
Operators and Conditional statements in COperators and Conditional statements in C
Operators and Conditional statements in C
chandkec
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation ppt
chandkec
 
Do we need a parliament ?
Do we need a parliament ?Do we need a parliament ?
Do we need a parliament ?
chandkec
 
Ch 6. combustion and flame
Ch 6. combustion and flameCh 6. combustion and flame
Ch 6. combustion and flame
chandkec
 
8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture
chandkec
 
8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils
chandkec
 
Introduction to Turbo C data types
Introduction to Turbo  C data typesIntroduction to Turbo  C data types
Introduction to Turbo C data types
chandkec
 
Computer science introduction to C programming
Computer science introduction to C programmingComputer science introduction to C programming
Computer science introduction to C programming
chandkec
 
8th computer science ch 1
8th computer science ch 18th computer science ch 1
8th computer science ch 1
chandkec
 
8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil
chandkec
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squareroots
chandkec
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squareroots
chandkec
 
Ch 18. pollution
Ch 18. pollutionCh 18. pollution
Ch 18. pollution
chandkec
 
NCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resourcesNCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resources
chandkec
 
Microorganism : uses
Microorganism : usesMicroorganism : uses
Microorganism : uses
chandkec
 
Laws of exponents and Power
Laws of exponents and PowerLaws of exponents and Power
Laws of exponents and Power
chandkec
 
Exponents and powers--Part1
Exponents and powers--Part1Exponents and powers--Part1
Exponents and powers--Part1
chandkec
 

More from chandkec (20)

Class 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animalsClass 8 Science :Conservation of plants and animals
Class 8 Science :Conservation of plants and animals
 
Industries
IndustriesIndustries
Industries
 
Theoritical concept of operating system
Theoritical concept of operating systemTheoritical concept of operating system
Theoritical concept of operating system
 
Operators and Conditional statements in C
Operators and Conditional statements in COperators and Conditional statements in C
Operators and Conditional statements in C
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation ppt
 
Do we need a parliament ?
Do we need a parliament ?Do we need a parliament ?
Do we need a parliament ?
 
Ch 6. combustion and flame
Ch 6. combustion and flameCh 6. combustion and flame
Ch 6. combustion and flame
 
8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture8th standard, Geography :Ch 4. Agriculture
8th standard, Geography :Ch 4. Agriculture
 
8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils8th Standard Geography : Rocks and Soils
8th Standard Geography : Rocks and Soils
 
Introduction to Turbo C data types
Introduction to Turbo  C data typesIntroduction to Turbo  C data types
Introduction to Turbo C data types
 
Computer science introduction to C programming
Computer science introduction to C programmingComputer science introduction to C programming
Computer science introduction to C programming
 
8th computer science ch 1
8th computer science ch 18th computer science ch 1
8th computer science ch 1
 
8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil8th Standard, Geography: Rocks and soils 8th and soil
8th Standard, Geography: Rocks and soils 8th and soil
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squareroots
 
Ch 6. square and squareroots
Ch 6. square and squarerootsCh 6. square and squareroots
Ch 6. square and squareroots
 
Ch 18. pollution
Ch 18. pollutionCh 18. pollution
Ch 18. pollution
 
NCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resourcesNCERT_Class 8Geography 3.minerals and power resources
NCERT_Class 8Geography 3.minerals and power resources
 
Microorganism : uses
Microorganism : usesMicroorganism : uses
Microorganism : uses
 
Laws of exponents and Power
Laws of exponents and PowerLaws of exponents and Power
Laws of exponents and Power
 
Exponents and powers--Part1
Exponents and powers--Part1Exponents and powers--Part1
Exponents and powers--Part1
 

Recently uploaded

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
aozcue
 
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDARLORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
lorraineandreiamcidl
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Peter Gallagher
 
Production.pptxd dddddddddddddddddddddddddddddddddd
Production.pptxd ddddddddddddddddddddddddddddddddddProduction.pptxd dddddddddddddddddddddddddddddddddd
Production.pptxd dddddddddddddddddddddddddddddddddd
DanielOliver74
 
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdfSchematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
nikoloco007
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
peuce
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
aozcue
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
andreassenrolf537
 
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
u0g33km
 

Recently uploaded (9)

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
 
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDARLORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
 
Production.pptxd dddddddddddddddddddddddddddddddddd
Production.pptxd ddddddddddddddddddddddddddddddddddProduction.pptxd dddddddddddddddddddddddddddddddddd
Production.pptxd dddddddddddddddddddddddddddddddddd
 
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdfSchematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
 
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
 

Memory elements

  • 2. Memory Element • A latch is the simplest memory element that can be constructed from standard logic gates. • The manner in which the logic gates are connected permit information to be stored. Output Condition Output State Q = 1; Q’ = 0 SET State Q= 0; Q’ = 1 RESET or CLEAR State Q Q (Q’) LatchInputs Normal Output Inverted Output chandran Digital Electronics 3
  • 3. NAND SR Latch • For the NAND SR Latch, the SET and RESET inputs are Active-LOW. • When the SET input is 0, Q is set to 1 i.e. SET state • When the RESET input is 0, Q is set to 0 i.e. RESET state S R Q’ Q NAND Latch R S Q Q’ Simplified Block Symbol chandran Digital Electronics 4
  • 4. Waveform for NAND SR Latch 1 0 SET Input 1 0 RESET 1 0 Q Ouput 1 0 Q' output Set Reset Hold Set Hold chandran Digital Electronics 5
  • 5. NOR SR Latch R S Q Q’ Simplified Block Symbol • For the NOR SR latch, the SET and RESET inputs are Active-HIGH • When the SET input is 1, Q is set to 1 i.e. SET state • When the RESET is 1, Q is set to 0 i.e. RESET state chandran Digital Electronics 6
  • 6. Waveform for NOR SR Latch 1 0 SET Input 1 0 RESET 1 0 Q Ouput 1 0 Q' output Set Reset Hold Set Hold chandran Digital Electronics 7
  • 7. Switch Bounce Problem • Most mechanical switches generate some "bounce“. For normal switches, this can last from as little as a fraction of a millisecond (ms), to as long as 50 ms. • This is usually not a problem if you are merely turning on a light. However, for digital logic devices, random “bouncing” can create problems. For instance, every time when a button is pressed to increment a counter , instead of incrementing by one, several counts could have been added causing counting errors.chandran Digital Electronics 8
  • 8. De-bouncing a Mechanical Switch • When the pole is at position 1, The latch is in a reset state (Q = ‘0’) with Set = ‘1’ and Reset = ‘0’ • When the switch is toggled and touches Position 2, the Set becomes ‘0’ and Reset becomes ‘1’ • Hence, Q = ‘1’ chandran Digital Electronics 9
  • 9. De-bouncing a Mechanical Switch • The pole will bounce off from Position 2. • As the pole is now not touching either throw, both Set and Clear became ‘1’. Therefore, Q remains unchanged at ‘1’ during this time. • When the pole swing back to Position 2 and bounce off again, the output of the latch remains unchanged at ‘1’. • The latch will alternate between the set (Set = 0, Clear =1) and memory (Set = 1, Clear = 1) states until the bouncing stops. chandran Digital Electronics 10
  • 10. Experimental Results Before: Presence of Unwanted Voltage Changes After: Unwanted Voltage Changes Minimized chandran Digital Electronics 11
  • 11. D-Type Latch Input Output EN D Q 0 X Q0 (No change) 1 0 0 1 1 1 "X" indicates "don't care" Q0 states Q just prior to EN going low EN D Q T2 T3 T4T1 “Latched” at Q=0 “Transparent” at Q=D “Latched” at Q=1 “Transparent” at Q=D “Latched” at Q=0 EN D Q Q chandran Digital Electronics 12
  • 12. Clocked Flip-Flops (FFs) Clock Input • The clock signal is generally a regular rectangular pulse train or square wave as shown below. • Typically labeled as CLK, CK or CP • Edge-triggered - It is activated by a signal transition . This is indicated by the presence of a small triangle on the CLK input. CLK Q Q CLK is activated by Negative-going transition (NGT) CLK is activated by Positive-going transition (PGT) CLK Q Q chandran Digital Electronics 13
  • 13. D Flip-flop D CLK Q 0 0 1 1CLK D Q Q D CLK 0 Q 0 1 0 1 1 Note that CLK is activated on the positive going transition in this case chandran Digital Electronics 14
  • 14. EN D Q EN D Latch QD Q CLK D Q Positive Edge D Flip Flop CLK QD Q CLK D Q Negative Edge D Flip Flop CLK D Q Q D Latch vs. D Flip-flop chandran Digital Electronics 16
  • 16. Divide by 4 on single D Flip Flop IC Vcc Gnd CLK Output D D chandran Digital Electronics 18