msi counters

35
MSI Counter •4-bit synchronous counter – edge-triggered – synchronously presettable – cascadable •Typical Count Rate of 35 MHz •‘160 and ‘162, Mod-10 •‘161 and ‘163, Mod-16 1

Upload: abhilash-nair

Post on 20-May-2015

2.934 views

Category:

Documents


21 download

DESCRIPTION

Lec 15

TRANSCRIPT

Page 1: MSI Counters

MSI Counter

• 4-bit synchronous counter– edge-triggered– synchronously

presettable– cascadable

• Typical Count Rate of 35 MHz

• ‘160 and ‘162, Mod-10• ‘161 and ‘163, Mod-16

1

Page 2: MSI Counters

MSI Counter

• 74LS163 4-bit synchronous counter

2

16-pin DIP16-pin DIP

Page 3: MSI Counters

MSI Counter

• 74LS163 characteristics– edge-triggered– synchronously presettable– cascadable– count modulo 16 (binary)

• Synchronous Reset (Clear) input that overrides all other control inputs– active only during the rising

clock edge

3

74x163

Page 4: MSI Counters

MSI Counter

• 74LS163 logic symbols

4

74x163texttext

datasheetdatasheet

Page 5: MSI Counters

MSI Counter

• 74LS163 state diagram and logic equations

5

Page 6: MSI Counters

MSI Counter

• 74LS163 mode select table• All signals must be high ( H ) to enable the

count sequence to begin

6

Page 7: MSI Counters

MSI Counter• 74x163 is a synchronous

4-bit binary counter• RCO=1 when all count

bits are 1 and ENT is asserted

7

Page 8: MSI Counters

MSI Counter

• The control inputs for the 74x163 have the following effects:

8

clear

loadhold

hold

Page 9: MSI Counters

74x163 Internal Logic

Diagram

Page 10: MSI Counters

10

Counter Operation• Free-running 16• Count if ENP and

ENT both asserted• Load if LD is asserted

(overrides counting)• Clear if CLR is asserted

(overrides loading and counting)

• All operations take place on rising CLK edge

• RCO is asserted if ENT is asserted andCount = 15

makes it free-runningmakes it free-running

Page 11: MSI Counters

11

Free-Running 4-Bit ’163 Counter• “divide-by-16” counter• RCO is asserted if ENT is asserted and Count = 15

Page 12: MSI Counters

12

Modified Counting Sequence

• Load 0101 (5) after Count = 15• 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 6, …• “divide-by-11” counter

DCBA

Page 13: MSI Counters

13

Another Way

• Clear after Count = 1010 (10)• 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 1, 2, 3, …• “modulo-11” or “divide-by-11” counter

Page 14: MSI Counters

14

Counting from 3 to 12

Page 15: MSI Counters

15

Cascading Counters• For modulus greater than 16• RCO (ripple carry out) is asserted in state 15, if ENT is asserted

Page 16: MSI Counters

16

Decoding Binary-Counter States

• A binary counter may be combined with a decoder to obtain a set of 1-out-of-m coded signals, where one signal is asserted in each counter state Useful when counter outputs are used to control a set of devices A different device is enabled in each counter state In this approach each output of the decoder enables a different device The next slide shows the 74163 wired as a modulo 8 counter combined with a 74138 (3 to 8 decoder) The decoder output provides eight signals, each one representing a counter state

Page 17: MSI Counters

17

Decoding Binary-Counter States

Page 18: MSI Counters

18

Decoding Binary-Counter States• The next slide shows a typical timing diagram for this

circuit• Each decoder output is asserted during a corresponding

clock period• The decoder outputs may contain “glitches” on state

transitions where two or more counter bits change• This happens even though the 74163 outputs are glitch free

and the 74138 does not have any static hazards• In a synchronous counter like the 74163 the outputs don’t

change exactly at the same time• Moreover multiple signal paths in a decoder like 74138

have different delays; thus the output may have glitches• This problem is an example of functional hazard

Page 19: MSI Counters

19

Decoder Waveforms

• Glitches may or may not be a concern

Page 20: MSI Counters

20

Glitch-Free Outputs• In most applications these would be used as control inputs to

counters, registers and other edge triggered devices

• In such a case there is no problem as the glitches occur after the clock tick

• They would be a problem if applied to latches

• They would also be a problem if utilized as a clock

• One way to “clean-up” these glitches is to connect the 74138 decoder output to another register

• This register would sample the stable decoded outputs on the next clock tick as shown in the next slide

• In this case the final outputs would have to be renamed to account for the one clock tick delay through the register

Page 21: MSI Counters

21

Glitch-Free Outputs

• Register outputs delayed by one clock cycle

Page 22: MSI Counters

• The 74163 is fully synchronous • Some applications require an asynchronous

clear function• That is provided by 74161• It has the same pinout as 74163• Its CLR_L input is connected to the

asynchronous clear inputs of its flip flops

74161 MSI Counter

Page 23: MSI Counters

Modulo-10 Counters

• From the 74LS163 “family” – the 74LS160– 74LS160 in free-running mode– Duty cycle of QC and QD is not 50%

23

Page 24: MSI Counters

Modulo-10 Counters

• 74LS160 state diagram• The 74LS160 (and

74LS162) can be preset to any state, but will not count beyond 9.

• If preset to state 10, 11, 12, 13, 14, or 15, it will return to its normal sequence within two clock pulses.

• 74160 has asynchronous clear as in 74161

24

Page 25: MSI Counters

Up/Down Counters

• A 3-bit binary up/down counter (block diagram)

25

Clock Count

UP / DOWN

Counter

QA

QB

QC

Page 26: MSI Counters

Up/Down Counters

• A 3-bit binary up/down counter (State diagram)

26

Page 27: MSI Counters

Up/Down Counters

27

Page 28: MSI Counters

Up/Down Counters• This circuit is a 3-bit UP/DOWN synchronous counter using

JK flip-flops configured to operate as toggle or T-type flip-flops giving a count of zero (000) to seven (111) and back to zero again.

• An additional input determines the direction of the count, either UP or DOWN and the timing diagram gives an example of the counters operation as this UP/DOWN input changes state.

28

Page 29: MSI Counters

Timing diagram

Page 30: MSI Counters

Up/Down Counters

• The 74LS169 is a fully synchronous 4-stage up/down counter

• Includes:– a preset capability for

programmable operation

– carry lookahead for easy cascading

– a U/ D input to control the direction of counting

30

Page 31: MSI Counters

Up/Down Counters

• The SN74LS169 operates in a Modulo-16 binary sequence

31

Page 32: MSI Counters

74LS169 logic circuit diagram

Page 33: MSI Counters

Up/Down Counters

• 74LS169 logic symbol

33

• Functions similar to 74163• Difference is that its carry output and enable inputs are active low• It is an up/down counter• It counts ascending or descending binary order depending on the value of input signal UP/DN • Counts up when UP/DN is 1• Counts down when UP/DN is 0

Page 34: MSI Counters

MSI Counters• 7458: Dual 4-bit Decade Counter

• 7459: Dual 4-bit Binary Counter

• 7468: Dual 4 Bit Decade or Binary Counters

• 7469: Dual 4 Bit Decade or Binary Counters

• 7490: Decade Counter (separate Divide-by-2 and Divide-by-5 sections)

• 7492: Divide-by-12 Counter (separate Divide-by-2 and Divide-by-6 sections)

• 7493: 4-bit Binary Counter (separate Divide-by-2 and Divide-by-8 sections)

• 74142: Decade Counter/Latch/Decoder/Nixie Tube Driver

• 74143: Decade Counter/Latch/Decoder/7-segment Driver, 15 mA Constant Current

• 74144: Decade Counter/Latch/Decoder/7-segment Driver, 15V open collector outputs

• 74160: Synchronous 4-bit Decade Counter with Asynchronous Clear

• 74161: Synchronous 4-bit Binary Counter with Asynchronous Clear

• 74162: Synchronous 4-bit Decade Counter with Synchronous Clear

• 74163: Synchronous 4-bit Binary Counter with Synchronous Clear

• 74168: Synchronous 4-Bit Up/Down Decade Counter

• 74169: Synchronous 4-Bit Up/Down Binary Counter

• 74176: Presettable Decade (Bi-Quinary) Counter/Latch

• 74177: Presettable Binary Counter/Latch

• 74190: Synchronous Up/Down Decade Counter

• 74191: Synchronous Up/Down Binary Counter

• 74192: Synchronous Up/Down Decade Counter with Clear

• 74193: Synchronous Up/Down Binary Counter with Clear

• 74196: Presettable Decade Counter/Latch

• 74197: Presettable Binary Counter/Latch

• 74290: Decade Counter (separate divide-by-2 and divide-by-5 sections)

• 74291: 4-bit Universal Shift register, Binary Up/Down Counter, Synchronous

• 74293: 4-bit Binary Counter (separate divide-by-2 and divide-by-8 sections)

• 74390: Dual 4-bit Decade Counter

• 74393: Dual 4-bit Binary Counter

• 74452: Dual Decade Counter, Synchronous

• 74453: Dual Binary Counter, Synchronous

• 74454: Dual Decade Up/Down Counter, Synchronous, Preset Input

• 74455: Dual Binary Up/Down Counter, Synchronous, Preset Input

• 74461: 8-bit Presettable Binary Counter with three-state outputs

• 74490: Dual Decade Counter

• 74491: 10-bit Binary Up/Down Counter with Limited Preset and three-state logic outputs

• 74560: 4-bit Decade Counter with three-state outputs

• 74561: 4-bit Binary Counter with three-state outputs

• 74568: Decade Up/Down Counter with three-state outputs

• 74569: Binary Up/Down Counter with three-state outputs

• 74590: 8-Bit Binary Counter with Output Registers and three-state outputs

• 74592: 8-Bit Binary Counter with Input Registers

• 74593: 8-Bit Binary Counter with Input Registers and three-state outputs

• 74668: Synchronous 4-bit Decade Up/Down Counter

• 74669: Synchronous 4-bit Binary Up/Down Counter

• 74690: 4-bit Decimal Counter/Latch/Multiplexer with Asynchronous Reset, Three-State Outputs

• 74691: 4-bit Binary Counter/Latch/Multiplexer with Asynchronous Reset, Three-State Outputs

• 74692: 4-bit Decimal Counter/Latch/Multiplexer with Synchronous Reset, Three-State Outputs

• 74693: 4-bit Binary Counter/Latch/Multiplexer with Synchronous Reset, Three-State Outputs

• 74694: 4-bit Decimal Counter/Latch/Multiplexer with Synchronous and Asynchronous Resets, three-state outputs

• 74695: 4-bit Binary Counter/Latch/Multiplexer with Synchronous and Asynchronous Resets, three-state outputs

• 74696: 4-bit Decimal Counter/Register/Multiplexer with Asynchronous Reset, three-state outputs

• 74697: 4-bit Binary Counter/Register/Multiplexer with Asynchronous Reset, three-state outputs

• 74698: 4-bit Decimal Counter/Register/Multiplexer with Synchronous Reset, three-state outputs

• 74699: 4-bit Binary Counter/Register/Multiplexer with Synchronous Reset, three-state outputs

• 74716: Programmable Decade Counter

• 74718: Programmable Binary Counter

34

Page 35: MSI Counters

35