载波同步DPSK(相干调制)

PSK调制解调—DPSK 文章目录1. DPSK信号的调制原理2. Costas环解调DPSK信号3. DPSK调制解调的MATLAB仿真3.1 源码3.2 仿真结果 数字相位调制又叫相位键控(Phase Shift Keying,PSK),是一种十分重要的基本数字调制技术,是一种用载波相位表示输入信号的调制技术、或者说PSK是根据数字基带信号的电平使载波相位在不同的数值之间切换的一种相位调制方法。 1. DPSK信号的调制原理 DPSK(Differential Phase Shift Keying)是为了克服PSK系统相位模糊问 阅读详情

载波同步又称载波恢复,即在接收端产生一个和接收信号的载波同频同相的本地震荡信号,供解调器做干解调使用。采用相干解调法,在接收端中就需要有载波同步电路,提取相干解调法所需要的载波信号。相干载波必须与接收信号同频同相。(叭叭叭叭叭叭,不讲下去了,概念讲了也没啥用,推荐的书在下面,看来至少明白一点,这里不讲了)

具体原理可以参考杜勇老师的《数字调制技术的matlab和fpga实现》一书。深入了解锁相环的工作原理,对鉴相器、环路滤波器、NCO有一定了解(后面单发总结)。

//============================载波同步============================//

一、MATLAB部分

1.产生一个频偏fc=1e-3,相偏ph=1.3的载波信号。

2.产生一个随机信号叠加载波,sig。

3.鉴相:将信号sig_adj(sig消除误差相位后的信号)实部与虚部相乘,输出误差。

4.滤波(这里采用二阶环):对误差相位经行滤波,得到err_a、err_b ;

5.消相差:sig*exp(j*(ph)); ph=err_a+err_b+ph;

clear all;
len=4096;
fc=1e-3 ;
din=randi([0 1],1,len);
data=1-2*din;
fs=32*10^6;
t=0:len-1;
ph=1.3;
sig=data.*exp(j*(2*pi*fc*t+ph));
ph=zeros(1,len);
freq=zeros(1,len);
sig_adj=sig;
err_a=zeros(1,len);
err_b=zeros(1,len);
alpha=1e-2;
belta=1e-2;
for ii=1:len-1
    sig_adj(ii)=sig(ii)*exp(-j*ph(ii));
    err_a(ii)=alpha*real(sig_adj(ii))*imag(sig_adj(ii));
    err_b(ii+1)=err_b(ii)+belta*err_a(ii);
    ph(ii+1)=ph(ii)+err_a(ii)+err_b(ii);
end;
figure(1)
subplot(2,1,1);
stem(real(sig_adj));
subplot(2,1,2);
stem(imag(sig_adj));
amp=1024 ;
i=round(real(sig)*amp)+1024;
q=round(imag(sig)*amp)+1024;
i(i>2047)=2047;
q(q>2047)=2047;
fid=fopen('D:\FPGA_DEMO_TEST\Carrier_s\datai.txt','w');
for N=1:len
   fprintf(fid,'%s\n',dec2bin(i(N),11)) ;
end
fc
水声通信中适用的调制技术及分析(FSK、PSK、DPSK) 水声通信中适用的调制技术及分析(FSK、PSK、DPSK)摘要:1 引言2 频移键控调制FSK2.1 频移键控(2FSK)信号的产生2.1.1模拟调频电路方法产生相位连续的2FSK信号2.1.2数字键控的方法产生相位不连续的2FSK信号2.2 频移键控(2FSK)解调2.2.1非相干解调:2.2.2相干解调3 相移键控调制PSK3.1 相移键控(2PSK)信号的产生3.1.1相乘法3.1.2相位选择法3.2 相移键控(2PSK)解调:相干解调4 差分相移键控调制DPSK4.1 二进制差分相移键控(2DPSK 阅读详情

相关推荐

F280049C实现Simulink调制,以及多个PWM实例之间的同步

最近作实验碰到了载波不同步的问题,以前也有碰到过这个问题,现在终于解决了,做个记录。为了以示区分,实例指ePWMx,x=1,2,3,4,5,6,7,8;通道指ePWMxA/B,x=1,2,3,4,5,6,7,8。

xht2403267701的博客 2852

MATLAB实战:2ASK/2FSK/2PSK/2DPSK相干解调全流程仿真与波形对比分析

本文详细介绍了MATLAB在2ASK、2FSK、2PSK和2DPSK相干解调全流程仿真中的应用,通过代码示例和波形对比分析,帮助读者掌握数字调制技术的核心原理与实现技巧。文章重点解析了相干解调的关键步骤和优化方案,并提供了不同调制方式的性能对比与工程选择建议。

weixin_29064103的博客 402

MATLAB实战:2ASK/2FSK/2PSK/2DPSK相干解调仿真与波形对比分析

本文详细介绍了MATLAB中2ASK、2FSK、2PSK和2DPSK四种二进制数字调制技术的相干解调仿真实现与波形对比分析。通过MATLAB代码示例展示了各种调制方式的信号生成、解调过程和误码率性能比较,为数字通信系统的设计与优化提供了实用参考。重点分析了相干解调在不同调制方式中的应用特点和技术要点。

weixin_29323273的博客 314

基于Matlab的2DPSK调制解调系统仿真:从原理到工程实践

数字调制解调是无线通信与信号处理领域的核心技术,它通过改变载波特性来传输信息。其基本原理是将数字比特序列映射为模拟信号,在接收端通过相干或非相干方式恢复原始信息,以实现高效可靠的数据传输。这项技术的核心价值在于平衡频谱效率、功率效率和抗噪声能力,广泛应用于卫星通信、无线局域网和数字广播等场景。其中,2DPSK作为一种经典的差分相移键控技术,通过利用前后码元的相对相位变化传递信息,巧妙地解决了绝对相位模糊问题,显著提升了系统在非理想信道下的鲁棒性。本文聚焦于使用Matlab进行2DPSK系统的建模仿真,详细阐

weixin_33391446的博客 308

【QT】基于QSerialPort的跨平台串口通信实战指南

本文是一份基于Qt QSerialPort模块的跨平台串口通信实战指南。详细介绍了从硬件基础、QSerialPort核心类使用、参数配置、设备自动发现到数据异步读写和错误处理的完整流程,并通过构建一个功能齐全的串口调试助手实例,帮助开发者快速掌握在Windows、Linux和macOS系统下进行高效、稳定的串口应用开发。

a1b2c3d的博客 986

【OpenCV】手眼标定实战:从原理到calibrateHandEye的完整实现

本文详细解析了机器人视觉中的手眼标定原理与实战,重点介绍了如何使用OpenCV的calibrateHandEye函数实现从数据采集到结果验证的完整流程。文章深入剖析了AX=XB核心方程,区分了眼在手上与眼在手外两种配置,并提供了详细的代码示例与避坑指南,帮助开发者精准建立相机与机械臂末端的坐标转换关系,是机器人精准抓取的关键技术。

weixin_29046611的博客 514

pycharm一直选择不了conda正确路径弹框报错:latinit property envs_dirs has not been initialized...如何解决?

🏆本文收录于 《全栈 Bug 调优(实战版)》 专栏。专栏聚焦真实项目中的各类疑难 Bug,从成因剖析 → 排查路径 → 解决方案 → 预防优化全链路拆解,形成一套可复用、可沉淀的实战知识体系。无论你是初入职场的开发者,还是负责复杂项目的资深工程师,都可以在这里构建一套属于自己的「问题诊断与性能调优」方法论,助你稳步进阶、放大技术价值 。

**My Coding Family** 2941

基于STM32、HAL库的TCA9555PWR I/O扩展器驱动程序设计

define TCA9555_ADDR_BASE 0x20 // 基础地址 (A0=A1=A2=0)* @param direction: 方向 (0=输出, 1=输入)* @param direction: 方向 (0=输出, 1=输入)* @param polarity: 极性 (0=正常, 1=反转)* @param polarity: 极性 (0=正常, 1=反转)

corlin6688的博客 531

逻辑判断1-逻辑基础知识

判断推理学习笔记

小y的学习笔记 2141

prplOS介绍

介绍prplOS是什么,特性、框架、编译等。

四儿家的小祖宗的博客 2146

指纹对抗指南:如何绕过Cloudflare与Akamai的5s盾与浏览器指纹检测

现在的CDN反爬技术虽然越来越强,但是道高一尺魔高一丈,只要掌握了指纹伪造、流量伪装、行为模拟这些核心技术,就可以绕过绝大多数的防护措施。对抗过程中要注意效率和成本的平衡,小规模爬取用Playwright+stealth最方便,大规模爬取用curl_cffi+代理池性价比最高,遇到验证码用打码平台或者自动识别服务,不需要死磕破解。本文介绍的方案已经在实战中验证过,可以绕过95%以上的Cloudflare/Akamai防护,成功率非常高。

专注于Python爬虫开发,分享爬虫技巧、项目实战与反爬经验,使用Scrapy、BeautifulSoup等工具,解决数据抓取难题。 305

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

下一篇: DDS发生器的FPGA设计
DoNo705658
博客等级 码龄7年 7粉丝 2原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址