Tool for encoding and decoding DCF77 time signal
Encodes a given date and time into a 59-bit DCF77 frame (BCD-coded minute, hour, date, weekday, month and year, with parity and DST bits), or decodes a pasted 59-bit sequence back into date and time. A live-clock mode continuously generates the DCF77 frame for the current minute and highlights the bit being transmitted at each second, useful for understanding the bit timing of the German longwave time signal.
BCD encoding: Binary-Coded Decimal - each decimal digit is encoded with 4 bits
Parity: Even parity means the number of ones including parity bit must be even
Bit 59: In actual DCF77 signal, bit 59 is missing (no carrier wave), marks start of new minute
| Value | BCD | Bits (LSB → MSB) |
|---|---|---|
| 0 | 0000 | 0 0 0 0 |
| 1 | 0001 | 1 0 0 0 |
| 5 | 0101 | 1 0 1 0 |
| 9 | 1001 | 1 0 0 1 |
| 23 (hours) | 0010 0011 | 1 1 0 0 - 1 0 |
| 59 (minutes) | 0101 1001 | 1 0 0 1 - 1 0 1 |
Note: DCF77 transmits bits from least significant (LSB) to most significant (MSB)