View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Phase Locked Loop tutorial

4.1 | 12 ratings Rate this file 129 Downloads (last 30 days) File Size: 390 KB File ID: #14868 Version:
image thumbnail

Phase Locked Loop tutorial



04 May 2007 (Updated )

A tutorial showing how Phase-Locked Loops, both analog and digital can be efficiently modeling in Si

| Watch this File

File Information

This tutorial starts with a simple conceptual model of an analog Phase-Locked Loop (PLL). Through elaboration it ends at a model of an all digital and fixed-point phase-locked loop. The final model can serve a starting point for code generation (both ANSI C or synthesizable HDL).
The step-wise elaboration of the model illustrates how Simulink® forms the basis a model-based design where continuous verification of the model reduces errors.

Required Products Communications Blockset
Communications System Toolbox
Control System Toolbox
Fixed-Point Designer
DSP System Toolbox
Signal Processing Toolbox
Simscape Power Systems
Simulink Fixed Point
MATLAB release MATLAB 7.4 (R2007a)
Other requirements Not all the products are required for all the models (see the published m-file for more details)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (16)
09 Mar 2016 adithya perumal

17 Apr 2014 bo

bo (view profile)

i am looking forwad

26 Dec 2013 Ravi

Ravi (view profile)

I need how to generate verilog/VHDL code for DPLL_fxdpt.

I am facing few errors with state flow concept.

Please help me... kindly...

17 Nov 2012 truepeak

22 Nov 2011 Mike Woodward

If you're interested in this submission, you might also like the new, free mixed-signal library available from here:

Comment only
17 Nov 2011 Yue Wu

Yue Wu (view profile)

??? Error using ==> construct_error at 109
DOS commands may not be executed when the current
directory is a UNC pathname

Please change the current directory to a local directory
or use a network drive mapped to the current directory.

Warning: Unable to load block diagram 'powerlib'
> In plldemo at 181
??? Error using ==> plldemo at 181
Failed to load library 'powerlib' referenced by
'powerpll/Charge Pump Loop Filter/+10V'.

Caused by:
Error using ==> plldemo at 181
Unable to open file for reading: "powerlib.mdl".

25 Nov 2010 Dhaval Shah

01 Oct 2010 Noura Ben Ameur

i have matlab 7.0 release and the file "dpll.m" does'nt work due to "NCO" block. How can i do?

Comment only
23 Nov 2009 M. Cirillo

You can plot the two curves on one axis using a Mux (in Signal Routing). Run the Mux output to the scope and you'll be able to see the offset more clearly.

Comment only
08 May 2009 Niceseb cheung

cp_pll has run time error
"Error reported by S-function 'scominhshape' in cppll/Continous time VCO/Inherit Shape1"
Input and output frame status or dimension are invalid.


Also how to plot the 2 input scope on top of each other so I can see the phase offset?

Comment only
03 Jun 2008 xiaojian mao


30 Mar 2008 Evgeny Yankevich

I am looking for fully digital freq traking loop

20 Jan 2008 Alex RB

20 Nov 2007 Master Pic

01 Nov 2007 George Kipens

01 Sep 2016

Updated license

Contact us