Difference between revisions of "Interfacing RTC with Atmega128 Breakout"
Raghavendra (Talk | contribs) |
Raghavendra (Talk | contribs) |
||
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 == | ||
+ | |||
+ | == Demo == | ||
+ | [[File:00Interface RTC with Atmega128.gif|none]] |
Revision as of 11:12, 7 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