Displaying of Digital Clock Through Digital Circui
Displaying of Digital Clock Through Digital Circui
net/publication/313863092
CITATIONS READS
0 21,050
2 authors, including:
SEE PROFILE
All content following this page was uploaded by Durgam Chinni Krishna on 18 October 2018.
ABSTRACT
With a view to display a Digital Clock through digital circuits using modulo-n (mod-n) counters, a
circuit diagram was designed and implemented it through multi simulation software. In the similar manner the
time digits were displayed on seven segment displays at 8255 programmable peripheral interface (PPI) ports
through 8051 microcontroller, the time digits (hours, minutes and seconds) were connected to the first 8255 PPI
and the date digits (Years, months and days) were connected to second 8255 PPI. The detailed circuit diagram
was given to understand the construction details of the circuit. The loop in a loop technique of assembly
language program was used to display date and time. After displaying a year, month and day on the date
displays through main program, it calls 1day subroutine to display time in 24 hours clock. The 1day subroutine
calls 1second delay subroutine to change the digits in seconds display. After completion of 24 hours time, the
digit will be changed in the days display to indicate the next date. After completion of 31 days in the first month,
the main program calls month subroutine to change the digit in the months display. Precautions were taken to
change the digits in months display for January 31 days, February 28 days, March 31 days, April 30 days, May
31 days, June 30 days, July 31 days, August 31 days, September 30 days, October 31 days, November 30 days
and December 31 days. After completion of a month, there will be a change in years digit and this process will
be repeated continuously.
Keywords: Digital Clock, Modulo-n Counters, Interfacing, Assembly Language program, Loop in Loop
technique, Binary Coded Decimal (BCD) number
The practical circuit diagram to design a 24 hours simulation software [2] with execution results were
digital clock by using mod-n counters on Multi- shown in Fig. 2.
It is observed from figure 2 that, each digit The experimental diagram to display Time
in LSB reaches its required value may apply a and date through 8051 microcontroller as its ports
clock pulse to its next higher digit. When the clock information given in a text book [3] was given in
pulse reached to minutes place, it clears all digits in Fig. 3. One 8255 ports are used to control the Time
seconds place. Similarly, when a clock pulse digits and another 8255 PPI ports are used to
reached to hours place, then all digits in minutes control the digits of the date. The Table 1 shows
and seconds place will be cleared. When it reaches the 8255 ports bit conditions to display time and
highest value all digits were cleared and it repeated date in a systematic manner.
in incrementing mode. Change the clock position to
set or reset any of the digits in a digital clock.
Fig. 3. Displaying of Time and Date through 8051 microcontroller and 8255 PPI ports
The Table 2 shows the assembly language modify the value of delay time by introducing an
program of 8051 microcontroller to display 24 extra register. The suitable address locations of
hours time and 2 digits years. The program one 8051 microcontroller memory used in our
executed, it gives exact values up to a period of 99 laboratory starts from 8000H onwards.
years. Precautions were taken in the assembly We successfully verified the program of
language program to change the values in a leaf displaying of a time on seven segment displays
year for every 4 years. The delay program gives through 8051 assembly language program. Due to
exactly 1 second delay, so that the clock works time restrictions we could n’t verified the program
accurately without any deviation. Two address of displaying of the date. We expected that the
locations were written with NOP instructions to program could be worked out.
Table 2: Assembly language program for 8051 microcontroller to display Days at Port A, Months at port B and
years at port C of 8255 PPI. ORG 8000; Initial address of the program
Table 4: Assembly language program for 8051 microcontroller to display Seconds at Port A, Minutes at port B
and Hours at port C of 8255 PPI.
III. CONCLUSIONS
1. The modulo-n counters were used to generate a
digital clock He also wishes his thanks to his family
2. Change the clock position to set or reset any of members and friends for their support. He would
the digits in the digital clock. like to convey his best wishes to his small kid
3. The lower digits reaches its maximum value, it Master Krishna Chaithanya, who makes the author
supplies a clock pulse to its higher digit. in a refreshing mind by his smile and kidding
4. When higher digits are resetting, they clears all actions. Finally he would like to express his thanks
its lower positions. to his M.Sc. Applied Electronics students for their
5. Two separate 8255 PPIs required to display support.
time and date separately
6. The delay subroutine must give exactly 1
second delay to display time and date REFERENCES
accurately.
7. It is cheapest to design the digital clock with [1] R.P. Jain and M.M.S. Anand; Digital
digital circuits than with the microprocessors. Electronics Practice using Integrated
Circuits, Tata McGraw-Hill Publishing
ACKNOWLEDGEMENT Company Limited, New Delhi.
The first & corresponding author would [2] Dr. D. Chinni Krishna, Volume 3,
like to express thanks to Dr. S. Jaikishan garu, the Number 2, Gaussian Journal of Science &
Chairman, Secretary & Correspondent of Bhavan’s Applications, July-December 2015. ISSN:
New Science College for encouraging him to carry 2348-0440
out the research work and publish papers. He also [3] Muhammad Ali Mazidi, Jainice Gillispie
thanks the management for providing the facilities Mazidi and Rolin D. McKinlay; The 8051
in Department of Physics to carry out the above Microcontrollers and Embedded Systems
project. He also likes to wishes his thanks to his using Assembly and C, Second Edition,
colleagues Dr. P. Indira, Dr. S. Laxmi Srinivasa Eastern Economy Edition-2006, Prentice
Rao (The In charge Principal of BNSC (Day)), Sri. Hall of India Private Limited, New Delhi-
D. Sambasiva Rao, Dr. B.V. Prasad, Dr. RVGK 110001.
Mohan, Dr. S. Jagan Mohan, Mr. B. Anjaiah, Ms.
Shahenn Sk, Mr. N. Venkateswar Reddy and Ms.
Asiya for their encouragement and support. He
would also like to express his thanks to Mr. Balraj,
Mr. Suresh, Mr. Sriram, the Non teaching staff of
Dept. of Physics of BNSC for their support.