{"id":9773,"date":"2014-12-05T11:01:32","date_gmt":"2014-12-05T16:01:32","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=9773"},"modified":"2014-12-05T11:01:32","modified_gmt":"2014-12-05T16:01:32","slug":"software-realization-real-time-clock-calendar","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/software-realization-real-time-clock-calendar\/","title":{"rendered":"Software realization of Real-Time Clock and Calendar"},"content":{"rendered":"<p>Dedicated real-time clock and calendar (RTCC) chips are useful in a wide range of embedded applications, such as data loggers, for accurate time-stamping of data measurements. The use of external RTCC chip frees the main processor from timekeeping responsibility and to perform other critical tasks. However, for small applications the software realization of RTCC in the main application can simplify the design and reduce the overall cost of the system.\u00a0This <a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/AppNotes\/01303A.pdf\" target=\"_blank\"><strong>application note<\/strong><\/a> from Microchip describes the implementation of\u00a0software RTCC using PIC16F1827 microcontroller.\u00a0The implementation provides the time (seconds,\u00a0minutes, and hour), date (day, month, and year), day of\u00a0week, and one alarm signal.\u00a0The basis of this implementation of RTCC is the Timer1\u00a0counter, which is driven by an external\u00a032.768 kHz crystal. The Timer1 counter\u00a0can operate during Sleep mode, which helps to reduce\u00a0the power consumption of the overall application if it<span style=\"font-size: 0.95em; line-height: 1.6em;\">\u00a0is to be\u00a0<\/span>powered from a battery.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dedicated real-time clock and calendar (RTCC) chips are useful in a wide range of embedded applications, such as data loggers, for accurate time-stamping of data measurements. The use of external RTCC chip frees the main processor from timekeeping responsibility and to perform other critical tasks. However, for small applications the software realization of RTCC in the main application can simplify the design and reduce the overall cost of the system.\u00a0This application note from Microchip describes the implementation of\u00a0software RTCC using PIC16F1827 microcontroller.\u00a0The implementation provides the time (seconds,\u00a0minutes, and hour), date (day, month, and year), day of\u00a0week, and one alarm signal.\u00a0The<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[1052,1051],"class_list":["post-9773","post","type-post","status-publish","format-standard","hentry","category-pic-tutorials","tag-pic-microchip","tag-real-time-clock"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/9773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=9773"}],"version-history":[{"count":3,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/9773\/revisions"}],"predecessor-version":[{"id":9776,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/9773\/revisions\/9776"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=9773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=9773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=9773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}