Digital clocks for synchronization and communications