EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / digital clock using rtc

digital clock using rtc

|

Miscellaneous › Others › digital clock using rtc

  • This topic has 0 replies, 1 voice, and was last updated 11 years, 1 month ago by Mithilesh Kumar.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • March 2, 2015 at 11:12 am #3511
    Mithilesh Kumar
    Participant

    i am doing a project on digital clock using rtc, but i dont have knowledge in C.

    i need your help.
    ….

    ..

     

    {
    char i;
    static bit ack_bit;
    for(i=0;i<8;i++)
    {
    if(Data & 0x80) SDA=1;
    else SDA=0;
    SCL=1;
    Data<<=1;
    SCL=0;
    }
    SDA=1,SCL=1;
    ack_bit=SDA;
    SCL=0;
    return ack_bit;
    }
    unsigned char I2CRead(char ack)           //receive data from ds1307
    {
    unsigned char i, Data=0;
    SDA=1;
    for(i=0;i<8;i++)
    {
    Data<<=1;
    do{SCL=1;}
    while(SCL==0);
    if(SDA) Data|=1;
    SCL=0;
    }
    if(ack)SDA=0;
    else SDA=1;
    SCL=1;
    SCL=0;
    SDA=1;
    return Data;
    }
     
     
     
    what does it mean..
  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • AI algorithm for bots April 17, 2026
  • SDCC Array Access In Timer 0 Interrupt Handler April 16, 2026
  • EasyEda program has a major bug April 16, 2026
  • ANOTHER OLD PROJECT REDO April 16, 2026
  • How to set the OSCAL in a PIC 12F675 April 16, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise