Professional Documents
Culture Documents
This Study Resource Was: Complex Engineering Design
This Study Resource Was: Complex Engineering Design
This Study Resource Was: Complex Engineering Design
submitted by:
m
ABDUL REHMAN AFZAL FA19-BEE-030
er as
M.NAZAHAT ALI FA19-BEE-033
co
M.ZAIN DABEER FA19-BEE-036
eH w
o.
Submitted to:
rs e
ou urc
Mr. Waqar Tahir
o
aC s
vi y re
ed d
ar stu
is
AUGUST 2020
This study source was downloaded by 100000828651321 from CourseHero.com on 11-27-2021 19:27:39 GMT -06:00
https://www.coursehero.com/file/94110796/STOP-WATCH-USING-JK-FLIPFLOPdocx/
STOP WATCH USING JK FLIPFLOP
August 2020
1 Project discription
A stopwatch is a handheld timepiece
designed to measure the amount of time that elapses between its activation and
deactivation. A large digital version of a stopwatch designed for viewing at a
distance, as in a sports stadium, is called a stop clock. In manual timing, the clock
m
is started and stopped by a person pressing a button.
er as
co
2 Introduction
eH w
o.
The digital stopwatch we designed is a time-keeping
rs e
device that is meant to measure the time elapsed from the start to end of any
ou urc
event. The stopwatch has several different functions including pause (which
represents both start and stop), reset, write to the LCD, and is able to clear the
hundredth of a second output. We used the JK flip flop and seven segment
display. The jk flipflop was used to implement our digital stopwatch, and seven
o
segment display was used to display the counter time and the elapsed time. The
aC s
computing language that we used to write the program is VHDL, which works
well to program the FPGA we used. In the stopwatch we use jk flip flop and two
vi y re
push buttons to allow for user interactions. The write to seven segment will
display the elapsed time on the LCD when activated. When deactivated the LCD
will show the running time. When the pause switch is activated, the stopwatch
will stop running. When the last function reset is activated, all digits change to
ed d
zeros. We also added the hundredth second (HTSeconds) function that when
ar stu
hours and seconds or a circuit displaying the number of clock pulses. Here we
design the second type wherein the circuit displays count from 0 to 59,
Th
representing a 60 second time interval. In other words here the circuit displays
the time in seconds only. This is a simple circuit consisting of a 555 timer to
produce the clock pulses and two counter ICs to carry out the counting
operation.
sh
This study source was downloaded by 100000828651321 from CourseHero.com on 11-27-2021 19:27:39 GMT -06:00
https://www.coursehero.com/file/94110796/STOP-WATCH-USING-JK-FLIPFLOPdocx/
3 Block diagram of project
m
er as
co
eH w
FIGURE 1-Block diagram of digital stopwatch using j k flipflop.
o.
4 rs e
Components details
ou urc
4.1 JK FLIPFLOP
It also has two input units like other sequential circuits. The set input of JK flip
o
flop circuit is known as ‘J’ and the reset input of it is known as ‘K’ input. There
aC s
are many flip-flops design which are currently being used, but the most common
vi y re
one which is widely used is JK flip flop circuit. It is also a sequential circuit.
ed d
ar stu
is
Th
sh
This study source was downloaded by 100000828651321 from CourseHero.com on 11-27-2021 19:27:39 GMT -06:00
https://www.coursehero.com/file/94110796/STOP-WATCH-USING-JK-FLIPFLOPdocx/
4.2 IC 7447
The 7447 chip is used to drive 7 segment display. You must use the 7447 with a
common anode 7-segment display. The input to the 7447 is a binary number
DCBA where D is 8s, C is 4s, B is 2s and A is 1s. The inputs DCBA often come from
a binary counter
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
A NAND gate (sometimes referred to by its extended name, Negated AND gate) is
a digital logic gate with two or more inputs and one output with behavior that is
ar stu
This study source was downloaded by 100000828651321 from CourseHero.com on 11-27-2021 19:27:39 GMT -06:00
https://www.coursehero.com/file/94110796/STOP-WATCH-USING-JK-FLIPFLOPdocx/
FIGURE 4- blue seven segment display.
4.5 GROUND
In electrical engineering, ground or earth is the reference point in an electrical
m
er as
circuit from which voltages are measured, a common return path for electric
current, or a direct physical connection to the earth . Electrical circuits may be
co
connected to ground (earth) for several reasons.
eH w
4.6 D CLOCK (WAVE)
o.
A clock signal is produced by a clock generator. Although more complex
rs e
arrangements are used, the most common clock signal is in the form of a square
ou urc
wave with a 50
This study source was downloaded by 100000828651321 from CourseHero.com on 11-27-2021 19:27:39 GMT -06:00
https://www.coursehero.com/file/94110796/STOP-WATCH-USING-JK-FLIPFLOPdocx/
5.0.1 On BREADBOARD
m
er as
co
eH w
o.
rs e
ou urc
FIGURE 6- hardware of digital stopwatch.
o
6 Working
aC s
vi y re
1: This digital stopwatch can count nine minutes and 59.9 seconds.
2: The circuit consists of a 555 a stable multi vibrator.
3: It generates 10 pulses in one second. We can enable or disable IC 555 by
applying a high or low voltage to pin 4 of 555. This is done by IC 7476.
ed d
4:7476 is a JK flip-flop. Its J and K input are given high level. Therefore this flip-
flop toggles at each trailing edge of the clock pulse. Here clock pulses are given
ar stu
one second. The third display begins its counting as the second display changes
from 9 to 0. Then the display counts 10 seconds.
Th
7: When the count of the third display reaches 6, both input terminals of NAND
gate A of IC 7400 becomes high. So its output becomes low. This output appears
as a trailing edge for the fourth display and it starts counting. Then output of the
NAND gate gets inverted. C now becomes high. This is applied to RESET pin of
sh
7490. Therefore all counters except 4 reset to 0. The display shows 1.000. i.e. 1
minute and 0 seconds. IC 7447 is used to convert BCD to 7-segment form.
This study source was downloaded by 100000828651321 from CourseHero.com on 11-27-2021 19:27:39 GMT -06:00
https://www.coursehero.com/file/94110796/STOP-WATCH-USING-JK-FLIPFLOPdocx/
7 Analysis
In this project we analyes that the term digital in electronics represents the data
generation, processing or storing in the form of two states. The two states can be
represented as HIGH or LOW, positive or non-positive, set or reset which is
ultimately binary. The high is 1 and low is 0 and hence the digital technology is
expressed as series of 0’s and 1’s. we use 6 seven segment display to show the
counting of the stopwatch.
8 Conclusion
In this project, we gained a lot of knowledge and experience working with a jk
digital stopwatch. We learned how to connect a sevensegment display to an IC
m
7447 and develop protocol for the two to interact. Furthermore, we learned
er as
more about the fundamental principles of digitallogic systems. Our group
members have all improved in several areas such as building a structural data
co
eH w
path for a digital system and understanding more about state machine. Our
project was a great real-life experience in building a software/hardware co-
o.
design and our stopwatch could be used regularly in sports, experiments, etc.
rs e
ou urc
9 Task distribution table
o
aC s
vi y re
ed d
ar stu
is
Th
10 Reference
1- VHDL Coding Tutorial- Daniel Llamocca http://www.secs.oakland.edu/ llamocca/VH DLforFPGAs.html.
2- Intro to Digital Design- Darrin M. Hanna http://www.digilentinc.com/data/text
sh
ntrodigitaldesign−digilent−vhdlonline.pdf
3−AnIntroductiontoSoftwareandHardwareInterfacing2ndEditi Han – WayHuanaa.
This study source was downloaded by 100000828651321 from CourseHero.com on 11-27-2021 19:27:39 GMT -06:00
https://www.coursehero.com/file/94110796/STOP-WATCH-USING-JK-FLIPFLOPdocx/
Powered by TCPDF (www.tcpdf.org)