You are on page 1of 9

REAL TIME CLOCK

USING FPGA
B. E. III, Semester 5
(Electronics Branch)
Subject : DIGITAL DEISGN

Submitted by:
1 AYUSH JAIN
2 JAY JATANIYA

Submitted to:
Prof. Chintan Patel
(Faculty Guide)

130070110019
130070110022

Introduction

Areal-time clock(RTC) is
acomputerclock(most often in the form of
anintegrated circuit) that keeps track of the
currenttime. Although the term often refers to
the devices inpersonal
computers,serversandembedded systems,
RTCs are present in almost any electronic
device which needs to keep accurate time.
RTC is an electronic device in the form of
an Integrated Chip (IC) available in various
packaging options

Applications

Smart Energy- Smart Energy applications can use a


real-time clock with a MAC address for wired and
wireless communications with other devices.
Utility Metering- Digital trimming in the real-time
clock can be used to perform software temperature
compensation for more accurate time.
Ethernet- The EUI-48 or EUI-64 MAC Address in
the RTCC can provide any Ethernet enabled
application with its own unique identification.
LCD- The time of day and date from a real-time clock
is regularly displayed on the LCD in many systems.

WHY BASYS 3 BOARD :

Concept

Inputs and outputs :

The module has one input 'clk' and 3


outputs. Each output represents time in
seconds, minutes and in hours.
Input will be clock provided by the board
and we will display the output on the
Seven-segment display using binding of
RTC and Seven segment module using
Multiplexer.

Process

The module has three processes

One of them generates the necessary


clock frequency needed to drive the
digital clock.
The second process increment the
seconds, minutes and hours etc. when
the conditions are met
The third process displays the output on
seven segment of FPGA (Basys3) which
can be done by writing codes for seven
segment displays.

Code concept

Here we have first convert 100Mhz to


1hz clock ,then define vectors for
second, minute and hour.
Apply one counter for counting
signals ,when counter reaches 60 it
will increment value of minute and starts
again from 0.
Now when minute becomes 60 it will
incerement hour and starts from ) again.

Binding

We can use Seven segment to show


output which is in BCD so we will use
BCD to Seven segment in positive logic.
We have used case statement for this

THANK YOU

You might also like