Integrated Circuits
Model common integrated circuits using amplifiers, oscillators, timers, and counters. Produce a single logic output by combining Boolean functions.
Categories
- General Circuits
Commonly used integrated circuits, such as operational amplifiers, comparators, timers
- Logic
Logic gates for integrated circuits, such as CMOS AND, CMOS OR, and CMOS NOT
Featured Examples
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.
Control DC Motor with PWM Voltage Source and H-Bridge Driver
Control a DC motor by using the Controlled PWM Voltage and H-Bridge blocks. The DC Motor block delivers a mechanical power of 10 W at 2500 rpm and turns at a no-load speed of 4000 rpm when the DC supply voltage is 12 V. Consequently, if you set the PWM reference voltage to its maximum value of 5 V, the motor runs at 4000 rpm. If you set the PWM reference voltage to 2.5 V, the motor runs at approximately 2000 rpm. To achieve fast simulation, this example sets the Simulation mode parameter of the Controlled PWM Voltage and H-Bridge blocks to Averaged
. To validate the averaged behavior, set the Simulation mode
parameter to PWM
in both the Controlled PWM Voltage and H-Bridge blocks.
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)