The [[Dobbertin Smart Watch]] was produced by [[Dobbertin]] Industrie Elektronik, a German company. This real time clock was relative wide spread in the 80ies and 90ies.
<br>
== Technicals ==
The Smart Watch SmartWatch consists out of the [[RTC ]] itself and an EPROM expansion with a lot of RSX commendscommands. The RTC itself was inserted like an EPROM in any kind of ROM or EPROM card. Further it contains a little battery. At least one clock is still running in 20102014!
== Dallas Semiconductors Smart Watch ==The Time-ROM can be on another ROM-select than the SmartWatch [https://www.cpcwiki.eu/forum/amstrad-cpc-hardware/real-time-clock-board/msg249697/#msg249697 Source].[[SymbOS]] is searching for the TIME.SET RSX command. It will then use this ROM [https://www.cpcwiki.eu/forum/amstrad-cpc-hardware/real-time-clock-board/msg249768/#msg249768 Source].
[[Image:DS1216E-Drawing.gif|right]]<br>
'''Forward: Whether or not the Dobbertin Smart Watch does actually contain chipset from == Dallas Semiconductors is still unknown... The term "Smart Watch" and the technique of inserting the RTC into a ROM socket does indicate that the Dobbertin RTC has some relation to the Dallas product... It might be exactly that hardware, or similar compatible or incompatible hardware, or something entirely different... can somebody verify which chip(s) are used in the Dobbertin RTC ?'''SmartWatch ==
The 28pin '''Smart Watch''' (DS1216) is an adapter that can inserted in standard ROM sockets, a ROM chip can be mounted on the adapter, finally, inside of the adapter is a 16pin '''Phantom Time Chip''' (DS1315). Normal memory reads are forwarded to the piggyback ROM. After reading from a specific sequence of addresses, the ROM is disabled, and data is instead read from the Phantom Chip via 1bit databus. Writing to the Phantom Chip is done by reading from a specific sequence of addresses, too[[Image:DS1216E-Drawing.gif|right]]
* [[Media:DS1216-smart-watch.pdf]] - Dallas Datasheet for The 28pin '''28pin Smart Watch AdapterSmartWatch'''* [[Media:DS1315-phantom-time-(DS1216) is an adapter that can inserted in standard ROM sockets, a ROM chip.pdf]] - Dallas Datasheet for can be mounted on the adapter, finally, inside of the adapter is a 16pin '''16pin Phantom Time Chip'''* [[Media:DS1216-app-note-52(DS1315).pdf]] - Dallas Application Note on Smart Watch Normal memory reads are forwarded to the piggyback ROM. After reading from a specific sequence of addresses, the ROM is disabled, and data is instead read from the Phantom Time Chipvia 1bit databus. Writing to the Phantom Chip is done by '''reading''' from a specific sequence of addresses, too. <br>
=== 64bit packets ===
A0 data written to RTC, when A2=0=write
D0 data read from RTC, when A2=1=read, and only when pattern recognized
Note: Writes to the RTC chip are performed by using Z80 reads (PEEK) and the A2 and A0 address lines, with the SmartWatch mapped to memory and at addresses corresponding to where it is mapped.
<br>
=== Recognition Pattern ===
The recognition pattern is: C5h,3Ah,A3h,5Ch,C5h,3Ah,A3h,5Ch.
The RTC chip requires 64 sequential writes with magic serial data on A0 to unlock it, immediately followed by 64 sequential reads to retrieve the 64-bit time data packet from D0, after which the chip locks itself back into ROM mode. <br> === Register 0..7 Real-Time Clock Registers === 0 1/100 Seconds {| class="wikitable" style="text-align:center;"|-! rowspan="2" | Register !! colspan="8" | Bit Position !! rowspan="2" | Range (BCD 00h..99h) |-! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 Seconds (BCD 00h!! 0|-! 0| colspan="4" | 0.1 SEC || colspan="4" | 0.59h) (Bit701 SEC || 00–99|-! 1| 0 || colspan=Zero)"3" | 10 SEC || colspan="4" | SECONDS || 00–59 |-! 2 Minutes (BCD 00h..59h) (Bit7| 0 || colspan=Zero)"3" | 10 MIN || colspan="4" | MINUTES || 00–59 |-! rowspan="2" | 3 Hours (BCD 01h..12h or 00h..23h) (Bit5| rowspan="2" | 12/24 || rowspan="2" | 0 || AM/PM when Bit7|| 10 HOUR || colspan=12"4" rowspan = "2" | HOUR || 01–12|-hour mode) (Bit6| colspan=Zero)"2" | 10 HOUR || 00–23 |-! 4 Day of Week (01h..07h) (Bit4=Disable Reset input, Bit5=Disable | 0 || 0 || /OSC, stop clock) (Bit3,6,7|| /RST || 0 || colspan=Zero)"3" | DAY || 01–07 5 Day (BCD 01h..31h) (Bit6|-7! 5| 0 || 0 || colspan=Zero)"2" | 10 DATE || colspan="4" | DATE || 01–31|- ! 6 Month (BCD 01h..12h) (Bit5| 0 || 0 || 0 || 10 MONTH || colspan="4" | MONTH || 01–12|-! 7| colspan=Zero)"4" | 10 YEAR || colspan="4" | YEAR || 00–99 7 Year (BCD 00h.|} Legend:* /OSC controls the oscillator.99h)When set to "0", the oscillator turns on and the real time clock begins to increment* When the /RST bit is set to "0", a low input on the reset pin of the chip will cause the Time Chip to abort data transfer without changing data in the timekeeping registers <br>
== Pictures ==
The original RTC from Dobbertin:
<gallery>Image[[File:NoPictureDALLAS_DS1216.gif|Photos...?</gallery>jpg]]
== Downloads ==
* (EPROM with RSX commands) - none suchThe DXS RTC is a Dobbertin RTC clone [https://www.cpcwiki..?* (disc with CPeu/M driver) forum/amstrad- none suchcpc-hardware/real-time-clock-board/msg249386/#msg249386 Source]: [[File:RTCdxs...?jpeg|500px]] <br>
== Software ==
*The TimeROM+ Software provides RSX commands to use the RTC under BASIC.*Support for CP/M Plus is provided. The TIMEROM+.COM program sets the software clock according to the RTC. Please use the patched versions of DATE.COM, DIR.COM, SETDEF.COM and SHOW.COM (Y2K Patch).*TFM's TIMEROM#.COM supports ROM slots 0-127 now.*[[TFM]] provided some routines [[Dobbertin Smart Watch:RTC routines|here]].*The Smart Watch is also supported by [[FutureOS]], [[SymbOS]] and [[HDCPM]].[https://www.cpcwiki.eu/forum/applications/hdcpm-boot-and-run-cpm-plus-from-hard-disk/msg249582/#msg249582 Source]*The Smart Watch is emulated in [[WinApe]] and [[MAME]]. The option to emulate the Dobbertin Smartwatch in WinAPE can be found in Settings/Other/Other devices: [[File:WinAPE - Dobbertin SmartWatch.png]] <br> == Downloads ==* [[media:TIMEROM+.ROM|TIME ROM+]] ROM file* [[media:MF2_RRB.DSK|MF2_RRB.DSK]] - Vortex disc, containing the TimeRom+ CP/M driver* [[Media:DXS RTC - User Manual.pdf|DXS RTC User Manual]] <br> ==Links==*[http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/dobbertin-smartwatch-help-needed-!/ CPCWiki Forum thread]* [[Media:DS1315-phantom-time-chip.pdf|Dallas DS1315 16pin Phantom Time Chip datasheet]]* [[Media:DS1216-smart-watch.pdf|Dallas DS1216 28pin Smart Watch datasheet]]* [[Media:DS1216-app-note-52.pdf|Dallas DS1216 Application Note]]
== Source Code ==(Have to find out how to implement it here... please be patient)<br>
[[Category:FutureOS]][[Category:Hardware]][[Category:Peripherals]]