资源简介
锁相环.rar
代码片段和文件信息
clc
close all
clear all
Fs = 50e6;
Fi = 500e3;
Fd = 150;
DoppRate = 2000;
T = 1/Fs;
iniPhase = pi/3;
FLL.freq = 0;
PLL.phase = 0;
FLL_LOCK = 1;
FLL_NUMBER = 20;
fll_flag = 0;
fll_flag_cnt = 0;
CORRE_T = 0.001;
CorrLen = CORRE_T*Fs;
PLL_LOCK = 0.2;
PLL_NUMBER = 20;
pll_flag_cnt = 0;
pll_flag = 0;
pll_unlock = 0;
PLL_UNLOCK = 1;
PLL_UNLOCK_NUM = 20;
pll_unlock_cnt = 0;
pll_first_lock = 0;
%---------------------------环路滤波器参数----------------------------------%
FLL.Bn = 6;
PLL.Bn = 15;
FLL.natureFreq = FLL.Bn/0.53;
fll_para_a = FLL.natureFreq^2;
fll_para_b = FLL.natureFreq * 1.414;
PLL.natureFreq = PLL.Bn /0.7845;
pll_para_a = PLL.natureFreq^3;
pll_para_b = PLL.natureFreq^2 * 1.1;
pll_para_c = PLL.natureFreq^1 * 2.4;
t_integral = CORRE_T*2;
old_accelerate_sum = 0.0;
old_velocity_sum = 0.0;
old_sum_temp = 0.0;
old_temp = 0.0;
%--------------------------------------------------------------------------%
simCnt = 1;
SimNum = 6000;
FreqErrBuf = zeros(1SimNum);
PhaseErrBuf = zeros(1SimNum);
RxFc = Fi;
TwoPi = 2*pi;
TxIniPhase = pi/3;
RxIniPhase = 0/4;
FreqErrConst = 1/(2 * pi)/ CORRE_T;
t = [0:CorrLen*2-1]*T;
Cnr = 45;
Snr = Cnr - 10*log10(Fs);
accelerate_sum = 0;
velocity_sum = 0;
T_integ = t_integral;
% cos(wt+b) = cos(wt)*cos(b) - sin(wt)*sin(b);
% sin(wt+b) = sin(wt)*cos(b) + cos(wt)*sin(b);
while(simCnt<=SimNum)
%-------------------------------发送端---------------------------------%
TxFc = Fi + Fd + 0.5*DoppRate*t;
TxPhase = TwoPi*(TxFc.*t) + TxIniPhase;
TxData = complex(cos(TxPhase)sin(TxPhase));
%-------------------------------高斯白噪声-----------------------------%
% TxData = awgn(TxDataSnr‘measured‘);
%-------------------------------本地载波-------------------------------%
RxFc = Fi + FLL.freq;
RxPhase = TwoPi*(RxFc.*t) + PLL.phase + RxIniPhase;
CarrNco = complex(cos(RxPhase)-sin(RxPhase));
%------------------------------下变频----------------------------------%
baseband = TxData.*CarrNco;
%------------------------------积分
CorrRes(1) = sum(baseband(1:CorrLen));
CorrRes(2) = sum(baseband(CorrLen+1:2*CorrLen));
I = real(CorrRes);
Q = imag(CorrRes);
%------------------------------时间计算累加----------------------------%
t = t + t_integral;
%--------------------------------FLL----------------------------------%
Case1 = (0 == fll_flag);
Case2 = (1 == pll_unlock);
Case3 = (1 == fll_flag) && (0 == pll_flag) && (0 ==pll_unlock) && (0 == pll_first_lock);
if(Case1 || Case2 || Case3)
%/******* the discriminator of fll *******/
dot = I(2)*I(1) + Q(2)*Q(1);
cross = I(1)*Q(2) - I(2)*Q(1);
% CarrFreqErr = (atan2(crossdot))*FreqErrConst;%四象限反正切,对数据跳变敏感 ,牵引线性频率范围: [-0.50/T~0.50/T]
CarrFreqErr = (atan(cross/dot))*FreqErrConst;%二象限
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
......R 7054 2006-06-01 19:37 锁相环\AGC\AGC.m
....... 2162 2016-09-29 10:12 锁相环\AGC.rar
....... 3175 2016-11-03 11:20 锁相环\costas--m\costas - 副本.m
....... 1421 2009-10-14 10:57 锁相环\costas--m\costas.m
....... 1419 2011-04-28 17:28 锁相环\costas--m\costas.txt
....... 3033 2016-11-04 09:54 锁相环\costas--m\costas1.m
....... 1918 2016-11-03 09:55 锁相环\costas--m.rar
....... 6965 2016-09-06 14:00 锁相环\FLL_PLL_Sim.m
....... 1927 2016-12-15 17:59 锁相环\FLL_PLL_Sim.rar
....... 1414303 2016-12-13 22:12 锁相环\FPLL载波跟踪环仿真及高动态GPS信号测试_刘晓莉.pdf
....... 4555729 2016-11-03 16:10 锁相环\gps-matlab.zip
....... 740571 2016-12-13 22:47 锁相环\GPS信号差分相干累积捕获技术_胡辉.pdf
....... 629306 2016-12-13 22:31 锁相环\GPS信号结构及其测距码研究_苗正戈.pdf
....... 1008048 2016-11-03 09:45 锁相环\Simulation-and-FPGA-Implementation-of-DigitalDBPSK-Direct-Spread-Spectrum-System-Receiver.rar
....... 3809 2011-08-30 15:46 锁相环\Tracking\Tracking\track_2nd.m
....... 4303 2011-03-27 14:34 锁相环\Tracking\Tracking\track_3rd.m
....... 3153 2016-11-03 17:40 锁相环\Tracking.rar
....... 1078518 2016-11-04 10:46 锁相环\基于COSTAS环路matlab仿真文档.pdf
....... 562051 2016-12-13 22:13 锁相环\基于FLL_PLL的载波跟踪环路设计_邓晓东.pdf
....... 162035 2016-12-13 22:16 锁相环\基于FLL_PLL相结合的载波跟踪在导航接收机中的应用_沈锋.pdf
....... 2025839 2016-12-14 16:31 锁相环\基于FPGA的低杂散DDS的技术研究_黄仙兵.caj
....... 857440 2016-12-13 22:19 锁相环\应用PID思想的高动态GPS载波跟踪环路设计_高帅和.pdf
....... 1031168 2005-05-12 11:53 锁相环\锁相技术_张厥盛.rar\锁相技术 张厥盛 529页 7.5M PPT版\第1章 锁相环路的基本工作原理 57页 1.0M.ppt
....... 1665536 2005-05-12 11:53 锁相环\锁相技术_张厥盛.rar\锁相技术 张厥盛 529页 7.5M PPT版\第2章 环路跟踪性能 109页 1.6M.ppt
....... 550912 2005-05-12 11:53 锁相环\锁相技术_张厥盛.rar\锁相技术 张厥盛 529页 7.5M PPT版\第3章 环路噪声性能 54页 0.5M.ppt
....... 703488 2005-05-12 11:53 锁相环\锁相技术_张厥盛.rar\锁相技术 张厥盛 529页 7.5M PPT版\第4章 环路捕获性能 47页 0.6M.ppt
....... 1838080 2005-05-12 11:53 锁相环\锁相技术_张厥盛.rar\锁相技术 张厥盛 529页 7.5M PPT版\第5章 集成锁相环路 106页 1.8M.ppt
....... 2129408 2005-05-12 11:54 锁相环\锁相技术_张厥盛.rar\锁相技术 张厥盛 529页 7.5M PPT版\第6章 锁相环路的应用 156页 2.0M.ppt
....... 6214335 2016-11-03 17:02 锁相环\锁相技术_张厥盛.rar.rar
....... 439645 2016-11-03 17:36 锁相环\锁频环辅助下锁相环的跟踪误差分析_王俊.pdf
............此处省略10个文件信息
相关资源
- 24275753CAD快速看图安装包破解版.zip
- Software_Engineering_A_Practitioner’s_Approa
- QQ群举报软件批量打群.rar
- MovieRecommend.zip
- 校级运动会报名网站的设计与实现.
- 电子资源:大话数据分析.rar
- 统计学习方法-带书签目录高清扫描版
- UI-Path开发者认证工具包2.0.zip
- 2020谷粒商城分布式基础篇课件资料
- [Christopher_K._W._Tam]ComputationalAeroacoust
- 鸟哥的Linux私房菜-基础学习篇(第四
- weixin_43183490_10660228.zip
- 万能门店7.4.17.zip
- ssh框架开发的个人博客系统前后台.
- 2018年工业互联网案例汇编-典型安全解
- 简单粗暴学蓝牙4.0CC2541篇_201802240551
- DAS.zip
- [Jean_Meeus]_Astronomical_algorithms(2nd).
- 12.3.1.rar
- 百度云破解版.zip
- 语言信息处理.rar
- DBRforBBIN客户端.zip
- boke.rar
- 高频交易.rar
- synergy-1.8.8-windowsx64-x86破解合辑.zip
- ZYERP.rar
- Bartender3forMac(菜单栏应用图标管理)
- 超标量处理器设计基础.rar
- 诚信流水账制作系统(银行流水账制
- IK-MT7628V1-M20_sysupgrade_2.1.3_2017-11-01_14
评论
共有 条评论