circuit simulation

Creating Subcircuits from Spice Netlists, Part 1: Simple 5-terminal Operational Amplifiers now with English voice over

In TINA you can create your own components from any Spice subcircuit that you have made or downloaded from the Internet.

Watch our tutorial video  to see how to create an UA741 Operational Amplifier model using a     Spice Subcircuit in TINA:

 creatingsubcircuitspart1-voiceover-blog

Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Mixed Circuit Simulation in TINA and TINACloud (Spice – HDL – MCU co-simulation)

TINA  includes a very powerful mixed mode circuit simulator engine. It is based on the XSPICE mixed mode algorithm, extended with MCU and HDL (VHDL, Verilog, Verilog A & AMS) components. In your circuits you may freely mix any analog or digital components of TINA, including microcontrollers (MCUs) and macros with Spice or HDL content. You can modify these components on the fly along with the code in the MCUs. TINA will analyze the analog parts in analog, the digital parts in digital, and will automatically create the interfaces among the components. This ensures synchronization and fast convergence.

Let’s explore some of the uses of this mode through a few examples.

1. Waveform generation with VHDL and Spice subcircuits

The following circuit generates an analog sine or sawtooth signal depending on the status of the left SW-MODE switch:   Mixed Mode Simulation in TINA and TINACloud-blog5

 Click the picture to run this circuit online with TINACloud

The Digital Wave box on the left of the circuit includes VHDL code with a lookup table (Sine_LUT ) for the sine wave and a counter for the sawtooth signal. The essential part of the VHDL code is:  

   process(Reset, Clk) 
   begin 
       if (Reset = '1') then 
           Wave <= (others => '0'); 
           LUT_index <= 0; 
       elsif rising_edge(Clk) then 
           if (Enable = '0') then 
               Wave <= (others => '0'); 
           elsif (Sel = '0') then 
               Wave <= Sine_LUT(LUT_index); 
           else 
               Wave <= conv_std_logic_vector(LUT_index,5); 
           end if;
           if (LUT_index = LUT_index_max) then 
               LUT_index <= 0; 
           else 
               LUT_index <= LUT_index + 1; 
           end if;
       end if; 
   end process; 
   d0 <= Wave(0); d1 <= Wave(1); d2 <= Wave(2); d3 <= Wave(3); d4 <= Wave(4);

 The digital output of the counter is converted into an analog signal in the 5 bit DA converter of TINA shown in the middle of the circuit. The DAC sine wave output needs to be cleaned up with a low pass filter. We will use a Spice opamp model of the TL081 in a Sallen and Key low pass filter configuration. Press the Enter Macro button on the property dialog and TINA will open the macro. You can review and, if necessary, modify the Spice code inside the macro.

Here are the final waveforms of the full circuit, including the five counter output waveforms. SW_MODE is in the High state, selecting the sawtooth signal:

Mixed Mode Simulation in TINA and TINACloud-1diagram

If we change the SW-MODE switch to Low and run Transient analysis again, the waveforms are:

Mixed Mode Simulation in TINA and TINACloud-2diagram

To see the effect of the analog filter, delete curves d0 to d4 from the diagram by clicking the curves and pressing the Del key:

Mixed Mode Simulation in TINA and TINACloud-3diagram

2. MCU controlled SMPS circuit

The mixed mode simulator of TINA not only allows MCUs, but also any linear or nonlinear parts in TINA’s libraries. As an example, let’s study the following circuit, which realizes a DC-DC converter, converting 5V DC to 13V DC, and operating in boost mode:

Boost Converter with PIC control

Mixed Mode Simulation in TINA and TINACloud-BoostconverterwithPICcontroll-blog6
Click the picture to run this circuit online with TINACloud

The waveforms below demonstrate how the analog parts and the MCU interact in TINA.

Mixed Mode Simulation in TINA and TINACloud-4diagram

3. Mixed circuit example consisting of simple analog and digital components

PSK demodulator

Mixed Mode Simulation in TINA and TINACloud-PSK Demodulator-blog4
Click the picture to run this circuit online with TINACloud

You can display the results in one diagram or as separate diagrams shown below by simply appending a colon ( : ) and  a number to each output name.
Mixed mode results:

Mixed Mode Simulation in TINA and TINACloud-5diagram

Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.

Click here to download the FREE trial demo of TINA

Dr. Michael Koltai

www.tina.com
www.tinacloud.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Using the Library Manager of TINA, Part 4: Adding S-parameter models

In this tutorial video we will show how to add  S-parameter models to TINA’s libraries.

Watch our tutorial video to see how to add an S-parameter transistor called s_bfp405.s2p to TINA’s libraries.
 usingthelibrarymanagerofTINApart4-Blog

 

Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Using the Library Manager of TINA, Part 3: Adding complete Spice libraries in .MODEL format

Semiconductor device manufactures often provide models for their components in .MODEL format. These are normally placed in a text file (also called library) containing many .MODEL instructions.

In this tutorial video we will show how to add such libraries to TINA. Of course you can also create your own models in .MODEL format and add to TINA in a similar way.

Watch our tutorial video to see how to add diodes.lib to TINA’s catalog available for part (device) selection.

 

usingthelibrarymanagerpart3-blog

 

 

 

Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Using the Library Manager of TINA, Part 1: Adding a Simple 5 terminal Operational Amplifier to the Library

TINA has large libraries containing Spice models provided by semiconductor manufacturers such as Analog Devices, Texas Instruments and more.
You can add more models to these libraries or create your own Spice library using TINA’s Library Manager (LM).

Watch our tutorial video to see how to add a Spice model to TINA’s Spice libraries.

 

Using the library manager of TINA part1

 

Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Creating Subcircuits from Spice Models with TINACloud: .MODEL format

In TINACloud you can also create your own components from any Spice models given in .MODEL format that you have made or downloaded from the Internet.

Watch our tutorial video to see how to create a  TINA macro component using a BC846 NPN Bipolar transistor downloaded previously from the web.

Creating Subcircuits from Spice Models with TINACloud blog

 

Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Creating Subcircuits from Spice Netlists with TINACloud

In TINACloud you can create your own components from any Spice subcircuit that you have made or downloaded from the Internet.

Watch our tutorial video to see how to create a  TINA macro component using a THS4121 Spice Subcircuit downloaded previously from the web.

Creating subcircuits from spice netlists with blog

Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Creating Subcircuits from Spice Netlists Part 1: Simple 5-terminal Operational Amplifiers now with English voice over

In TINA you can create your own components from any Spice subcircuit that you have made or downloaded from the Internet.

Watch our tutorial video  to see how to create an UA741 Operational Amplifier model using a     Spice Subcircuit in TINA:

Creating subcircuits from Spice netlists-part1-blog-voice

Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Creating Subcircuits from Schematics in TINACloud

In TINACloud you can convert any schematic diagram into a subcircuit called a Macro.

Watch our tutorial video  to see how to create a Macro in TINACloud:

CreatingSubcircuitsfromSchematicwithTC-blog

 Download the FREE trial demo of TINA Design Suite and get:

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA.

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Feedback Capacitor Low-Pass Filter Pitfalls

Adding a capacitor in parallel with the feedback resistor of an op amp is an easy way of accomplishing low- pass filtering. This technique works quite well in an inverting  amplifier (see the curves below) but not necessarily in a non-inverting amplifier. If the NI amplifier has high gain, the filtering is not bad– but inferior to the inverting case.  As the NI amplifier gain is reduced, the filter effectiveness suffers. In fact, in a gain of +2V/V, there is only 6dB of stopband attenuation. In a voltage-follower   (gain of +1V/V), there is no low- pass filtering at all! In each amplifier, the value of R2 was stepped logarithmically from 100 ohms to 100k.\e(x,2) (Circuit is created by Neil P. Albaugh, TI-Tucson )

Circuit for Demonstration of Pitfalls related with the Feedback Capacitor in Low-pass Filters 

Feedback Capacitors Filter Pitfalls-blog3

Demonstration of Pitfalls related with the Feedback Capacitor in Low-pass Filters circuits

The great feature of the TINA circuit simulator that you can analyze this circuit immediately with TINACloud the online version of TINA.

Click here to invoke TINACloud  and analyze the circuit yourself, or  watch our tutorial video to learn how to create and analyze this circuit with TINA off-line version now under Windows 10  or on-line with TINACloud.

You can send this link to any TINACloud customers and they can immediately load it by a single click and then run using TINACloud.

Download the FREE trial demo of TINA Design Suite and get

  1. One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)
  2. An immediate 20% discount from the offline version of TINA
  3. Free license for your second computer, laptop etc.
Click here to download the FREE trial demo of TINA

 

Michael Koltai
www.tina.com

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS