{"id":6081,"date":"2023-03-11T19:22:57","date_gmt":"2023-03-11T18:22:57","guid":{"rendered":"https:\/\/mumio.dev\/real-time-clock-dev-02\/"},"modified":"2026-02-02T00:25:07","modified_gmt":"2026-02-01T23:25:07","slug":"real-time-clock-dev-02","status":"publish","type":"post","link":"https:\/\/mumio.dev\/en\/real-time-clock-dev-02\/","title":{"rendered":"Real-time clock (dev. #02)"},"content":{"rendered":"\n<p>Real-time clock (RTC). Compatible with esxDOS and mass storage modules: devSD, devMMC, devIDE, Just NANO SD. It allows programming and reading time using BASIC. The card comes with an esxDOS driver: RTC.SYS \u2013 enabling correct time to be saved when writing files to disk.   <\/p>\n\n<!--more-->\n<!--noteaser-->\n\n<figure class=\"wp-block-image aligncenter size-medium\"><a href=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02RTC_pic1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"217\" src=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02RTC_pic1-300x217.png\" alt=\"\" class=\"wp-image-187\" srcset=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02RTC_pic1-300x217.png 300w, https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02RTC_pic1-600x435.png 600w, https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02RTC_pic1-1024x742.png 1024w, https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02RTC_pic1-768x556.png 768w, https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02RTC_pic1.png 1200w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Real-time clock (dev. #02)<\/figcaption><\/figure>\n\n<p>Real-time clock (RTC). Compatible with esxDOS and mass storage modules: devSD, devMMC, devIDE, Just NANO SD. It allows programming and reading time using BASIC. The card comes with an esxDOS driver: RTC.SYS \u2013 enabling correct time to be saved when writing files to disk.   <\/p>\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/rtc1-1024x525.jpg\" alt=\"\" class=\"wp-image-97\" width=\"587\" height=\"300\" srcset=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/rtc1-1024x525.jpg 1024w, https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/rtc1-600x308.jpg 600w, https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/rtc1-300x154.jpg 300w, https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/rtc1-768x394.jpg 768w, https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/rtc1.jpg 1260w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/figure>\n\n<p>Time measurement is handled by the specialized DS1307 clock chip. It stores the current time (year, month, day, hour, minute, and second) and updates it every 1 second. A 32768 Hz quartz resonator is responsible for precise timekeeping.<br\/>During normal operation, the DS1307 chip is powered by the ZX Spectrum computer. When power is off, it switches to CR2032 battery power and enters sleep mode, where it only keeps time, drawing very little current (approx. 300 nA).  <\/p>\n\n<p>The Atmega32 microcontroller (MCU), clocked by an 8 MHz quartz crystal, facilitates communication between the 19-wire MUMIO communication bus and the 2-wire I2C bus of the DS1307 chip. Its task is also to simplify the DS1307 chip&#8217;s communication protocol into easy-to-use ZX BASIC commands: IN and OUT. <\/p>\n\n<figure class=\"wp-block-embed aligncenter 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=\"Real Time Clock (dev. #02) MUMIO device for ZX Spectrum\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/aiiDF8DMwaY?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<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:10%\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02_RTC_EN.pdf\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/pdf-file-icon.png\" alt=\"\" class=\"wp-image-143\" width=\"48\" height=\"48\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:90%\">\n<p><a href=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02_RTC_EN.pdf\">Datasheet (EN)<\/a><\/p>\n<\/div>\n<\/div>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:10%\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02_RTC_PL.pdf\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/pdf-file-icon.png\" alt=\"\" class=\"wp-image-143\" width=\"48\" height=\"48\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:90%\">\n<p><a href=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/02_RTC_PL.pdf\">Datasheet (PL)<\/a><\/p>\n<\/div>\n<\/div>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:10%\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/RTC_esxDOS_drivers.zip\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/zip-icon.png\" alt=\"\" class=\"wp-image-172\" width=\"48\" height=\"48\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:90%\">\n<p><a href=\"https:\/\/mumio.dev\/wp-content\/uploads\/2023\/03\/RTC_esxDOS_drivers.zip\">RTC.SYS and DATE drivers for esxDOS<\/a><\/p>\n<\/div>\n<\/div>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Real-time clock (RTC). Compatible with esxDOS and mass storage modules: devSD, devMMC, devIDE, Just NANO SD. It allows programming and reading time using BASIC. The card comes with an esxDOS driver: RTC.SYS \u2013 enabling correct time to be saved when writing files to disk.<\/p>\n","protected":false},"author":1,"featured_media":6020,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-6081","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devices"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/posts\/6081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/comments?post=6081"}],"version-history":[{"count":3,"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/posts\/6081\/revisions"}],"predecessor-version":[{"id":6120,"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/posts\/6081\/revisions\/6120"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/media\/6020"}],"wp:attachment":[{"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/media?parent=6081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/categories?post=6081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mumio.dev\/en\/wp-json\/wp\/v2\/tags?post=6081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}