Presentation is loading. Please wait.

Presentation is loading. Please wait.

C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.

Similar presentations


Presentation on theme: "C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is."— Presentation transcript:

1 C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is kept in memory devices The state dependency is accomplished by feedback path

2 C.S. Choy2 LATCH Active Low

3 C.S. Choy3 LATCH Active High

4 C.S. Choy4 LATCH APPLICATION Switch Debounce Almost all mechanical switches have contact bounce problem

5 C.S. Choy5 GATED-LATCH Also known as level-triggered S-C Type D-Type

6 C.S. Choy6 EDGED-TRIGGERED FLIP-FLOP D-Type

7 C.S. Choy7 Positive-Edge Detector Negative-Edge Detector

8 C.S. Choy8 D-TYPE FLIP-FLOP VARIATIONS Negative-Edge Triggered With Asynchronous Controls

9 C.S. Choy9 TOGGLE FLIP-FLOP The flip-flop changes states on every active clock transition From the waveform, one can observe that when a toggle flip- flop is continuously driven by a clock signal of frequency f in, the output (Q) produces a repetitive waveform of frequency f out =f in /2 Divide-By-2 Circuit

10 C.S. Choy10 J-K FLIP-FLOP

11 C.S. Choy11 J-K FLIP-FLOP WITH MASTER-SLAVE CONFIGURATION

12 C.S. Choy12 COMMON SEQUENTIAL CIRCUITS Counters A digital counter is a circuit used to generate binary numbers in a specific count sequence. That sequence is mainly governed by input clock pulses, and it is repetitive as long as these clock pulses are applied. Counters serve two main functions in digital systems – counting and frequency division ASYNCHRONOUSSYNCHRONOUS

13 C.S. Choy13 ASYNCHRONOUS COUNTER (RIPPLE COUNTER) Basic building block is a toggle flip-flop Since each flip-flop receives its clock pulse from another flip- flop, there will be delay through these flip-flops. This addition delay is the longest for the MSB flip-flop

14 C.S. Choy14 ALTERNATIVE MOD-8 UP-COUNTER

15 C.S. Choy15 MOD-16 UP-COUNTER

16 C.S. Choy16 COUNTERS OF OTHER MODULUS Mod-5

17 C.S. Choy17 MISCOUNTS IN ASYNCHRONOUS COUNTER The additive propagation delays produce short duration of miscounts

18 C.S. Choy18 MAXIMUM CLOCK FREQUENCY ALLOWED IN ASYNCHRONOUS COUNTERS n – number of stages  ff – propagation delay of flip-flop

19 C.S. Choy19 SYNCHRONOUS COUNTERS All flip-flops are clocked simultaneously Mod-16 Synchronous Up-Counter

20 C.S. Choy20 MOD-10 SYNCHRONOUS UP-COUNTER (BCD OR DECADE) QA – toggle every time QB – toggle at A high and D low QC – toggle at A and B high QD – change high at A, B and C high but change low afterwards (A high)

21 C.S. Choy21 MOD-8 DOWN COUNTER

22 C.S. Choy22 MOD-8 SYNCHRONOUS UP/DOWN COUNTER

23 C.S. Choy23 PRESETABLE COUNTERS

24 C.S. Choy24 SYNCHRONOUS COUNTER DESIGN Mod-6 Up-Counter Using D-flip-flops –Design table

25 C.S. Choy25 MOD-6 UP-COUNTER –K-maps –Final design

26 C.S. Choy26 REGISTERS A group of latches or flip-flops used to store, transfer, or shift data Serial Shift Register Data is clocked into the register bit by bit It is important to note that level-triggered type of latches will not work properly

27 C.S. Choy27 AN UNIVERSAL REGISTER S1S1 S0S0 Mode of operation 11Parallel load 10Shift left 01Shift right 00Hold

28 C.S. Choy28 RING COUNTER The counter is a shift register that has its output connected back to its own input

29 C.S. Choy29 JONHSON COUNTER Each bit is toggled in turn Mod-6 000 100 110 111 011 001 000 With its unique bit pattern, any sequence can be detected with a 2-input gate

30 C.S. Choy30 MULTIPLY/DIVIDE REGISTER A left shift operation multiplies a binary number by a factor of 2 A right shift operation divides a binary number by a factor of 2

31 C.S. Choy31 PSEUDO-RANDOM-SEQUENCE GENERATOR QAQA QBQB QCQC QDQD 0000 1000 0100 0010 1001 1100 0110 1011 0101 1010 1101 1110 1111 0111 0011 0001 1000 INVALID CONDITION

32 C.S. Choy32

33 C.S. Choy33

34 C.S. Choy34

35 C.S. Choy35

36 C.S. Choy36

37 C.S. Choy37

38 C.S. Choy38

39 C.S. Choy39

40 C.S. Choy40


Download ppt "C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is."

Similar presentations


Ads by Google