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.
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.
Hi,
you can use DS1307(real time clock and calender).you write time and date on it and then you can read the time and date from it.(you should connect it to micro and this ic has I2C serial communication so have to use I2cread and I2Cwrite instructions to read and write on DS1307)
it's one of the best choice.
in this ic second,minute,hour,day,date,month and year have their appropriate registers that after writting to them,the time and calendet start to work and then you should just read these registers.
if you don't use this ic you should use timers in micro but it's alittle harder.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.