Integrated Circuits
使用放大器、振荡器、计时器和计数器对常用集成电路进行建模。通过组合布尔函数产生单个逻辑输出。
精选示例
Synchronous J-K Flip-Flop
Model a J-K flip-flop from Simscape™ Electrical™ logic components. With the two switches in their default positions, both inputs to the flip-flop are set high so its output state toggles each time the clock signal goes low. Initial conditions are passed to the relevant NAND gates via the initialization commands of the block mask.
Digital Potentiometer Parameterized from Datasheet
How to model a digital potentiometer such as is used to control audio amplifiers from a digital circuit or microprocessor-controlled system. The model also shows how you can create your own custom blocks in order to extend the Simscape™ Electrical™ library.
Model Operational Amplifier with Noise
Incorporate noise into an electrical simulation. The circuit models an amplifier with a high-frequency roll off frequency of 10MHz. The Band-Limited Op-Amp block adds the noise. The Voltage Source block, Vn, specifies an equivalent voltage noise density of 20 nV/Hz^0.5. You can also add the thermal noise from the resistors R1
and R2
by setting the Noise mode parameter of the two Resistor blocks to Enabled
. However, running this model with different combinations of noise sources shows that the main source of noise is the equivalent noise voltage.
Phase-Locked Loop
How to model a phase-locked loop. The charge pump and filter are modeled using discrete analog components whereas the oscillator is represented as behavioral component using the Simscape™ Electrical™ Voltage-Controlled Oscillator block. The D-type flip-flops in the phase detector are represented in a simplified form using Simulink® blocks to define the behavior, and electrical components are used just at the interface. Non-zero initial conditions are applied to C1 and C2 in order to start the VCO out of phase and test the tracking ability.
使用 PWM 电压源和 H 桥驱动器控制 DC 电机
此示例展示了如何使用 Controlled PWM Voltage 和 H-Bridge 模块来控制 DC 电机。DC Motor 模块在 2500 rpm 转速下提供 10 W 的机械功率,并且在 DC 电源电压为 12 V 时以 4000 rpm 的空载转速运行。因此,如果将 PWM 参考电压设置为其最大值 5 V,电机将以 4000 rpm 的转速运行。如果将 PWM 参考电压设置为 2.5 V,电机将以约 2000 rpm 的转速运行。为了实现快速仿真,此示例将 Controlled PWM Voltage 模块和 H-Bridge 模块的仿真模式参数设置为 Averaged
。要验证平均行为,请在 Controlled PWM Voltage 模块和 H-Bridge 模块中将 Simulation mode
参数都设置为 PWM
。
Low-Pass Filter Using Operational Transconductance Amplifiers
Model a second-order active low-pass filter. The filter is characterized by the transfer function H(s) = 1 / ( (s/w1)^2 + (1/Q)*(s/w1) + 1 ) where w1 = 2*pi*f1, f1 is the cut-off frequency and Q is the quality factor. Double-click on the Set Design Parameters block to set parameters f1 and Q. The block mask calls a function which sets the parameter values in the model workspace.
Clocked Set-Dominant SR-Latch
Model a Set-dominant SR-Latch from Simscape™ Electrical™ logic components. Initial conditions are passed to the relevant AND gates via the initialization commands of the switches.
Clocked Reset-Dominant SR-Latch
Model a Reset-dominant SR-Latch from Simscape™ Electrical™ logic components. Initial conditions are passed to the relevant AND gates via the initialization commands of the switches.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)