+ Reply to Thread
Results 1 to 6 of 6

Thread: [HELP!] Atmel 89C52 interfacing with Maxim DS1307?

  1. #1
    sukhoi37 Newbie
    Join Date
    Nov 2006
    Posts
    2

    Question [HELP!] Atmel 89C52 interfacing with Maxim DS1307?

    Dear All,

    I am looking for an help from you guys to code Atmel 89C52 microcontroller interfacing with DS 1307 RTC.

    Problem is I've lost the earlier source code (used for an LED board to give real time date/time).

    And I don't really remember the LED details (serial info, code, etc of last year effort). How to redo the same, could anyone help me on this?

    Note:

    LED has some real time data display problem coming from the RTC code, needs a reflash. But now source code is missing!!!

    Regards,
    Sukhoi37


  2. #2
    penoy_balut Newbie
    Join Date
    Sep 2006
    Location
    Bagong Silang
    Posts
    171

    Default

    1307 uses I2C protocol to read or write to its registers

  3. #3
    sukhoi37 Newbie
    Join Date
    Nov 2006
    Posts
    2

    Default

    Quote Originally Posted by penoy_balut
    1307 uses I2C protocol to read or write to its registers
    Thanks for response, I do know DS 1307 uses I2C protocol. Any suggestions on how to get started with it?

    Su37

  4. #4
    amindzo Newbie
    Join Date
    Jul 2006
    Location
    Iran
    Posts
    166

    Default

    Hi,
    i haven't work with AVR microntrollers. i just work with pic's. but i know DS1307 very well and i have made a clock and calender with DS1307 and pic microcontroller so if you have problem with this IC, i will help you but i can't help you in code(because you work with AVR)

  5. #5
    penoy_balut Newbie
    Join Date
    Sep 2006
    Location
    Bagong Silang
    Posts
    171

    Default

    Quote Originally Posted by sukhoi37
    Thanks for response, I do know DS 1307 uses I2C protocol. Any suggestions on how to get started with it?

    Su37
    many sites discuss about I2C, basically it works by sending start condition, like waking up I2Cs on data line, then clock in device address, after the ninth clock leading edge read SDA for acknowledgement from I2C, if low you can now clock memory address, similar to device address wait for acknowledge and then clock out data, address is automatically incremented if you want to read further, if not then send stop condition signal

  6. #6
    januar1983 Newbie
    Join Date
    Nov 2006
    Posts
    18

    Default

    you must go to atmel for the routine, like header file, try keil c compiler maybe it has the header file

+ Reply to Thread

Similar Threads

  1. atmel 89c52 interfacing..help!!
    By amicable_technogirl in forum Micro Controllers
    Replies: 4
    Latest: 26th October 2006, 11:19 PM
  2. real time clock ds1307 interfacing with 8051
    By siprax345 in forum 8051/8951
    Replies: 13
    Latest: 12th May 2006, 05:41 AM
  3. lcd T6963 interfacing to 89c52
    By esconele in forum Micro Controllers
    Replies: 0
    Latest: 31st March 2006, 04:13 AM
  4. Interfacing Atmel with 24Cxx eeprom
    By aaaaaaaaa in forum General Electronics Chat
    Replies: 1
    Latest: 10th September 2003, 11:40 AM
  5. interfacing Atmel Microcontroller AT89C51 with LM75
    By umar abdul sattar in forum Micro Controllers
    Replies: 0
    Latest: 28th June 2003, 05:27 AM

Tags for this Thread