How to Interface RTC with Spartan-3 Primer FPGA

Interfacing RTC with Spartan-3 Primer FPGA

Tags: VHDL code for RTC, Schematics to interface RTC with Spartan3 fpga,
Overall rating

A real-time clock (RTC) is a computer clock (most often in the form of an integrated circuit) that keeps track of the current time. Although the term often refers to the devices in personal computers, servers and embedded systems, RTCs are present in almost any electronic device which needs to keep accurate time.

Interfacing RTC with Spartan-3 Primer FPGA

The Spartan-3 Primer board has I2C RTC, indicated as in Figure. The FPGA pins that drive the RTC port appear in Table. The SCL is clock input and is used to synchronize RTC with FPGA for various operations. When data is to be read or write, first a start condition is created followed by device address, byte address and the data itself. Finally a stop condition is provided. The start condition occurs when SDA and SCL get high to low simultaneously. The stop condition is when SDA remains low while SCL goes from high to low. The data is read or written between the start and stop conditions on every transition of SCL from high to low.

It features the DS1307 serial real-time clock (RTC). It is a low-power, full binary-coded decimal (BCD) clock/calendar with programmable square-wave output signal. Board uses I2C interface for communication, and can only use 5V power supply. Board features a 3V/230mA lithium battery as a backup power supply which ensures that timekeeping operation continues even when the main power supply goes OFF.

Pin Assignment with Spartan-3 Primer FPGA









Schematics to Interface RTC with Spartan-3 FPGA




Join the World's Largest Technical Community

we respect your privacy.