circuit simulator

Creating Subcircuits from Schematics in TINA offline version, part 2: Macro in Macro, now with English voice over

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

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

 creating-subcircuits-from-schematics-part2voiceover-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

 

www.tina.com

 

You can also find below the script of the video:

Creating Subcircuits from Schematics, part 2: Macro in Macro

Tina allows a hierarchical macro structure; that is, macros can contain other macros inside, and so on.

Note: The macros inside a macro can contain not only schematics but also Spice netlist and HDL code such as VHDL, Verilog, Verilog AMS and more. We will demonstrate the creation of such macros in other videos.

Let’s use our half adder macro created in our previous tutorial- Creating Subcircuits from Schematics, part 1 – to create a full adder Macro containing 2 half adder Macros

Insert the newly created Half Adder twice into a new circuit

then add the additional components and wires as shown on the picture

then add the additional components and wires as shown on the picture

Rename the labels as required

Add the OR Gate

Now create and save the new Macro with the New Macro Wizard from the Tools menu

Note: Although the automatic symbol creation is very convenient, you can also create your own schematic-symbols with TINA’s Schematic Symbol Editor and assign macros to them.

Let’s use this feature with an existing symbol.

We will show the creation of such a symbol in another video.

Select New Macro Wizard from the Tools menu

Enter the macro name: Full Adder

Select the suggested symbol from the library, then set the file name and press Save

Finally let’s insert the newly created Macro & its content.

If you double-click the Macro and press Enter Macro you can see and edit the content of the macro

Full Adder content

Share and Enjoy

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

Creating Subcircuits from Schematics in TINA offline version, part 1, now with English voice over

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

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

creatingsubcircuitfromschematicswithvoiceover-part1-yt

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

 
www.tina.com

 

You can also find below the script of the video:

Creating Subcircuits from Schematics

In TINA you can simplify schematics and hide clutter by turning portions of the schematic into subcircuits.

TINA automatically represents these subcircuits as a rectangular block (New macro) on your schematic, but you can create any shape you like with TINA’s Schematic Editor or select an already existing shape.

You can convert any schematic diagram into a subcircuit, called a Macro in TINA, simply by adding the terminals and saving the new circuit in the special (*.tsm) format.

Let’s see how to create a Macro in TINA

Load the Half Adder (Half_Add.tsc) example from the Examples folder of TINA

First, we will Delete the text and the diagram.

Let’s convert the Half Adder example into a Macro

Delete the old terminals and replace them by subcircuit terminals called Macro Pins in TINA

To select the portion of the circuit (terminals) click at the corner of the area to be selected, hold down the left mouse button then move the mouse and release the left mouse button at the opposite “corner”.

Press the Delete button

Select Macro Pin from the Special Toolbar

Rotate it by using the Rotate left or Rotate right Button, then connect it to the circuit

Double-Click the Macro Pin1 to be selected then in the Pop-up window rename the Label as it is shown.

Repeate this procedure for all deleted terminals

Next, create and save the new Macro

Select New Macro Wizard… form the Tools Menu

Set the name to Half Adder

Next, select the shape you want to assign

At this time we will select the “Auto generate shape”

then set the file name and press Save

Finally, press the Insert button

In the Dialog box the following message appears:

The macro file is ready for use, it can be inserted by selecting Insert/Macro or by pressing the Insert button below.

The Rectangular Schematic symbol – which has been automatically created – will be attached to your cursor and you can place it wherever you wish (on the workspace).

If you double-click the Macro and press Enter Macro you can see and edit the content of the macro

We will add „subcircuit” to the original name of „Half Adder”

(We will change the name from Half Adder into Half Adder subcircuit)

Note that by default this change will be stored along with the Macro in the TSC file.

If you want to save the changes also in the already saved Macro, invoke the New Macro Wizard again from the Tools menu

Here you have to enter the Macro name again (Half Adder Subcircuit), which allows you to change the old name (Half Adder)

Select Auto Generate Shape

Let’s Save the modified Macro under a new name: Half Adder Modified

The name change we’ve made is included in the name of the Macro

Let’s open the Macro to see the changes in the body of the Macro.

The changes we’ve made are indeed included.

Let’s check with an analysis the operation of the new Macro we’ve created

Now just let’s close the Macro, we have opened

Load the Half_Add.TSC circuit from the Examples folder of TINA again (without the text and diagram)

Insert the new Macro we have created

Using Copy and Paste, add the Generators and Outputs of Half_Add.TSC to the Macro.

Run Analysis

Digital Timing Analysis…

You an easily check that the new Macro provides the same result

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, now with English voice over

S-parameter models are often used for characterization of high-frequency electronic devices.

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.

UsingthelibraryManagerofTINApart4withvoiceover-YT

 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, now with English voice over

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.

UsingthelibraryManagerofTINApart3withvoiceover-YT

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

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 2: Complex multi-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 a  TINA macro component using a THS4121 Spice Subcircuit downloaded previously from the web.

Creatingsubcircuitsfromspicenetlistpart2withvoice2x-youtube

 

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:

 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

New! Analysis links in TINACloud

A new exciting feature in TINACloud that now you can add links to your circuits which allow you to carry our most TINACloud analyses simply by clicking the links without using TINAclouds’s menus. This feature is extremely useful when you create presentations for your customers.

 

 

In the above window click any of the underlined links to experience the new feature.

For example if you click the “Click here to run AC nodal analysis” link the following screen will appear.

AC Node voltages

By default is shows the rms voltage on the output(s). If you click with the cursor on any nodes (yellow boxes) of the circuit it will display the detailed nodal analysis data in a small window. Click You can repeat this any times until you press the Close button to finish the Nodal Analysis.

Further if you click the “Click here to run AC transient analysis” link, the Transient analysis will automaticall run and the following screen will appear. You can now run cursor on the diagram or close the diagram and make further analyses.

Transient

Click here to watch our tutorial video!

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

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