Let's say I get a binary signal in digital form, where a logical "1" is transmitted as the presence of a signal, and a logical "0" is the absence of a signal.
The duration of the logical “1” is the same as the logical “0”, but the transmitter clock can drift, slightly differing by 1 or 0. The maximum number of consecutive 1 or 0 can be transmitted.
In computer programming code, what is the general algorithm for this? How to synchronize the receiver clock to adapt drifts? What should be the minimum sample rate of the signal?
source
share