Difference between revisions of "A6.8051 Interfacing: RTC DS1307"
(Created page with "=Basics=") |
|||
Line 1: | Line 1: | ||
=Basics= | =Basics= | ||
+ | {{Box|type=l_green_light|text= | ||
+ | The Real time clock DS1307 IC basically is stand alone time clock. Well, basically we can use a micrcontroller to keep time, but the value would go off as soon as it is powered off. | ||
+ | |||
+ | The RTC DS1307 is a handy solution to keep time all the way, when it is powered by a coin cell. | ||
+ | |||
+ | It is uses '''I²C''' ('''Inter-Integrated Circuit''') protocol, referred to as ''I-squared-C'', ''I-two-C'', or ''IIC'') for communication with the micrcontroller.Let see first the basics of the communication protocol first. | ||
+ | |||
+ | [[Image:I2C.png|thumb|350px|A sample schematic with one master and three slaves]] | ||
+ | |||
+ | The '''I²C''' require only two wires for communication. One is called the '''Serial Data (SDA)''' and the other is '''Serial Clock (SCL)''' as shown. | ||
+ | |||
+ | There are various modes and configurations in which it can be used. Let us start simply with a single master and a single slave. | ||
+ | |||
+ | |||
+ | }} |
Revision as of 12:58, 26 January 2014
Basics
The Real time clock DS1307 IC basically is stand alone time clock. Well, basically we can use a micrcontroller to keep time, but the value would go off as soon as it is powered off.
The RTC DS1307 is a handy solution to keep time all the way, when it is powered by a coin cell.
It is uses I²C (Inter-Integrated Circuit) protocol, referred to as I-squared-C, I-two-C, or IIC) for communication with the micrcontroller.Let see first the basics of the communication protocol first.
The I²C require only two wires for communication. One is called the Serial Data (SDA) and the other is Serial Clock (SCL) as shown.
There are various modes and configurations in which it can be used. Let us start simply with a single master and a single slave.