1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

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

Discussion in 'Microcontrollers' started by sukhoi37, Nov 11, 2006.

  1. sukhoi37

    sukhoi37 New Member

    Joined:
    Nov 11, 2006
    Messages:
    2
    Likes:
    0
    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!!! :confused:

    Regards,
    Sukhoi37
     
  2. penoy_balut

    penoy_balut New Member

    Joined:
    Sep 12, 2006
    Messages:
    171
    Likes:
    1
    Location:
    Bagong Silang
    1307 uses I2C protocol to read or write to its registers
     
  3. sukhoi37

    sukhoi37 New Member

    Joined:
    Nov 11, 2006
    Messages:
    2
    Likes:
    0
    Thanks for response, I do know DS 1307 uses I2C protocol. Any suggestions on how to get started with it?

    Su37
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. amindzo

    amindzo Member

    Joined:
    Jul 29, 2006
    Messages:
    195
    Likes:
    0
    Location:
    Iran

    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)
     
  6. penoy_balut

    penoy_balut New Member

    Joined:
    Sep 12, 2006
    Messages:
    171
    Likes:
    1
    Location:
    Bagong Silang
    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
     
  7. januar1983

    januar1983 New Member

    Joined:
    Nov 15, 2006
    Messages:
    17
    Likes:
    0
    you must go to atmel for the routine, like header file, try keil c compiler maybe it has the header file
     

Share This Page