digital clock using rtc | Miscellaneous › Others › digital clock using rtc This topic has 0 replies, 1 voice, and was last updated 9 years, 6 months ago by Mithilesh Kumar. Viewing 1 post (of 1 total) Author Posts March 2, 2015 at 11:12 am #3511 Mithilesh KumarParticipant 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 Username: Password: Keep me signed in Log In