{"id":686,"date":"2024-01-22T14:36:14","date_gmt":"2024-01-22T14:36:14","guid":{"rendered":"https:\/\/ceptimus.co.uk\/?p=686"},"modified":"2024-01-22T14:36:14","modified_gmt":"2024-01-22T14:36:14","slug":"3-button-at89c2051-clock-kits","status":"publish","type":"post","link":"https:\/\/ceptimus.co.uk\/index.php\/2024\/01\/22\/3-button-at89c2051-clock-kits\/","title":{"rendered":"3-button AT89C2051 clock kits."},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/ceptimus.co.uk\/wp-content\/uploads\/2024\/01\/DSC00424-1024x768.jpg\" alt=\"\" class=\"wp-image-688\" srcset=\"https:\/\/ceptimus.co.uk\/wp-content\/uploads\/2024\/01\/DSC00424-1024x768.jpg 1024w, https:\/\/ceptimus.co.uk\/wp-content\/uploads\/2024\/01\/DSC00424-300x225.jpg 300w, https:\/\/ceptimus.co.uk\/wp-content\/uploads\/2024\/01\/DSC00424-768x576.jpg 768w, https:\/\/ceptimus.co.uk\/wp-content\/uploads\/2024\/01\/DSC00424-1536x1152.jpg 1536w, https:\/\/ceptimus.co.uk\/wp-content\/uploads\/2024\/01\/DSC00424-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I wanted some simpler-to-use firmware for these kits.  I&#8217;m not bothered about having timers, alarms, countdowns, etc.  The features I did want were:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Easy and intuitive method of setting the time, accurate to the second.<\/li>\n\n\n\n<li>Ability to dim the display (less dazzle at nighttime, and also lower power draw when running from batteries).<\/li>\n\n\n\n<li>Twelve-hour or twenty-four-hour clock mode.<\/li>\n<\/ul>\n\n\n\n<p>I achieved these aims, as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Load different firmware to swap between 12-hour and 24-hour modes.<\/li>\n\n\n\n<li>The left-hand button (nearest the hour display) always advances the hour by one, without affecting minutes or seconds.<\/li>\n\n\n\n<li>The middle-button (nearest the minute display) always advances the minute by one, and zeros the seconds.  To set the time, accurate to the second, you can hold the button down, and release it when your reference clock reaches zero seconds.<\/li>\n\n\n\n<li>The remaining, right-hand, button has the dual function of changing the brightness setting (four available brightness levels are cycled through) and (by holding the button down for a second) changing the way the separator colons work: always on, always off, or flashing once for each second. <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"AT89C2051 clock kits.  Firmware and source code for three-button variety.\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/nPDJD2328_A?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Here&#8217;s the firmware (hex files) to load to the AT89C2051:<\/p>\n\n\n\n<p>12-hour version: <a href=\"https:\/\/ceptimus.co.uk\/three_button_clock\/clock12h.ihx\">clock12h.ihx<\/a><\/p>\n\n\n\n<p>24-hour version: <a href=\"https:\/\/ceptimus.co.uk\/three_button_clock\/clock24h.ihx\">clock24h.ihx<\/a><\/p>\n\n\n\n<p>And the source code:<\/p>\n\n\n\n<p>12-hour version: <a href=\"https:\/\/ceptimus.co.uk\/three_button_clock\/clock12h.c\">clock12h.c<\/a><\/p>\n\n\n\n<p>24-hour version: <a href=\"https:\/\/ceptimus.co.uk\/three_button_clock\/clock24h.c\">clock24h.c<\/a><\/p>\n\n\n\n<p>Original (as supplied in kit) firmware: <a href=\"https:\/\/ceptimus.co.uk\/three_button_clock\/kitAsSupplied.hex\">kitAsSupplied.hex<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted some simpler-to-use firmware for these kits. I&#8217;m not bothered about having timers, alarms, countdowns, etc. The features I did want were: I achieved these aims, as follows: Here&#8217;s the firmware (hex files) to load to the AT89C2051: 12-hour version: clock12h.ihx 24-hour version: clock24h.ihx And the source code: 12-hour version: clock12h.c 24-hour version: clock24h.c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-686","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=686"}],"version-history":[{"count":5,"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/686\/revisions"}],"predecessor-version":[{"id":692,"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/686\/revisions\/692"}],"wp:attachment":[{"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceptimus.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}