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, 6 months 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 feed: Recent Posts Recent Posts

  • Will this solenoid actuator work as intended? September 13, 2026
  • NE602/SA602 Bias and Buffer circuit September 13, 2026
  • Rotary encoder with push function September 12, 2026
  • How much does generator frequency stability matter for sensitive electrical equipment? September 12, 2026
  • differential line loss question September 11, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly 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 Arrowfly
Privacy Policy | Advertising

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