Creating Subcircuits from Spice Models with TINACloud: .MODEL format

Creating Subcircuits from Spice Models with TINACloud: .MODEL format

In TINACloud you can 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: .MODEL format
Creating Subcircuits from Spice Models with TINACloud: .MODEL format
 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 Spice Models with TINACloud: .MODEL format

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

Some device models are stored in Spice .MODEL format.

Let’s download one from the internet and add the model to TINACloud

Here is the model of the BC846 NPN Bipolar transistor

Let’ save this model

In Google Chrome click the right mouse button.

In other browsers find the Save as command

Select Save as

Switch the Save as type into All files

and Save it as a .cir file, as this is one of the extensions that TINACloud expects.

Start TINACloud

To invoke the Schematic Editor

Select New from the File menu

The Schematic Editor appears

Click the Insert button denoted by a  green + sign to invoke the Insert menu

Select Upload macro

Let’s name the new Macro as BC846

Switch into From File from Current Circuit

then Click Choose Files

Enter BC846.cir into the file name field , then click Open

Now click Upload

In the dialog box the following message appears: Macro uploaded.

Click OK

You can simularly add any Spice models in Spice .MODEL format.

Let’s check how to insert the new model into TINACloud.

Select Insert macro from the Insert (+) menu

Now select BC846 then press OK

The new component will appear attached to your cursor and you can place it anywhere on the workspace by moving the mouse and clicking the left mouse button.

Now let’s create the following test circuit by adding a few more components to test the new model.

Select the Resistor from the Basic Toolbar

Use the Rotate left or Rotate right icon then hold the left-mouse button down while moving it and connect it to the Transistor

Repeat this procedure for R2 & R3

Double click the Resistances (R1 & R2) and in their Properties window set the parameters as shown

R2=47k; R3=3k

click OK

Now select the Ground and connect it to the Transistor

Next add the remaining parts and the wires

then Click the Save button to save the file

Let’s save it under the name BC846_test.tsc

Let’s test this circuit using DC Interactive mode.

Press the DC button

The model works as expected.

Creating Subcircuits from Spice Netlists with TINACloud

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 TINACloud
Creating Subcircuits from Spice Netlists with 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

 

www.tina.com

 

You can also find below the script of the video:

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.

In this tutorial we will present how to create a TINA macro component using a THS4121 Spice Subcircuit downloaded previously from the web.

Note that TINA and TINACloud use the same macro components.

Start TINACloud.

To invoke the Schematic Editor

Select New from the File menu

The Schematic Editor appears

Click the Insert (+) button to invoke the Insert menu

Select Upload macro

Let’s name the new macro as THS4121

Switch into From File from Current Circuit

then Click Choose Files

In the Downloads folder Enter ths4121.cir into the file name field

then Click OPEN

click Upload

Now you have to specify the name of the macro pins and also, if you wish, you can place them anywhere around the box.

To move VSS/?, select it by holding down the left-mouse button & moving the mouse, then press the right mouse button & select Cut.

Now move your mouse to the place where you would like to insert the text and select Paste from the Pop-up menu.

The ? must be replaced by the macro pin name, so write VSS/VSS

Repeate this procedure for all items where it is needed.

Click OK

To check the newly created macro select Insert macro from the Insert (+) menu

Select THS4121 from the Dialog Window of the User macros then press OK

The newly created macro will be attached to your cursor and you can place it wherever you wish on the workspace

To check its content double-click the macro.

then press … (Details) in the SubCkt (Content) line

Note that the Netlist also contains an auxiliary subcircuit

Click OK

Now you can create an application circuit by adding other components.

Let’s create the circuit like the one on this sample schematic

Double-click the component

then in the Property dialog enter the required component value & press OK

Save this circuit as THS4121_test_circuit.TSC

Let’s test the DC operation by pressing the interactive DC button.

The model works as expected.

DesignSoft at World Education Days in Bern

DesignSoft at World Education Days in Bern

We cordially invite you to visit DesignSoft’s stand at the World Education Days in Bern.
8-10 November 2016, BERNEXPO, Bern, Switzerland
Hall 3.0/ E10
We are looking forward to meet you at our stand, where we will present our latest versions of TINA, TINACloud, LabXplorer, EDISON & NEWTON.
DesignSoft at World Education Days in Bern
DesignSoft at World Education Days in Bern

 

www.tina.com

www.tinacloud.com

www.labxplorer.com

www.newtonlab.com

 

Creating Subcircuits from Schematics with TINACloud

Creating Subcircuits from Schematics with 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:

creatingsubcircuitsfromschematicswithtc-voiceover-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 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 with TINACloud

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

TINACloud automatically represents these subcircuits as a rectangular block on your schematic.

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 TINACloud

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

To invoke the Schematic Editor Select Schematic Editor… from the Tools menu or double-click an empty spot on the workspace.

The Schematic Editor appears

Delete the diagram and the text. Click the object you want to delete, then press the Delete key or click the X button on the toolbar.

Let’s convert the Half Adder example into a Macro

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

To select the portion of the circuit (terminals) click the Multiple Selection button first then the corner of the the area you want to select, hold down the left mouse button then move the mouse and release the left mouse button at the opposite corner.

Click the X button on the toolbar

Release the Multiple Selection Button

Click the Macro Pin on the Special Toolbar

The Macro Pin will be attached to the cursor and you can move it anywhere on the screen.

You can Rotate the Pin using the Rotate Left or Rotate Right buttons

Connect the Macro Pin to the circuit

When you place the Macro Pins, their label is automatically set to Pin1, Pin2 etc.

Double-click the labels then in the Property window set the label field as shown

Reposition some labels

Next create and save the new Macro.

Press the Insert (+) button

Select Upload macro…

In the Diagram window set the Macro name (in this case: HA)

then click the Upload button

In the pop-up window the following message appears: Macro uploaded.

Click OK

Now, let’s see how to insert a Macro into a schematic and use it

Click the Insert (+) button then select Insert Macro

Select the Macro HA, then press OK.

The newly created macro will be attached to your cursor and you can place it in the usual way.

Let’s modify the name and content of the macro

Create the modified macro under the name HA Circuit

then insert it

The Macro has been already uploaded, but you may save this circuit if you wish. Let’s save under the name HALFADDERModified

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

Load the original HALF_ADD tsc. into the

Schematic Editor of TINACloud without the diagram and text in the way as previously shown.

Let’s make more place by using the Zoom out command

Pan the circuit by holding down the left mouse button while moving the mouse.

Insert the newly created HA Circuit Macro

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

To draw the wires, click the first connection point, then draw the wire by moving the mouse and finally click the second connection point.

Save the circuit under the name HALF_ADDModified

If you click the macro and press the button in the SubCkt (Content) line you can see the schematic stored in the macro

Finally let’s check with the Digital Analysis the newly created macro

Run Analysis

Digital

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

Using the Schematic Symbol Editor in TINA, Part 1 : Making Your Own Schematic Symbols

Using the Schematic Symbol Editor in TINA : Making Your Own Schematic Symbols

Using TINA’s Schematic Symbol Editor, you can create new schematic symbols so that you can add your own circuit components to TINA.  To create new symbols, you place lines, arcs, rectangles, and arbitrary characters with any fonts, specifying line-width, color, and area color fills.  After drawing the symbol, you add and define connections to it.

In this tutorial video

we will show how you can create a new symbol for the full-adder circuit (that was used previously in our “Creating Subcircuits from Schematics 2- Macro in Macro” video) and use in TINA.

Watch our tutorial video, with English voice-over and subtitles, to see how  you can create a new symbol for the full-adder circuit  and use in TINA.

Making Your Own Schematic Symbols
Using the Schematic Symbol Editor in TINA

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:

Using the Schematic Symbol Editor in TINA:Making Your Own Schematic Symbols

Using TINAs Schematic Symbol Editor, you can create new schematic symbols so that you can add your own circuit components to TINA.

To create new symbols, you place lines, arcs, rectangles, and arbitrary characters with any fonts, specifying line-width, color, and area color fills.

After drawing the symbol, you add and define connections to it.

Start the Schematic Symbol Editor of TINA using the Start menu of Windows 10

TINA Schematic Symbol Editor appears

Now let’s create a new symbol for the full-adder circuit that was used previously in our “Creating Subcircuits from Schematics, part 2- Macro in Macro” video

Draw a rectangle as the body of the component.

Press the Rectangle button then click on any point in the drawing area, hold the mouse button, and move the mouse until the rectangle is properly sized.

You can easily replace the label by using the left-mouse button while dragging it

Fill the rectangle with a color by clicking first the symbol (to be selected),

then the Fill color icon at the lower left corner of the window

Select the color from the Palette then click OK

You can also change the border of the rectangle by using the Object color icon

Let’s not change the suggested border color

Now add the terminals. Select the desired terminal type from the Terminal-Toolbar in the upper left corner of the window and move the cursor into the rectangle you just drew.

Position it using the mouse then click to locate the terminal.

Be sure the small red x, indicating the pin end, is outside the body. Continue this process until every terminal is positioned.

Use the rotate right or rotate left button if it is necessary

Note: the Rotate icons are active after the terminal is placed & still selected

After you have positioned all the terminals, you can establish their properties by double clicking on each of them.

Change the pin name 1 into A in the Pin Properties window, then click OK

You should assign terminal names as shown above

Next, write the name: Full Adder inside the symbol

Click on the Text Editor (T)button on the Toolbar, then click on the macro symbol

Enter the name: Full Adder then click OK

Click the “Auto-calculate sensing rectangle” icon to define the area where you can select the symbol in TINA.

Finally, copy the new symbol into the Symbol library with the Add device button

and by using the Save as command,

save your .ddb file in your Private or Shared catalog folder

under the name Full Adder

Close the TINA Schematic Symbol Editor

Now let’s see how to use the new schematic symbol in TINA

Open TINA

Click the Tools menu

Select New Macro Wizard

Type a name for the new macro

In our case: Full Adder

Change the Settings from Current circuit to From file

Click the Open icon

Select the Main TINA folder

then select the Macrolib folder

Open the Full adder.tsc file

Press the Next button

The wizard finds the built-in Full Adder symbol in the symbol library of TINA

Our newly created Full Adder symbol will be at the end of the list.

Click the Next button

and save the macro (Full adder.tsm) into the default Macrolib folder.

In the New Macro Wizard dialog box now 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.

Click the Insert button

The Full Adder macro will be attached to your cursor. Place it wherever you wish on the

workspace.

To see the content of the macro double-click the macro

then Press the Enter Macro button

The content of the Full Adder macro appears

 Lets test our newly created macro in TINAs Digital interactive mode.

To do this, place 3 High-Low digital switches from the Switches Toolbar, one for

each of the A,B & Ci inputs, and 2 logic indicators from the Meters Toolbar

Now select the Digital interactive mode with the narrow „Select Interactive mode”

button on the toolbar and then press the DIG button

The logic levels of the nodes appears, Red for High. Blue for Low.

Click the switches to change the input states.

The logic indicators will also show the logic level of the outputs in a Red square for

High, and empty square for Low.

The Half adder circuit works as required.