I'm from computer science background and was reading NRZ encoding/decoding in my networking book (by sir Larry L. Peterson) which left me halfway with just small summary. Digging little deeper online I came across this article : Clock Recovery with digital PLL . I'm not into deep signal theory, and have no idea about sinx/x terms (but I know what frequency domains and time domains are at beginner level) and all I ask for help to understand the relevant theory to visualize things here .
In the section Clock Recovery System,
The only aspect we have, that carries part of the timing information, is the transitions between different bits. As we are going to see, transitions alone don't delivery a full solution, and a more complicated recovery system is needed (think with me, the sequence 1111, as an example, don't have any transition!).
The spectrum of a level encoded signal is a sinx/x function in the frequency domain.
Sin x/x spectrum of the NRZ encoded signal.
The signal has its power spread in a wide bandwidth, without much information about the bitrate. The only interesting visual aspect is the notches, evenly spaced apart. The first one happens to be exactly at 1200Hz, the bitrate of the simulated signal (1200 bits/s).
The energy being spread in frequency is actually the mathematical explanation about why it is hard to decode the signal. A large bandwidth signal is the dual of a well positioned information in the time-domain. This aligns with the conclusion that the timing information is only well presented in some parts of the signal - in its transitions - and not in the overall bitstream.
A better time-domain information about the overall bitstream will appear, in the frequency-domain, as power concentrated in specific frequencies.
Here we are able to use a simple but clever trick, and the first step at the receiver Clock Recovery System, is the processing of the signal through an edge detector.
The edge detector generates a signal with pulses exactly at the transitions of the received NRZ stream. This has the interesting effect of collapsing the sinx/x spectral energy into well localized frequency spurious.
The first frequency component is precisely at the bitrate frequency, 1200Hz. This is the base for clock recovery, where a timing generator will lock at this spectrum line, generating the periodic sampling of the signal line. It is useful to have a system where the phase of the generated clock is adjustable, to be correct aligned to the ideal decision moment.
Can anyone pls explain my questions
- This has the interesting effect of collapsing the sinx/x spectral energy into well localized frequency spurious <- meaning?
- Once we detected edges/pulse of input signal (which will have different widths/distance between pulses dependent on data for example 110001, so the pulse would be like after edge detection
_|__|(_=diff volt representing bits 1 or 0 , edges/transition = | ) , how edge detection makes us deduce pulse rate? why exactly we would have high spikes at 1200 Hz?
