亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? plldemo.m

?? 對(duì)一般的PLL及APLL,定點(diǎn)PLL進(jìn)行了MATLAB SIMULINK仿真
?? M
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
%% Demo: Phase Locked Loop
% This demo shows the executable specifications and design with simulation
% capabilities of Simulink. It highlights:
%  
% 1. Creating conceptual models of signal processing systems and running
% simulations
%
% 2. Adding finite state machines to the design
%
% 3. Creating models of physical components (e.g. circuitery)
%
% 4. Using discrete-time signal to create mixed-signal models
%
% 5. Converting digital models to fixed-point
%
% 6. Optional: (not implemented yet) generating C and/or HDL

%% What is a Phase-Locked Loop?
% A phase-locked loop (PLL) is a closed-loop feedback control system that
% generates and outputs a signal in relation to the frequency and phase of
% an input ("reference") signal. A phase-locked loop circuit responds to
% both the frequency and the phase of the input signals, automatically
% raising or lowering the frequency of a controlled oscillator until it is
% matched to the reference in both frequency and phase.
% 
% This type of mechanism is widely used in radio, telecommunications,
% computers and other electronic applications where it is desired to
% stabilize a generated signal or to detect signals in the presence of
% noise. Since an integrated circuit can hold a complete phase-locked loop
% building block, the technique is widely used in modern electronic
% devices, with signal frequencies from a fraction of a cycle per second up
% to many gigahertz.  (Source: wikipedia.org.)


%% A linear Phase Locked Loop in Simulink
% The first step of the demo shows how to model and simulate a linear PLL
% that can track a 1 MHz reference signal.
%
% A classic or linear PLL uses a mixer as a phase detector. This yields a
% DC component that is proportional (but not linear) with the phase
% difference and a component at a frequency that is twice the input
% frequency. A loop filter is used to get rid of the second component. The
% output of the loop filter is fed into a VCO that increases the freqeuncy
% if there is a positive phase difference and that decreases the frequency
% if there is a negative phase difference.
%
% Start with the basic components of a PLL: a Multiply block (Math
% Library), an Analog Filter Design block (Filter Design library in the
% Signal Processing Blockset) and a Voltage Controlled Oscillator
% (Communications Blockset, Components sublibrary in the Synchronization
% library).
%
% Double click on the blocks to show how to set the parameters for each
% block:
%
% The Analog Filter Design block;
%    Design method: butterworth,
%    Filter type: Lowpass,
%    Filter order: 5,
%    Passband edge frequency: 1e6*2*pi.
%
% The VCO block;
%    Quiescent frequency: 1e6,
%    Input sensitivity: 1e5,
%    Initial phase: 0.

open_system('linearpll'); set_param(bdroot,'SimulationCommand', 'update')
sim(bdroot);

%%
% In order to simulate the system, we need a test input and vizualiation.
% To achieve this, add a Sine wave block (Simulink Sources Library) and a
% Scope block (Simulink Sinks library) to the model. Set the parameters of
% the Sine wave to:
%
% Sine Wave block;
%    Frequency: 2*pi*1e6,
%    All other parameters: default.
%
% Add another axes to the Scope block, and connect the two inputs to the
% outputs of the Sine Wave block and the VCO block. Change the simulation
% time to 50 periods (50e-6). Connect a second Scope block to the output of
% the Butterworth filter. Label the block appropriately. Run the
% simulation!

figure('Color', 'White');
plot(log_linearpll.time*1e6, [log_linearpll.signals.values]);
 grid; axis([0 10 -1 1]);legend('Reference', 'PLL');
xlabel('Time (\mus)'); set(gcf,'Position', [360   502   560   267]);
ylabel('Voltage (V)');

%%
% To assess the quality of the PLL we are going to look at the spectrum of
% the generated signal. Add a Spectrum Scope block from the Signal
% Processing Sinks library and change it's parameters:
%
% Spectrum Scope parameters;
%    Buffer input: on,
%    Buffer size: 512,
%    Buffer overlap: 256,
%    Window type: Kaiser,
%    Beta: 5,
%    Specify FFT length: off,
%    Number of Spectral averages: 1.

pwelch(log_linearpll.signals(2).values,kaiser(1024,5),512,[],1e8)

%%
% To test how robust the PLL behaves to phase and frequency differences we
% can change the Frequency and Phase offset parameters of the Sine. For
% example, the PLL locks at frequencies up to about 1.05 MHz, but it fails
% to lock at 1.1 MHz. Also, for frequencies other then 1 MHz, the generated
% signal will have a phase offset with respect to the carrier (the reason
% being that the butterworth filter doesn't have a pole at zero (no pure
% integrator). Also note the ripple on the control signal, which is due to
% the second harmonics of the multiplication.

%% A charge-pump PLL with digital Phase-Frequency Detector in Simulink
% Better results can be achieved with a charge pump and a loop filter. The
% charge pump, "pumps" current into a 2nd order loop filter. The branch
% voltage of the loop filter is used as input to the VCO. A digital phase
% frequency detector (PFD) determines whether a positive or negative
% current is pumped into the filter. Phase lead corresponds to a negative
% frequency (output and thus VCO frequency decreases) whereas phase lag
% corresponds to a positive current.
% 
% The PFD is typically a finite state machine that reponds to
% zero-crossings of the input signals. If the reference signal has a
% positive edge first a switch is turned on that pumps a positive
% current into the loop filter, until a positive edge of the VCO signal is
% detected (phase lag).

%%
% We'll start by creating a behavioral model of the PLL. To model the PFD
% we use a Stateflow machine. Create the chart according to the diagram
% below:
%%
% <<pfd.jpg>>
%
%%
% Update the diagram and create input events (Rising Edge) for Ref and Var
% and an output variable for s. To be able to feed the reference signal and
% VCO signal to the Chart, use a Mux block (Simulink routing library)
%
% Implement the charge pump with a Gain block. Set the gain parameter to
% 260e-6 (Ampere). A behavioral model for the loop filter can be created
% with a simple Transfer Fcn block. To set the parameters of this block, we
% need to find the transfer function for the loop filter. Applying the
% Laplace transform to the differential equations yields:
%
%%
% $$ G(s) = \frac{sR_1C_1 + 1}{s^2C_1C_2R_1 + s(C_1 + C_2)} $$
%
% Set the Numerator coefficient of the Transfer Fcn block to [R1*C1, 1], and
% set the Denominator coefficient to [C1*C2*R1, (C1+C2), 0]. Next, adjust
% the loop gain by changing the Input Sensitivity of the VCO to 3e5. Change
% the Initial phase to -pi/2.
%
% Assign values to variables |C1|, |C2| and |R1| in the MATLAB workspace:
%
%  C2 = 17e-12;
%  C1 = 82e-12;
%  R1 = 23e3;
%
% Run the simulation with the Stateflow Chart open to see the animation.
%
% Experiment with the Phase offset and Frequency of the Sine Wave block to
% test the PLL.

open_system('cppll'); set_param(bdroot,'SimulationCommand', 'update')

%% An implementation for the PFD, Charge Pump and Loop filter
% In the previous model we used behaviorable models for the PFD (state
% chart), charge pump (Gain) and loop filter (transfer function). Simulink
% also has the capabilities to simulate an physical implementation for
% these three components.

%%
% Open the model |powerpll| to see an example.

open_system('powerpll'); set_param(bdroot,'SimulationCommand', 'update')

%%
% In this example the phase frequency detector is implemented by two
% flipflops and a NAND gate. The charge pump and loop filter are
% implemented using blocks from the SimPowerSystem blockset. This extension
% to Simulink makes it possible to draw electrical circuits directly in
% Simulink. This eliminates the neccesity to derive differential equations
% and transfer functions and facilitates experimenting with different
% network topologies.
%

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品最新网址| 日韩精品资源二区在线| 91影视在线播放| 成人黄色免费短视频| 国产伦精品一区二区三区视频青涩| 丝袜脚交一区二区| 日本成人在线不卡视频| 婷婷成人激情在线网| 五月婷婷激情综合| 蜜臀久久99精品久久久久久9| 美女mm1313爽爽久久久蜜臀| 奇米888四色在线精品| 五月开心婷婷久久| 男男视频亚洲欧美| 国产露脸91国语对白| 国产sm精品调教视频网站| 成人午夜精品在线| 色先锋久久av资源部| 欧洲激情一区二区| 日韩一区二区免费在线观看| 精品成人一区二区| 日本一区二区视频在线观看| 中文字幕亚洲视频| 一区二区三区加勒比av| 日日夜夜免费精品| 国产一区二区三区av电影| 丁香六月综合激情| 日韩一级视频免费观看在线| 丁香婷婷综合激情五月色| 国产麻豆日韩欧美久久| 国产成人亚洲精品狼色在线| 福利一区二区在线观看| 国产精品资源网站| youjizz国产精品| 色8久久精品久久久久久蜜| 97超碰欧美中文字幕| 色综合中文综合网| 欧美日韩你懂的| 91免费视频观看| 欧美中文字幕不卡| 精品美女在线播放| 制服.丝袜.亚洲.中文.综合| 成人动漫中文字幕| 欧美视频一二三区| 免播放器亚洲一区| 国产毛片精品视频| 中文字幕在线观看不卡视频| 日韩午夜av电影| 欧美高清在线视频| 日韩精品一区第一页| 国产999精品久久| 精品视频在线视频| 久久久99免费| 亚洲v日本v欧美v久久精品| 国产成人精品一区二区三区网站观看| 一区二区三区免费看视频| 亚洲视频网在线直播| 免费视频一区二区| 不卡av在线网| 欧美精品一区二区高清在线观看| 一区二区三区日韩欧美| 毛片一区二区三区| 色94色欧美sute亚洲线路一ni| 欧美性猛交xxxxxxxx| 26uuu亚洲婷婷狠狠天堂| 亚洲免费伊人电影| 欧美精品乱码久久久久久| 黄一区二区三区| 日韩毛片精品高清免费| 精品在线你懂的| 色噜噜久久综合| 国产免费久久精品| 久久91精品国产91久久小草| 欧美色中文字幕| 国产精品高潮呻吟久久| 国产真实乱子伦精品视频| 欧美日韩免费高清一区色橹橹| 国产精品天干天干在线综合| 蜜臀久久99精品久久久久久9| 欧美性受xxxx| 综合久久久久久| 国产91丝袜在线观看| 欧美精品一区二区久久久| 青青草原综合久久大伊人精品优势 | 日韩色视频在线观看| 亚洲一区在线免费观看| 成人av在线观| 欧美—级在线免费片| 国产一区美女在线| 日韩视频免费观看高清完整版| 亚洲精品高清视频在线观看| 成人h精品动漫一区二区三区| 久久久精品免费观看| 国产一区在线不卡| 精品免费一区二区三区| 蜜桃一区二区三区在线| 69久久夜色精品国产69蝌蚪网| 亚洲国产成人高清精品| 亚洲成人av在线电影| 99国产麻豆精品| 亚洲国产精品v| 成人午夜激情影院| 欧美韩日一区二区三区四区| 精品午夜一区二区三区在线观看| 日韩一区二区高清| 精品写真视频在线观看| 久久老女人爱爱| 国产精品77777| 国产日韩欧美高清在线| 国产成人免费视频| 国产精品欧美精品| 99国产一区二区三精品乱码| 一区二区三区在线观看国产| 欧美在线不卡一区| 午夜免费久久看| 日韩一级黄色片| 一区二区高清视频在线观看| 精品久久久久久久久久久久包黑料| 国产乱码精品一区二区三 | 日韩欧美亚洲国产精品字幕久久久| 日韩精品一级中文字幕精品视频免费观看 | 91精品国产aⅴ一区二区| 久久 天天综合| 亚洲国产精品久久人人爱| 26uuu久久天堂性欧美| 欧美日本国产一区| 成人高清av在线| 国产综合久久久久久久久久久久| 午夜视频一区二区| 日韩av一区二区三区四区| 国产露脸91国语对白| av午夜一区麻豆| 99久久国产综合精品女不卡| 日韩精品电影在线| 精品奇米国产一区二区三区| 日韩一区二区精品在线观看| 亚洲精品成a人| 成人av在线网| 国产自产视频一区二区三区| 欧美区在线观看| 一区二区三区免费观看| 欧美精品v日韩精品v韩国精品v| 免费在线观看精品| 国产精品女同一区二区三区| 在线一区二区三区做爰视频网站| 日韩福利视频网| 欧美国产亚洲另类动漫| 欧美视频完全免费看| 国产精品一区在线观看乱码| 中国色在线观看另类| 国产日韩综合av| 亚洲色大成网站www久久九九| 国产精品九色蝌蚪自拍| 亚洲欧美日韩一区二区| 亚洲一区欧美一区| 久久精品国产精品青草| 久久精品国产在热久久| 美女视频网站黄色亚洲| 国产一二精品视频| 成人av在线一区二区三区| 91在线视频观看| 欧美老人xxxx18| 亚洲日本va在线观看| 欧美日韩美少妇| 国产成人午夜视频| 亚洲成人激情社区| 欧美本精品男人aⅴ天堂| 色综合视频在线观看| 国产呦精品一区二区三区网站| 又紧又大又爽精品一区二区| 2021国产精品久久精品| 欧美色综合网站| 99精品一区二区| 国产九色精品成人porny| 日韩高清不卡一区| 亚洲一区二区三区自拍| 国产精品丝袜一区| 久久久综合精品| 欧美一区二区三区视频在线| 色婷婷一区二区| 成人自拍视频在线| 国产一区二区伦理片| 日韩福利视频网| 亚洲成人资源在线| 一二三区精品福利视频| 国产精品久久久久久久久免费相片| 精品国产制服丝袜高跟| 欧美一区二区在线免费观看| 欧美色图免费看| 99久久综合狠狠综合久久| 国产成人av电影在线观看| 韩国欧美一区二区| 精品一区二区三区日韩| 美国毛片一区二区| 日韩av二区在线播放| 亚洲成a人片在线不卡一二三区 | 精品国产一区二区亚洲人成毛片| 欧美日韩国产123区| 欧美视频一区二区在线观看| 一本一本大道香蕉久在线精品|