Phase-locked loop
Phase Locked Loop (PLL)
This simulates a PLL demodulating FM
The VCO is sinusoidal but can be made a squarewave if needed
Suggested parameters: Sample at 10000Hz,Carrier freq 1000Hz = VCO free running freq
Make baseband freq 8Hz and frequency deviation 100Hz.
Make run time 0.2 second
When you run this you will see the demodulated sinewave (8Hz)
It will have 2fcarrier (2fc) superimposed on top of it (as in a real PLL)
The VCO already has an integrator in the loop (the VCO). We add a second and phase-lead compensation for stability.
This gives a type II PLL.
Cite As
Tom Moir (2024). Phase-locked loop (https://www.mathworks.com/matlabcentral/fileexchange/73763-phase-locked-loop), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |