chapter 7inc.kmutt.ac.th/course/inc222/document/chapter7.pdf · mod-8 synchronous up-down counter...

49
Chapter 7 Counters and Registers

Upload: truongquynh

Post on 11-Mar-2019

223 views

Category:

Documents


0 download

TRANSCRIPT

Chapter 7Counters and Registers

Asynchronous (Ripple) Counters

Chapter 7 Counters and RegistersINC222 Logic Theory and Digital Circuit Design

Frequency Division

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Example for clock display

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Mod-6 Counter from Mod-8

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

a) Mod-14 Ripple Counterb) Mod-10 (Decade) Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Mod-60 Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

74LS293 asynchronous counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

74LS293 as Mod-16 Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

74LS293 as Mod-10 Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

74LS293 & AND Gate as Mod-14 Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

2 74LS293 as Mod-60 Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Ideal waveforms of Mod-8 Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Actual waveforms, including propagation delays

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Synchronous Mod-16 Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Mod-8 Synchronous Up-Down CounterUp/Down = 1 => Count upUp/Down = 0 => Count down

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Presettable parallel counter with asynchronous preset

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

74ALS193 up/down synchronous counter with asynchronous preset and reset

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Example Waveforms of 74HC193

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

74LS193 as Mod-5 Down Counter

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

Cascade Connection for 74HC193

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Using AND Gates to Decode a MOD-8 Counter

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Decoding Circuit which Active During Stage 1000 and 1110

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Glitches Occurring on Decoding Circuits

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Eliminate glitches (spikes) by using strobe signal

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

BCD Counters to display 000 - 999

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Synchronous Counter DesignPRESENT State NEXT State

C B A C B A1 0 1 0 1 1

Transition at Output

PRESENT State Q(N)

NEXT State Q(N+1) J K

0 0 0 0 0 x0 1 0 1 1 x1 0 1 0 x 11 1 1 1 x 0

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Synchronous Circuit Design starting from State Transition Diagram

C B A0 0 00 0 10 1 00 1 11 0 00 0 00 0 1

etc.

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

PRESENT State NEXT StateC B A C B A

Line 1 0 0 0 0 0 12 0 0 1 0 1 03 0 1 0 0 1 14 0 1 1 1 0 05 1 0 0 0 0 06 1 0 1 0 0 07 1 1 0 0 0 08 1 1 1 0 0 0

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Excitation Table and K-Map for JA

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

K-Map for JC ,KC , JB and KB

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Final Implementation of Synchronous Circuit Design

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Design Synchronous Counter Circuit for Driving Stepper Motor

31

24

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

K maps for JB, KB, JA and KA

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Final Implementation for Synchronous Stepper Motor Driver Circuit

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Integrated-Circuit Registers Parallel in / parallel out (PIPO) Serial in / serial out (SISO) Parallel in / serial out (PISO) Serial in / parallel out (SIPO)

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

PIPO-The 74ALS174 / 74HC174

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

The 74ALS174 wired as a shift register

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

SISO – The 4731B

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

The 4731B shift registers

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

PISO-The 74ALS165/74HC165

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

SIPO-The 74ALS164/74HC164

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Shift-Register Counters Ring Counter

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Shift-Register Counters Starting a Ring Counter

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Shift-Register Counters Johnson Counter

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Decoding a Johnson Counter

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design

Quiz: Design synchronous counter for this state diagram

000

100

101

001

CBA

011

111

010

110

Chapter 7 Counters and Registers

INC222 Logic Theory and Digital Circuit Design Chapter 7 Counters and Registers