Professional Documents
Culture Documents
SAIF SAAD
Chapter 8
Counters
©1999 Glencoe/McGraw-Hill
CHAPTER 8 PREVIEW
• Overview of Counters
• Characteristics of Counters
• Ripple Up Counter
• Ripple Counter with Waveforms
• Ripple Down Counter
• Self-stopping Counter
• Frequency Division using Counters
• Using Counter ICs
• Magnitude Comparators
• Troubleshooting Equipment
• Troubleshooting Hints
OVERVIEW OF COUNTERS
•Counter-by definition
– One input (clock)
– Outputs follow defined sequence
Pulse 8
1
2
3
4
5
6
7
PS
Onand
This theCLR
4-bit
nextinput
counter
clockhasAll16
pulse J-K
(8)flip-flops
states
all FFs
and
willwill
count are
toggle
frombecause
binary each in
0000 will the
through
receive
1111
INACTIVE
a H-to-L
and then
pulse-
resetone TOGGLE
back
after MODE
to another.
0000.
WatchThethecounter
counthas
ripple
a modulus
thru theof counter.
16.
RIPPLE COUNTER WITH WAVEFORMS
Binary Output
Clock Input
01
0010
1
Pulse 5
1
2
3
4
Clock input
FFs triggered on
1s output
H-to-L pulse.
CLK toggles 1s FF.
1s FF toggles 2s FF. 2s output
2s FF toggles 4s FF.
4s output
DECADE COUNTER
Binary Output
Clock Input
11
0 00
110
Pulse 8
1
2
3
4
5
6
7
Short negative pulse
To clear input
of each FF
11
0 00
1
4
2
1
Pulse 5
3
2
3
4
Pulse 8
1
5
6
7
4
8 200 Hz
100 Hz 400 Hz
50 Hz 2
16
Clock Input
800 Hz
USING THE 7493 COUNTER IC
• Counters are available in IC form.
• Either ripple (7493 IC) or synchronous
(74192 IC) counters are available.
400
? Hz
Hz
100
? Hz
Hz 800
? Hz
Hz
1600 Hz
7493 Counter IC
wired as a 4-bit
binary counter
MAGNITUDE COMPARATOR
A magnitude comparator is a combinational logic device
that compares the value of two binary numbers and
responds with one of three outputs (A=B or A>B or A<B).
A(0)
A(1) 74HC85
Input
Input
Inputbinary
binary
binary0111
1111
0001 Magnitude
A(2)
Comparator
A(3)
A>B HIGH
B(0)
A=B HIGH
B(1)
Input
Inputbinary
binary
0110
0111
1100 A<B HIGH
B(2)
B(3)
TROUBLESHOOTING EQUIPMENT
• Logic Probe
• Logic Pulser
• Logic Clip (logic monitor)
• Digital IC Tester
• DMM/Logic Probe
• DMM or VOM
• Dual-trace Oscilloscope
• Logic Analyzer
SIMPLE TROUBLESHOOTING HINTS