Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Graphics Expert

Main objectives:

  1. To test to micro-controller I2C protocol bus functionality
  2. Setting and displaying accurate time and date on the LCD

GENERAL DESCRIPTION

The DS1307 serial real-time clock (RTC) is a low power, full binary-coded decimal (BCD) clock/calendar that has 56 bytes of NV SRAM. The I2C, bidirectional bus is used serially to transfer the address and data.

The clock/calendar provides information of seconds, minutes, hours, day, date, month, and year. The end of the month date is automatically adjusted for months with fewer than 31 days, which includes corrections for leap year. The clock can operate in either 12-hour displaying AM/PM or in 24-hour mode.

The DS1307 has a built-in power-sense circuit that detects power failures and automatically switches to the backup supply. The timekeeping operation continues while the part operates from the backup supply.
REAL-TIME CLOCK, RTC is a battery-powered clock that is an IC located on the computer motherboard or embedded systems that allows the computer to keep time. The RTC keeps track of accurate time and calendar i.e. the second, minute, hour, day, month and year. RTCs are present in almost any electronic device which needs to keep accurate time.
The DS1307 (RTC) Real Time Clock IC (an I2C real time clock) is an 8-pins device using an I2C interface. It has 8 read/write registers that store the following information in table below.

TABLE : Real Time Clock IC DS1307 Pins functions

Address

Register function

0

Seconds 0-59

1

Minutes 0-59

2

Hours 0-24,1-12

3

Day 1-7

4

Date 1-31

5

Month 1-12

6

Year 0-99

7

Control


Note: In the same way as the I2C pins you need to add a pull-up to V+ at the SQW/OUT pin to see any output signal, as it is an open drain output.

REAL TIME CLOCK IC DS1307: CLOCK HALT

The Clock Halt Bit (CH) which is bit 7 of address 0 is the most important factor. This is the register that controls 'seconds' and the CH bit has to be preserved otherwise the chip stops the clock. Writing zero to this bit resets the CH bit so that the clock runs. You have to reset the CH bit to zero to let the chip operate!

REAL TIME CLOCK IC: 32 KHZ OSCILLATOR

Using the DS1307 allow you to put the crystal in the least noisy part of the interface board and also sets the crystal load capacitance which is critical in making the crystal oscillate at exactly 32 kHz - controlling its initial error i.e. for the specified ppm error value, the load capacitance must be accurate.

Note: A common way of calibrating a crystal is the crystal pulling or changing the capacitance at one crystal pin relative to the other. Hence the load capacitance is crucial.

REAL TIME CLOCK IC: POWER FAILURE.

The DS1307 detects a power failure if its input voltage (VCC) falls below (VBat) and automatically switches to the VBat supply input (a lithium 3V battery can be used as the backup battery). It also inhibits I2C control signals until VCC is 1.25 x VBat in order not to put bad data into the chip as the power fails.

Computer Graphics, Computer Science

  • Category:- Computer Graphics
  • Reference No.:- M9523884

Have any Question?


Related Questions in Computer Graphics

The saffir-simpson hurricane scale classifies hurricanes

The Saffir-Simpson Hurricane Scale classifies hurricanes into five categories numbered 1 through 5. Write an application named Hurricane that outputs a hurricane's category based on the user's input of the wind speed. CA ...

The problemyou are to search a bitmap in rgb format and

The problem: You are to search a bitmap in RGB format and count the number of pixels which match a set of colors. The bitmap will be 1024 by 1024 pixels for the purposes of explaining this problem. The set of colors will ...

The problemsit is strongly recommended that you tackle the

The problems: It is strongly recommended that you tackle the following tasks in a modular way -- a separate standalone function for each task. Draw a rectangle as a Rectangle and as a Polygon. Make the lines of the Polyg ...

Please read my question if you post copy and pasted code

Please read my question if you post copy and pasted code you will get a negative review. This is java In this graphical program, you are going to simulate arcade car racing game. You need a single player that is movable ...

Question a describe the architecture of simple raster

Question : a) Describe the architecture of simple raster graphics system? b) Explain raster scan display processor?

You have a program draw a rectangle on the screen and allow

You have a program draw a rectangle on the screen and allow the user to change the color/size of the rectangle. The program will store in the browser the settings of the color/size so that upon revisiting the page, the v ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As