Horizontal bar

The DOS/Win/Win95 driver

Horizontal bar

The best way to handle this interface is to write a device driver but it's a hard job, so for the moment I wrote only an MS-DOS program (in Borland Pascal 7.0) that is not memory resident.
I launch it in an iconized DOS session under Windows 95 (works also under Windows 3.xx), and, once received the correct time and set the system clock it exits. I added a link to it in the startup folder, so every time I boot my PC the clock is synchronized in a few minutes. Since only one bit per second is received the system is not overloaded. This is not an elegant solution, but it works.

Here are the command usage and the command line arguments:

Use:    DCF77 [ COMx | Pyyyy Izz ] [ -sync [ -ret ] ] [ -nochk ] [ -notmout ]

Where:  x         is the COM port number (1..4) of the receiver (default COM2)
        yyyy      is the I/O port number (hex) of the non-standard COM port
        zz        is the IRQ number (dec) of the non standard COM port
        -sync     sets the real time clock of the PC after having decoded
        -ret      returns to DOS after having synchronized the clock
        -nochk    skips IRQ busy checking (use carefully)
        -notmout  skips timeout checking (use when reception is difficult)
DCF77 can use a standard COM port (COM1..COM4) or a custom port by specifying the port address and the IRQ number.
I recommend to connect the interface to a COM port that uses a free IRQ (because in most cases the IRQ is shared with the mouse or with the modem and the system may hang); modern ports allow to select any IRQ. The IRQ checking routine is not 100% sure and if it doesn't work on your system just disable it with the -nochk option.
The real time clock is usually not set. To synchronize your RTC add the -sync option.
I included the -ret parameter in order to allow the program to terminate (and free system resources) once synchronized the clock and the -notmout option to prevent timeouts in case of poor reception.

Text file Download dcf77.pas (42,828 bytes): the full pascal source.
Binary file Download dcf77.exe (14,576 bytes): the compiled program.
Binary file Download dcf77.pif (967 bytes): the Windows 95 link.

Read my disclaimer.

Note: this program does not seem to work under Windows 95B (OSR2). Does anybody know how to program serial ports at 40 bauds with IRQ handling in Delphi? If you do send me an email.

Horizontal bar

The complete receiver in his final location, click to zoom

The above picture shows the complete interface, connected to the active antenna in it's final location. The antenna is fixed on a 100% wood wall.

Horizontal bar

Back Back to DCF77. Home Back to the home page. Previous Previous page.

Horizontal bar

Italiano Questa pagina è disponibile anche in italiano.

Horizontal bar