Analog Integrated Systems

Experimenting and Learning

Feel free to contact me if you don't understand anything

This project is maintained by HishamElreedy

اللهم لا علم لنا الأ ما علمتنا به انك انت علام الغيوب

PLL Project

Theoretical Part:

a)what is the application of Clock and Data Recovery (CDR) circuit?
Describe briefly how to use PLL in CDR Applications

Clock recovery is the process of extracting timing information from a serial data stream to allow receiving circuit to decode the transmitted symols. Clock recovery from the data stream is expedited by modifying the transmitted data where in serial communication channel doesn't transmit the clock signal along with the data stream, the clock must be regenerated at the receiver using the timing information from the data stream

b)Describe briefly how to use a PLL in modulation/demodulation applications

Demodulation of frequency modulation (FM): If PLL is locked to a FM signal, the VCO tracks the instantaneous frequency of the input signal. The filtered error voltage which controls the VCO and maintains lock with the input signal is demodulated FM output. The VCO transfer characteristics determine the linearity of the demodulated out. Since the VCO used in an integrated-circuit PLL is highly linear, it is possible to realize highly linear FM demodulators.

PLL in Modulation and Demodulation
$$X_{FM}(t)={A_ccos[\omega_ct+K_{VCO}\int^t_{-\infty}{x_{BB}(\tau)d\tau}]}$$
VCO

c)Describe briefly the operation of a Delay Locked Loop (DLL)
and mention the advantages & disadvantages compared to a PLL.

Delay locked loop is used to synchronize signal that is spreaded using Direct-Sequence Scheme where we also replaces the internal Voltag-Controlled-Oscillator, by a delay ine. and we use DLL to change the phase of clock signal and also to use it in clock recovery

d)Show the schematic of a dual-modulus (2/3) divider.
Hint: This is composed of a divide-by-2 and a divide-by-3 circuits.
Simulate the divider in both modes using ideal logic (using Cadence).

A 2/3 divider cell comprises two functional blocksThe prescaler logic block divides \(F_{in}\), upon control by the end-of-cycle logic, the frequency of the input signal either by 2 or by 3, and outputs the divided clock signal to the next cell in the chain The end-of-cycle logic controls the momentaneous division ratio of the cell. The division ratio depends on the state of \(mod_{in}\) and p signals,The\(mod_{in}\) signal becomes active once in a division cycle. At that moment, the state of the p input is checked, and if p=1 the end-of-cycle logic forces the prescaler to swallow one extra period of the input signal. In other words, the cell divides by 3. If p=0, the cell stays in division by 2 mode. Regardless of the state of the p input, the end-of-cycle logic reclocks the \(mod_{in}\) signal, and outputs it to the preceding cell in the chain

Dual Modulus 2/3 Cell

Simulation didnot work well in cadence so I made it in simulink with the following block diagram
The Dual Modulus Prescaler subsystem block consists of a program counter, a swallow counter and a prescaler. When the block first receives an input signal, the pulse swallow function is activated. The prescaler divides the input signal frequency by (N+1), where N is defined by the Prescaler divider value (N) parameter. Both the program and swallow counters start counting. The swallow counter resets after counting to S pulses, or (N+1)S cycles, where S is defined by the Swallow counter value (S) parameter. Then, the pulse swallow function is deactivated, and the prescaler divides the input frequency by N. Since the program counter has already sensed S pulses, it requires (P-S) more pulses, or (P-S)N cycles to reach overflow, where P is defined by the Program counter value (P) parameter. The cycle repeats after both counters are reset. $${{f_{in}}\over{f_{out}}}=(N+1)S+N(P-S)=NP+S={2 \over 3}$$

Dual Modulus Prescaler
Dual Modulus Prescaler I/p Frequency 8MHz and o/p 2MHz

e)What is an all-digital PLL (ADPLL)?
Show the block diagram and the main building blocks

all-digital PLL has all digital elements, including the phase detector, loop filter and oscillator; they don't have the supply limitations of analog PLL ands and advanced all digital phase locked loops are fully synthesizable and customizable. each elements we were designing in analog pll we connect it to ADC and DAC inorder to control it digitally

All Digital PLL

Simulation Part:

The purpose of this part is to simulate the (linear) PLL circuit in Simulink environment. As discussed in the lecture, the PLL is widely employed in communication and electronic application as it has many functions. In this project, you are going to simulate the PLL as a circuit that performs synchronization between two signals that have different phase and frequency.

Fig(1):Phase Locked Loop
Fig(2):Simulink Model for PLL

Question 1,2,3

The type of PLL shown in fig(2) is linear model for PLL where, The Model in Figure 2 has three main components:

Question 4,5,6

Question 4

Linear PLL Simulation

Question 5

Linear PLL @\(\pi \over 3\) phase shift

Question 6

Linear PLL @\(\pi \over 3\) phase shift

Question 7&8&9

Question 7

Testing the circuit after making:

VCO & Reference Output
LPF Output

Question 8

Repeat Question 7 with the following setup change:

VCO & Reference Output
LPF Output

Question 9

Repeat Question 7 with the following setup change:

VCO & Reference Output
LPF Output
Ripples

$$\phi_e={{\omega_{out}-\omega_o}\over{K_{PD}*K_{VCO}}}$$ $$VCO_{out}=K_{PD}*\phi_e$$ $$\omega_{out}=\omega_o + K_{VCO}*VCO_{out}$$ the filter in 7,8,9 will settle at 0.1, -0.1 and 0.05 Volts respectively with some ripples $$Case7:\space \phi_e={{\pi \over 2}+\Delta \phi}$$ $$Case8:\space \phi_e={{\pi \over 2}-\Delta \phi}$$ $$Case9:\space \phi_e={{\pi \over 2}+{{\Delta \phi}\over 2}}$$ Increasing VCO gain decreases SS value of the filter as the filter will need less voltage to achieve required F lock

Question 10

Repeat Question 7 with the following setup change:

VCO & Reference Output
LPF Output

Question 11

Repeat Question 7 with the following setup change:

VCO & Reference Output
LPF Output

  • \(W_{in}=(10^6 + 10^5)*2\pi\)rad/s, the o/p of the filter will be oscillated without ripples at low time because of frequency of \(VCO_{out}\)
  • and this oscillates because of the increase in \(\Delta W_{in}\) which leads to increase in control voltage to increase \(\omega_out\)