avr and ds1307

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi everybody
I want to connect Atmega88 to DS1307(Real Time Clock) and then display on LCD. In ds1307 support these funtions:
1) void rtc_init(unsigned char rs, unsigned char sqwe, unsigned char out)
2) void rtc_get_time(unsigned char *hour, unsigned char *min, unsigned char *sec)
3) void rtc_set_time(unsigned char hour, unsigned char min, unsigned char sec
4) void rtc_get_date(unsigned char *date, unsigned char *month, unsigned char *year)
5)void rtc_set_date(unsigned char date, unsigned char month, unsigned char year)

In Atemega88 supports I2C for connect ds1307
when i complete program by useful these funtion above and display on LCD, i don't see anything
Can you help me?if you have code . please send to me.
Thanks a lot

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Off topic for this forum (Academy projects)! Read the Guidelines.

Leon

Leon Heller G1HSM