You are on page 1of 8

COMPUTER SCIENCE & ENGINEERING Counter ICs

Experiment 6

COUNTER ICs
Objectives
After completing this experiment, you will be able to:
- Implement the decade counters, dual decade counters and presettable 4-bit binary
up/down counter
- Design programmable frequency division.
- Understand the operations of some IC counters.

Materials Needed
- Decimal Counters: IC 74LS90.
- Preset Table 4 bit binary up/down counter: IC 74LS193
- Dual 4-Bit Decade Counter: IC 74LS390
For further investigation:
Materials to be determined by students.

Presentation and Multisim

On Tuesdays (Group 1: P1a; Group 2: P1b; Group 3: P2a; Group 4: P2b; Group 5: P3b;
Group 6: P3c)
On Thursdays (Group 1: P1a; Group 2: P1b; Group 3: P2a; Group 4: P2b; Group 5: P3)

TN Fall 2012 1
COMPUTER SCIENCE & ENGINEERING Counter ICs

Procedures

P1. Decimal counter 74LS90

Figure 1: IC 74LS90
IC 74LS90 contains a divide-by-two counter and a divide-by-five counter. Each counter
can be used separately or tied together (QA to input B) to form BCD counter. 74LS90 have
2 Master Reset inputs (R0(1), R0(2)) and 2 Master Set inputs (R9(1), R9(2)).
a. Implement BCD counter

14 12
CLOCK CLKA QA
1 9
CLKB QB 8
2 QC 11
3 R01 QD
6 R02 BCD TO 7-SEGMENT DISPLAY
7 R91
SW 1,2,3,4 R92

74LS90

Figure 3: BCD counter

- Connect Clock signal to CLKA

- Connect QA to CLKB
- Connect R01, R02, R91, R92 to switches for controlling operations
- Connect outputs (QA, QB, QC, QD) to BCD to 7-segment display block
b. Use an extra IC 74LS00 and wire them as a MOD-7 counter (counting from 0 to 6)

- Show the way to design:

TN Fall 2012 2
COMPUTER SCIENCE & ENGINEERING Counter ICs

- Build the circuit (observe the results on 7-segment-led)

P2. Dual 4-Bit Decimal Counter (IC 74LS390)

Figure 5 – Logic diagram of 74LS390


- IC 74LS390 includes 2 decimal counters as Figure 5
- CLR: Clear (high level active)
- QA, QB, QC and QD: outputs of the MOD-10 counter
a. Design the 74LS390 as a MOD-100 counter

TN Fall 2012 3
COMPUTER SCIENCE & ENGINEERING Counter ICs

U1A
CLOCK 1 3
4 CKA QA 5
CKB QB 6
SW 2 QC 7
CLR QD BCD TO 7 SEGMENT DISPLAY
74LS390

U1B
15 13
12 CKA QA 11
CKB QB 10
SW 14 QC 9
CLR QD BCD TO 7 SEGMENT DISPLAY
74LS390

Figure 6: Counter having M=100

- Implement the circuit shown in logic diagram of Figure 6


- The outputs QA, QB, QC and QD are connected to BCD TO 7-SEGMENT DISPLAY
- The CLR inputs are connected to switches to control the circuit operation.
b. Design the 74LS390 as a MOD-60 counter
- Use only an extra IC 74LS00 for wiring a counter having M = 60

TN Fall 2012 4
COMPUTER SCIENCE & ENGINEERING Counter ICs
- Show the way to design:

- Build the circuit

f(C,B,A) = CBA(1,3,5,6)

P3. Preset table 4-bit binary up/down counter 74LS193


The counter IC 74LS193 has:
- Data inputs: P3P2P1P0
- Count up pin: CLKU (CPU)
- Count down pin:CLKD(CPD)

- Load pin: LOAD ( PL )


- Data output :Q3Q2Q1Q0
- Clear pin: CLR (MR)

- Carry pin: CO ( TCU )


- Borrow pin: BO ( TC D )

Figure 8: 74LS193

TN Fall 2012 5
COMPUTER SCIENCE & ENGINEERING Counter ICs
a. The function of each input and output

- The outputs QA, QB, QC, QD and CO , BO are connected to Led display as Figure 9.
- The inputs are connected to switches. Set P3P2P1P0 are equal to 0000 respectively.
- 1Hz clock is used for COUNT UP (CLKU) and COUNT DOWN (CLKD)
74LS193
SW0 15
P0
U1
Q0
3
SW1 1
P1 Q1
2
SW2 10
P2 Q2
6
SW3 9
P3 Q3
7

4 13
5 CLKD BO 12
CLKU CO
SW4 14
CLR
SW5 11
LOAD 0

Figure 9 – 74LS193 Logic and connection diagram


Check the following functions (fulfill the Table 1):

CL
LOAD UP DOWN FUNCTION
R
0 1 CLK 1
0 1 1 CLK
0 10 X X
0
1 X X
1
0 1 1 1
Table 1
Let the circuit count up and down. What is the output state of CO and BO ?

What is the function of CO and BO ?

b. Programmable up counters
 Design a counter count up from 0100 to 1111

Show the way to design:

TN Fall 2012 6
COMPUTER SCIENCE & ENGINEERING Counter ICs
Build the circuit

 Counter count up from 0000 to 1100

Show the way to design:

Build the circuit

Extra problem: counter count up from 0100 to 1101


c. Programmable down counters
 Design a counter count down from 1111 to 0100

Show the way to design:

Build the circuit

TN Fall 2012 7
COMPUTER SCIENCE & ENGINEERING Counter ICs
 Counter count down from 1101 to 0000

Show the way to design:

Build the circuit

TN Fall 2012 8

You might also like