Real time clock -rtc, Computer Graphics

Assignment Help:

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.


Related Discussions:- Real time clock -rtc

Different types of simulating motion - computer animation, Different types ...

Different types of Simulating Motion - Computer Animation Here we discuss different ways of simulating motion as: a. Zero Acceleration or Constant Speed b. No

Clip a line segment - cyrus beck line clipping algorithm, How does the Cyru...

How does the Cyrus Beck line clipping algorithm, clip a line segment whether the window is non convex? Solution : see the following figure 13, now the window is non-convex in s

Panning and zooming a component, Panning and zooming Components (such as yo...

Panning and zooming Components (such as your Polybounce or Animation) is simply a matter of reFrameing the world window. To pan right or left horizontally, one shifts it in the pos

Basic graphics and mouse events, For this assignment, you will program a ga...

For this assignment, you will program a game called Pig. Pig is a two-player game where players compete to be the first to reach (or surpass) 100 points. Pig usually involves playe

Translation - 2-d and 3-d transformations, Translation - 2-d and 3-d Transf...

Translation - 2-d and 3-d Transformations It is the process of changing the position of an object. Suppose an object point P(x,y)=xI+yJ be moved to P'(x',y') by the specified

Poser - software to generate computer animations, Poser - software to gener...

Poser - software to generate computer animations Poser: Poser through Curious Labs Creates 3-dimentaional complex models which you can view from any angle, distance o

Homogeneous coordinate systems - 2-d and 3-d transformations, Homogeneous C...

Homogeneous Coordinate Systems - 2-d and 3-d transformations Suppose P(x,y) be any point in 2-D Euclidean (Cartesian) system. In HC System, we add a third coordinate to a poin

Tones and tints, Q. What is the difference between tones and tints? Which o...

Q. What is the difference between tones and tints? Which one component of YIQ color model does black- and- white television use? How can you convert a ZTSC video signal to an RGB s

Xy-shear about the origin - 2-d and 3-d transformations, xy-Shear about the...

xy-Shear about the Origin - 2-d and 3-d transformations Suppose an object point P(x,y) be moved to P'(x',y') as a outcome of shear transformation in both x- and y-directions a

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd