(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
In this example we are using DS1307 serial Real Time Clock. DS1307 which communicate with Atmega128 through I2C ( Inter-Integrated-Circuit) protocol.  
 
In this example we are using DS1307 serial Real Time Clock. DS1307 which communicate with Atmega128 through I2C ( Inter-Integrated-Circuit) protocol.  
 
Befor we continue please refer the Basics of [http://exploreembedded.com/wiki/Real_Time_Clock(DS1307)_with_AVR Real Time Clock with AVR].  In [https://www.exploreembedded.com/product/RTC%20&%20EEPROM%20Breakout RTC Breakout]  SCL and SDA  pins are broken out which are needs to be connected to Atmega128 controller I2C lines. LCD data lines (Lower 4 bit D4 to D7) are connected to Port B4 to Port B7 of Atmega128, and similarly LCD control lines(RS,R/W and Enable) are connected to Port B0 to Port B2 of Atmega128.
 
Befor we continue please refer the Basics of [http://exploreembedded.com/wiki/Real_Time_Clock(DS1307)_with_AVR Real Time Clock with AVR].  In [https://www.exploreembedded.com/product/RTC%20&%20EEPROM%20Breakout RTC Breakout]  SCL and SDA  pins are broken out which are needs to be connected to Atmega128 controller I2C lines. LCD data lines (Lower 4 bit D4 to D7) are connected to Port B4 to Port B7 of Atmega128, and similarly LCD control lines(RS,R/W and Enable) are connected to Port B0 to Port B2 of Atmega128.
 +
 +
== Hook Up==
 +
[[File:Interfacing RTC with Atmega128 Breakout bb.png|none]]
 +
 +
 +
== Code ==
 +
<html>
 +
<script src="https://gist.github.com/Xplorer001/dabc20ebd54d261f07f0.js"></script>
 +
</html>
 +
 +
== Demo ==
 +
[[File:00Interface RTC with Atmega128.gif|none]]
 +
 +
=Video Tutorial=
 +
For those of you, who would like to watch instead of read we have made a video with all the gyan.
 +
<br>
 +
{{#ev:youtubehd|-lNAmSNV2-Q|640}}
 +
 +
 +
 +
 +
= Downloads=
 +
Download the complete project folder from the below link:
 +
https://github.com/ExploreEmbedded/ATMega-128-Break-Out-BoardDVB-12007/archive/master.zip<br>
 +
 +
 +
 +
Have a opinion, suggestion , question or feedback about the article let it out here!
 +
{{DISQUS}}

Latest revision as of 13:13, 19 April 2016

In this tutorial we will interface the RTC ( Real Time Clock ) with Atmega128 Breakout. We need the following Breakout boards and Display for interfacing.

Basics

In this example we are using DS1307 serial Real Time Clock. DS1307 which communicate with Atmega128 through I2C ( Inter-Integrated-Circuit) protocol. Befor we continue please refer the Basics of Real Time Clock with AVR. In RTC Breakout SCL and SDA pins are broken out which are needs to be connected to Atmega128 controller I2C lines. LCD data lines (Lower 4 bit D4 to D7) are connected to Port B4 to Port B7 of Atmega128, and similarly LCD control lines(RS,R/W and Enable) are connected to Port B0 to Port B2 of Atmega128.

Hook Up

Interfacing RTC with Atmega128 Breakout bb.png


Code

Demo

00Interface RTC with Atmega128.gif

Video Tutorial

For those of you, who would like to watch instead of read we have made a video with all the gyan.



Downloads

Download the complete project folder from the below link: https://github.com/ExploreEmbedded/ATMega-128-Break-Out-BoardDVB-12007/archive/master.zip


Have a opinion, suggestion , question or feedback about the article let it out here!