Docsity

Binary Counters: Asynchronous and Synchronous Binary and Decade Counters, Summaries of Terrorist Networks and Counter-Terror Organizations

Toggle sidebar
bg1
BINARY COUNTERS
1 2
§Counters are circuits that cycle through a specified
number of states.
§Also known as ripple counter. Ripple counters are the
simplest type of binary counters because they require the
fewest components to produce a given counting
operation.
§Each FF output drives the CLK input of the next FF.
§The flip-flops do not change states at exactly the same
time as they do not have a common clock pulse.
§There is delay between the responses of successive FFs.
§It is also often referred to as a ripple counter as the input
clock pulse ā€œripplesā€ through the counter.
Asynchronous Binary Counter
3
§CLK is only connected to 1st FF0, LSB FF
§The 2nd FF clock is driven by Q0of 1st FF
§Both FF inputs are always HIGH
§Q0changes state at the positive-edge clock
§Q1change at the positive-edge of the Q0
§The two FFs do not triggered at the same time because
clock and Q0transitions do not occur at the same time
A 2-bit Asynchronous Binary Counter
4
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Binary Counters: Asynchronous and Synchronous Binary and Decade Counters and more Summaries Terrorist Networks and Counter-Terror Organizations in PDF only on Docsity!

BINARY COUNTERS

1 2

§ Counters are circuits that cycle through a specified number of states.

§ Also known as ripple counter. Ripple counters are the simplest type of binary counters because they require the fewest components to produce a given counting operation.

§ Each FF output drives the CLK input of the next FF.

§ The flip-flops do not change states at exactly the same time as they do not have a common clock pulse.

§ There is delay between the responses of successive FFs.

§ It is also often referred to as a ripple counter as the input clock pulse ā€œripplesā€ through the counter.

Asynchronous Binary Counter

§ CLK is only connected to 1st^ FF0, LSB FF § The 2nd^ FF clock is driven by Q 0 of 1st^ FF § Both FF inputs are always HIGH § Q 0 changes state at the positive-edge clock § Q 1 change at the positive-edge of the Q (^0) § The two FFs do not triggered at the same time because clock and Q 0 transitions do not occur at the same time

A 2-bit Asynchronous Binary Counter

§ Four clock pulses are applied, assume initially all LOW

§ Q 0 (LSB) is always toggle at positive-edge clock

§ Q 1 (MSB) is toggle at positive-edge of Q (^0)

§ At 4th clock pulse, the counter is recycle to its original state (both FF are LOW)

A 2-bit Asynchronous Counter

5

Recycles back to 0 (^) § The counter is in up sequence (Q 1 is MSB, Q 0 is LSB)

§ Count from 0 to 3 in binary sequence § The term ā€˜recycle’ refers to the transition from final state to original state § Therefore, 2-bit asynchronous counter has four state and consists of two FF

A 2-bit Asynchronous Binary Counter

6

A 3-bit asynchronous binary counter is shown in the figure. The basic operation is the same as that of the 2- bit counter except that the 3-bit counter has eight states, due to its three flip-flops.

Three bit Asynchronous Counter Three bit Asynchronous Counter

CLK Q 0

Q 1

Q 2

1 2 3 4 5 6 7 8

0 1 0 1 0 1 0 1 0

0 0 1 1 0 0 1 1 0

0 0 0 0 1 1 1 1 0

Notice that theQ 0 output is triggered on the leading edge of

the clock signal. The following stage is triggered fromQ 0.

The leading edge ofQ 0 is equivalent to the trailing edge of

Q 0. The resulting sequence is that of an 3-bit binary up

counter.

Modulus

§ The modulus (MOD number) of a counter is the number of unique states through which the counter will sequence.

§ The maximum modulus of a counter is 2 n^ , where n is the number of flip-flops.

§ Counters can be designed to have a number of states less than the maximum of 2n

§ This type of sequence is called a truncated sequence.

§ To obtain a truncated sequence, it is necessary to force the counter to recycle before going through all of its possible states.

13

Counters with Truncated Sequences

§ One common modulus for counters with truncated sequences is ten (called MOD10). § Counters with ten states in their sequence are called decade counters. § A decade counter with a count sequence of zero (0000) through nine (1001) is a BCD decade counter because its ten-state sequence produces the BCD code. § This type of counter is useful in display applications in which BCD is required for conversion to a decimal readout. § The BCD decade counter must recycle back to the 0000 state after the 1001 state

14

Asynchronous Decade Counter

This counter uses partial decoding (two unique states, Q 1 = 1 and Q 3 = 1 are sufficient to decode the count of ten) to recycle the count sequence to zero after the 1001 state. Other truncated sequences can be obtained using a similar technique.

Waveforms are on the following slide…

CLK K (^0)

J 0 Q^0 C C C

J 1 J 2

K 1 K (^2)

Q 1 Q (^2)

HIGH

C

J 3

K (^3)

Q 3

CLR

Asynchronous Decade Counter

WhenQ 1 andQ 3 are HIGH together, the counter is

cleared by a ā€œglitchā€ on theCLR line.

1 2 3 4 5 6 7 8 9 10

Glitch

Glitch

CLK Q (^0) Q (^1)

Q (^2) Q (^3)

CLR

Glitch

Glitch

Example

  • Show how an asynchronous counter with J-K flip-flops can be implemented having a modulus of twelve (Mod-
    1. with a straight binary sequence from 0000 through

Solution

  • Since three flip-flops can produce a maximum of eight states, four flip-flops are required to produce any modulus greater than eight but less than or equal to sixteen.
  • When the counter gets to its last state, 1011, it must recycle back to 0000 rather than going to its normal next state of 1100 as illustrated in the sequence chart

17 18

BCD Decoder/Driver

A special-purpose decoder is the 7447. This is a BCD-to- seven segment display with active LOW outputs. The a-g outputs are designed for much higher current than most devices (hence the word driver in the name).

1 2 4 8

(16) (4) (13) (12) (11) (10) (9) (15) (14)

(1) (2) (6)

(7)

(3) (5) (8)

BCD inputs Outputsto seven segment device

GND

VCC

BCD/7-seg BI/RBO BI/RBO

LT RBI

LT RBI 74LS

BCD Decoder/Driver

Here the 7447 is an connected to an LED seven segment display. Notice the current-limiting resistors, required to prevent overdriving the LED display.

CC

GND

+5.0 V

+5.0 V

= 330 W

74LS47 MAN LT BI/RBO RBI

1.0 kW

1

1 2

2

3 3, 9, 14 4 5 6 7 7

8

8

9

10 10

11

11

12 13

13

14

15

16 BCD/7-seg

BCDinput

Asynchronous Down Counters

CLK 1 2 3 4

Q 0

Q (^1)

1 1

1 0

0

0 1

0 0

0

5 6 7 8

1 0 1 0

1 1 0 0

Q (^2 0 1 1 11 0 0 )

29

Up Counter and Down Counter (Negative Edge)

30

Up Counter and Down Counter (Positive Edge) Synchronous Counters

  • Also known as parallel counters.
  • The term synchronous refers to events that have a fixed time relationship with each other.
  • In a synchronous counter all flip-flops are clocked together at the same time with a common clock pulse.
  • Synchronous counters overcome the disadvantage of accumulated propagation delays, but generally they require more circuitry to control states changes.

A 2-Bit Synchronous Binary Counter

FF1 will toggle when both the J and K inputs are a 1 (Q 0 ). The transition at clock pulse 2 works because of propagation delay effects. Q 0 is still high on the input of Q 1 at the instant clock 2 hits so FF1 changes state

33

A 2-Bit Synchronous Binary Counter

Outputs J-K Inputs Q 1 Q 0 J 1  Q 0 K 1  Q 0 J 0  1 K 0  1 0 0

Tabular Analysis

0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1

0 1 1 0 1 1

34

A 3-Bit Synchronous Binary Counter

This 3-bit binary synchronous counter has the same count sequence as the 3-bit asynchronous counter shown previously.

The next slide shows how to analyze this counter by writing the logic equations for each input. Notice the inputs to each flip-flop…

Analysis of Synchronous Counters

A tabular technique for analysis is illustrated for the counter on the previous slide. Start by setting up the outputs as shown, then write the logic equation for each input. This has been done for the counter.

Q 2 Q 1 Q 0 J 2 =Q 0 Q 1 K 2 =Q 0 Q 1 J 1 =Q 0 K 1 =Q 0 J 0 = 1 K 0 = 1

Outputs Logic for inputs

  1. Put the counter in an arbitrary state; then determine the inputs for this state.

0 0 0 0 0 0 0 1 1

  1. Use the new inputs to determine the next state:Q 2 and Q 1 will latch andQ 0 will toggle.

0 0 1 0 0 1 1 1 1

  1. Set up the next group of inputs from the current output.

Continue like this, to complete the table. The next slide shows the completed table…

(^0 1 0) 4.Q 2 will latch again but bothQ 1 andQ 0 will toggle.

CLK

J (^0)

K (^0)

C

HIGH FF0 FF1^ FF2 FF

Q 3

Q 0

Q 0

J 1

K 1

C

Q 1

Q 1

J (^2)

K (^2)

C

Q (^2)

Q (^2)

J 3

K 3

C

Q 3

Q 3

Q 1 toggle on the next clock pulse only if Q 0 = 1 and Q 3 = 0.

Q 0

Q 3

BCD Synchronous Decade Counter

41

Waveforms for the decade counter:

1 2 3 4 5 6 7 8 0 1 0 1 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0

9 10

(^0 0000 001 )

1 0 0

0

0 0 0

0

These same waveforms can be obtained with an asynchronous counter in IC form – the 74LS90. It is available in a dual version – the 74LS390, which can be cascaded. It is slower than synchronous counters (max count frequency is 35 MHz), but is simpler.

CLK Q (^0) Q (^1)

Q (^2)

Q (^3)

BCD Synchronous Decade Counter

42

Up/Down Synchronous Counters

  • Q 0 toggles on every clock pulse for both UP and DOWN
  • Q 1 toggles when Q 0 = 1 for UP AND when Q 0 = 0 for DOWN
  • Q 2 toggles when Q 0 = Q 1 = 1 for UP and when Q 0 = Q 1 = 0 for DOWN

Up/Down Synchronous Counters

An up/down counter is capable of progressing in either direction depending on a control input.

CLK

Q 0 Q (^1)

Q (^2)

K 0

J (^0) C C C

J 1 J (^2)

K 1 K 2

HIGH

UP/DOWN

UP

DOWN

FF0 FF1 FF

Q 0.^ UP

Q 0. DOWN

Q 0 Q 1 Q (^2)

Example waveforms from Multisim are on the next slide…