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 10 years, 8 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 Recent Posts

  • JLCPBC are using a different shipping company = less $$$$$$$$ November 9, 2025
  • strange laptop problem November 9, 2025
  • Manually actuate fuel tank selector solenoid November 9, 2025
  • Help please! BLDC driver circuit using the IR2136s and the STP80NF06 MOSFETS November 8, 2025
  • need two ICs November 8, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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