• No results found

Chapter 8. Sequential Circuits for Registers and Counters

N/A
N/A
Protected

Academic year: 2021

Share "Chapter 8. Sequential Circuits for Registers and Counters"

Copied!
33
0
0

Loading.... (view fulltext now)

Full text

(1)

Chapter 8

Sequential Circuits for

Registers and Counters

(2)

Lesson 3

COUNTERS

(3)

Counters

Counters

T

T

-

-

FF

FF

Basic Counting element

Basic Counting element

State Diagram of

State Diagram of

-

-

ve Pulse

ve Pulse

triggered 16

triggered 16

-

-

state counter

state counter

Ripple Counter

Ripple Counter

(4)

Counting

• Often there is a need to count the

number of pulses or triggering at an

input.

• Counting is an essential circuit in

computers.

(5)

Various Features in counters

• Delays at FFs — Synchronous and Ripple

• Output bits at FFs — 4, 8 or 16 bit

• FFs used — D-FF, JK, RS

• Family — TTL, LSTTL, CMOS, HCMOS

• Outputs — Synchronous, Asynchronous

(6)

Modulo-6 Counter

• If a counter returns to original state after Q

B

= ‘1’, Q

C

= ‘0’ and Q

D

= ‘1’, and Q

A

is

always = ‘0’we say it is modulo-6 counter

• Counter returns to original state of Qs after

(7)

State Diagram of Modulo 7

S

0

1

S

1

1

S

3

1

S

5

S

4

1

(8)

Modulo-7 Counter

• If a counter returns to original state after Q

B

= ‘1’, Q

C

= ‘1’ and Q

D

= ‘0’, and Q

A

is

always = ‘0’, we say it is modulo-7 counter

• Counter returns to original state of Qs after

(9)

State Diagram of Modulo 7

S

0

1

S

1

1

S

3

1

S

6

(10)

Modulo-10 Counter

• If a counter returns to original state after Q

A

= ‘1’, Q

B

= ‘0’ Q

C

= ‘0’ and Q

D

= ‘1’, we

say it is modulo-10 counter

• Counter returns to original state of Qs after

10 counts

(11)

State Diagram of Modulo 10

S

0

1

S

1

1

S

3

1

S

7

S

9

(12)

Various types of counters

• Ripple Counter— 4, 8 or 16 bit

• Binary Counter — 4, 8 or 16 bit

• Ring Counter — 4, 8 or 16 bit

• Decade Counter - Modulo 10

(13)

Counters

Counters

T

T

-

-

FF

FF

Basic Counting element

Basic Counting element

State Diagram of

State Diagram of

-

-

ve Pulse

ve Pulse

triggered 16

triggered 16

-

-

state counter

state counter

Ripple Counter

Ripple Counter

(14)

Divide by 2 as Counting Element

• A divide-by-2 circuit produces one

output pulse for every two pulses

applied to its input.

• A divide-by-two circuit is made from a

T-FF

(15)

T and JK FFs for Counting

• 1. Use a circuit of T-type flip-flop

• 2. Use a single JK flip-flop with its J and K

inputs made ‘1’. The T-flip-flop (FF) is

designed from JK or any other method to

act as a divide-by-two circuit and JK input

is now the T-input.

(16)

TD and SR FFs for Counting

• 3.Use a D flip-flop (not D-latch) with its

Q

output feedback to the D input

• 4. Alternatively Use a S-R flip-flop with a

NOT in-between S and R to get a D-FF and

then convert a D-FF into T

(17)

T-FF

• D input = T XOR Q

n

and Q

n+1

= Q

n

• JK FF functions as T-FF if J = 1 and K

(18)

T- from D- Flip-Flop + ve edge

triggered

• Output Q

and

Q

Q

Q

D

Q

D

Divide

by 2

T

T

+ve Edge

triggered

circuit

(19)

T from JK Flip-Flop – ve edge

triggered

• Output Q

and

Q

Q

Q

K=1

J = 1

Q

1

Divide

by 2FF

Clock

T

-ve Edge

triggered

circuit

R

S

Preset

clear

(20)

• Counters

• T-FF — Basic Counting element

State Diagram of

State Diagram of

-

-

ve Pulse

ve Pulse

triggered 16

triggered 16

-

-

state counter

state counter

(21)

State Diagram

S

15

1

S

0

1

S

3

1

S

7

S

11

(22)

• Counters

• T-FF Basic Counting element

• State Diagram of -ve Pulse

triggered 16-state counter

(23)

Cascading T-FFs

• T FF acts as a divide-by-2 circuit, if Q

output of the FF connects to the T input of

the second FF, and the Q output from the

second FF connects to T-input of the third

flip-flop and so on, the FFs are said to be in

a cascade

(24)

4-bit Ripple Counter (Binary

Asynchronous Counter)

Divide

by 2FF

Q

Divide

by 2FF

Q

Q

Divide

by 2FF

Divide

by 2FF

Asynchronous Counter as each flip flop has

Q

Q

Q

CLR

Count

input A

After t

p

After 4

×

t

p

(25)

Additional feature in ripple counter in IC

7493 to enable its conversion to modulo-6

counter

R

(1)

R

(26)

-ve edge triggered T- FF

CLR = 1, J = K = 1

Inputs

CLR = 1, J = K = 1

Outputs

CLK Count= Q

n+1(A)

Q

n+1(B)

Q

n+1(C)

Q

n+1(D)

Q

n+1

means next state after n

th

clock input and

1

0

0

0

1

2

0

0

1

0

(27)

-ve edge triggered T- FF

CLR = 1, J = K = 1

Inputs

CLR = 1, J = K = 1

Outputs

CLK Count = Q

n+1(A)

Q

n+1(B)

Q

n+1(C)

Q

n+1(D)

Q

n+1

means next state after n

th

clock input and

×

4

0

1

0

0

5

0

1

0

1

6

0

1

1

0

(28)

Timing Diagram when -ve edge asynchronous

counter QD delays transition by 4 tp from clock

edge

CLK

(shift)

Q

A

Q

B

Q

(29)
(30)

Counters

• T-FF functions as counter, because it

toggles at every negative edge

• T-FF is made from J-K, D-FF when D

=

Q and from RS-FF, when S =

R

and S connects

Q

(31)

Counters

• Counting delay = n times t

p

for a n-bit

ripple counter

• 16-bit can be converted to modulo-6, 7

and 10 counters by resetting the

counter at next transition when Qs

show count = 5, 6 and 9

(32)

End of Lesson 3

COUNTERS

(33)

THANK YOU

References

Related documents

In the study presented here, we selected three rep- resentative pathogenic PV mAbs cloned from 3 different PV patients: F706, an anti-Dsg3 IgG4 isolated by heterohybridoma, F779,

National Conference on Technical Vocational Education, Training and Skills Development: A Roadmap for Empowerment (Dec. 2008): Ministry of Human Resource Development, Department

MassHealth ACPPs and MCOs must align their pharmacy product lists with the MHDL’s preferred status designations and prior authorization requirements for the preferred and

UPnP Control Point (DLNA) Device Discovery HTTP Server (DLNA, Chormecast, AirPlay Photo/Video) RTSP Server (AirPlay Audio) Streaming Server.. Figure 11: Simplified

For the poorest farmers in eastern India, then, the benefits of groundwater irrigation have come through three routes: in large part, through purchased pump irrigation and, in a

Field experiments were conducted at Ebonyi State University Research Farm during 2009 and 2010 farming seasons to evaluate the effect of intercropping maize with

 HCC is developing in 85% in cirrhosis hepatis Chronic liver damage Hepatocita regeneration Cirrhosis Genetic changes

An analysis of the economic contribution of the software industry examined the effect of software activity on the Lebanese economy by measuring it in terms of output and value