Professional Documents
Culture Documents
LAB MODULE
EMT 235
DIGITAL ELECTRONIC
PRINCIPLES II
OBJECTIVES:
1. To recognize the operation of counters.
2. To practise sequential logic circuits design.
3. To implement the design of counters in the Quartus II software
Computer unit
Altera Quartus II software
INTRODUCTION:
A counter is:
A register that counts through a specific sequence of states upon the application
of a sequence of input pulses, i.e. clock and/or other input signals.
A register is:
A group of flip-flops that can be used to store more than one-bit of data.
A flip-flop is a synchronous bistable device.
The inputs together with present state determine the outputs and its next state, at
either the positive edge or the negative edge of the clock pulse.
Edge-triggered flip-flops comprise of: SR flip-flop, JK flip-flop, D flip-flop and T flipflop. The Excitation Table for these flip-flops is as depicted in Table 3.1.
Table 2.1 Excitation Tables for JK, SR, D and T flip-flops
Q
Q+
PRE-LAB PREPARATION:
Develop the design for the two Design Problems given in the EXPERIMENTAL
METHOD part using the pen and paper technique, by means of these steps:
EXPERIMENTAL METHOD:
Both Design Problems I and II involve synchronous counter circuits.
1. Use JK flip-flops. Set CLOCK of each JK flip-flop as input ports and Q0 to Qn as
output ports, with Q0 as the Least Significant (LSB) bit and Qn as the Most
Significant (MSB) bit.
2. Use Quartus II to draw the schematic diagram, simulate the circuit and generate
the logic symbol.
Connect the PRESET and CLEAR pins of the JK flip-flops to Vcc (logic 1)
since both input pins are working on active low. The JK flip-flop symbol can
be found under the primitives | storage library; its component name is
jkff.
The output waveforms of the counter can be merged together as one group,
with its values converted from n-bit binary values, to be declared either as a
hexadecimal (hex) or a decimal value.
To do this, select the counter output waveforms, from Q0 to Qn. Then, right
click | grouping | group, followed by giving a name to the group, e.g. Q
[n..0].
Design Problem I
Construct the design for the 4-bit Up-Counter illustrated by the state diagram in Figure
2.2.
START
15
14
13
3
4
12
11
5
10
6
9
Design Problem II
Design of a 3-bit Up-Down Binary counter.
NAME:
MATRIX NO:
COURSE:
DATE:
RESULTS VERIFICATION:
Design Problem I
Item
Schematic
Status
Instructor
Verification
Drawing completed
Error-free upon compilation
Symbol generated
Waveform
Design Problem II
Item
Schematic
Status
Drawing completed
Error-free upon compilation
Symbol generated
Waveform
Instructor
Verification