Author: Michael Koltai

Using Hardware Description Languages in TINA, Part 1: Creating Macros from a VHDL code, now with English voice-over

Hardware Description Languages (HDL) are powerful tools to describe and simulate complex electronic devices.

In this tutorial video we will show how you can create a macro from a VHDL (.vhd) code and use     in TINA. You can create macros from Verilog, Verilog-A and Verilog-AMS files in a similar way.

Watch our tutorial video to see how  you can create a macro from a VHDL (.vhd) code and use         in TINA.

 usinghardwaredescriptionlanguagesintinapart1-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 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 Hardware Description Languages in TINA, Part 1: Creating Macros from a VHDL code

Hardware Description Languages are powerful tools to describe and simulate complex electronic devices. In this tutorial video we will show how you can create a macro from a VHDL code and use in TINA. You can create macros from Verilog, Verilog-A and Verilog-AMS files in a similar way.

You can create a macro from any .vhd , .v , .va, .vams file that contains an entity (interface to the outside world) with its architecture (description of the hardware).

The meaning of the file extensions is as follows:

Files with .vhd extension are VHDL files,

with .v extension are Verilog files,

With .va extension are Verilog-A files and

with .vams extension are Verilog-AMS files.

The ports declared in the interface part will automatically appear in the macro symbol (shape). By default, the input ports of the interface will appear on the left side of the generated macro shape and the output ports of the interface will appear on the right side, but by editing the generated macro you can change this arrangement.

For example consider the following VHDL interface:

ENTITY e_Half_add_entity IS PORT(

A : IN std_logic;

S : OUT std_logic;

C : OUT std_logic;

B : IN std_logic );

END e_Half_add_entity;

In this case the A,B ports will appear on the left side

and the S,C ports will appear on the right side of the macro shape.

Now let’s see how to make a macro from the following VHDL code (a half adder):

LIBRARY ieee, tina;

use ieee.std_logic_1164.all;

use std.textio.all;

USE tina.primitives.all;

————————————

– entity section

————————————

ENTITY e_Half_add_entity IS PORT(

A : IN std_logic;

S : OUT std_logic;

C : OUT std_logic;

B : IN std_logic );

END e_Half_add_entity;

————————————

– architecture section

————————————

ARCHITECTURE a_Half_add_arch of e_Half_add_entity IS

constant delay : time := 20 ns;

BEGIN

S< = (A xor B) after delay;

C< = (A and B) after delay;

END a_Half_add_arch;

Note that the essential code of the half adder is 2 lines long only

Open TINA

Click the Tools menu

Select New Macro Wizard

Type a name for the new macro

In our case: Half_adder_VHDL

Change the Settings from Current circuit to From file

Click the Open icon

Change the file type to VHDL

From the TINA program folder

Select Examples

Open the VHDL folder

Select the Half_adder_VHDL.vhd file and press Open

Press the Next button to save the macro and save the macro into the default Macrolib folder.

You can insert the Macro by pressing the Insert button or you can select the “Insert/Macro” from the menu.

Click the Insert button

To see the content of the macro double-click on it and press the Enter Macro button

The content of the macro appears

Let’s test our newly created macro in TINA’s Digital interactive mode.

To do this, place two High-Low digital switches from the Switches toolbar, one for each of the A,B inputs, and two logic indicators.

Now select the Digital interactive mode with the narrow “Select Interactive mode” button on the Toolbar

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.

In our example so far the terminals or pins of the macro were placed automatically.

You can change the automatic pin arrangement of an automatically generated macro by editing its header.

For example the header in the previous example is

————————————

– TINA HDL Macro Description Begin

– entity_name:e_half_add_entity;

– arch_name:ignored;

– ports:a,b;s,c;

– Mode:VHDLTyp;

– TINA HDL Macro Description End

———————————-

The pin arrangement is determined by the following line:

ports:A,B;S,C;

the ports before the first semicolon (;) are placed on the left while the rest are

placed on the right side of the macro box.

If you change the port line to Ports as follows:

A,B,S;C

A, B, S will be placed on the left side and C on the right side of the macro box.

You can also change the vertical order of the pins by changing the order of the pins in the list.

Let’s see how to convert the previous Macro:

Half_adder_VHDL into a new Macro called: Half_adder_VHDL_modified

Double-click the macro and press the Enter Macro button

Let’s change the ports line to as follows:

ports:A,B,S;C;

Select File

Select Save as

Save the modified code. We will save it under the name: Half_adder_VHDL_modified.vhd

Close the TINA HDL Editor

In the pop-up window the following message appears:

Macro has been modified. Confirm changes?

Click No

Let’s create a new macro with the modified pin arrangement

Click the Tools menu

Select New Macro Wizard Enter the name of the new macro:In our case: Half_adder_VHDL_modified

Change the Settings from Current circuit to From file

Click the  Open icon

Invoke the place where your newly created macro is saved. In our case the Downloads folder

Change the file type to VHDL

Select the Half_adder_VHDL_modified file, then click Open

Press the Next button to save the macro,

and save the .TSM file into the default Macrolib folder.

Click the Insert button

The modified macro with the revised pinout version will be attached to your cursor and you can place it anywhere on the workspace

By double-clicking the modified Macro, then pressing the Enter Macro button you can see the content of the macro with the revised pin arrangement

Share and Enjoy

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

Using the Footprint Editor in TINA, part 2: Setting and checking footprint names, now with English voice-over

In this video we will present how to check and set the mapping between TINA’s Schematic Symbols and the Footprints used in TINA’s Integrated PCB Designer.

Watch our tutorial video to see how to check and set the mapping between TINA’s Schematic Symbols and the Footprints used in TINA’s Integrated PCB Designer

usingthefootprinteditorintina-checkingandsettint-voice-yt2

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 Footprint Editor in TINA, part 2: Setting and checking footprint names

In this video we will present how to check and set the mapping between TINA’s Schematic Symbols and the Footprints used in TINA’s Integrated PCB Designer

Start TINA

Assume we have created a macro of an existing IC and now we want to assign a PCB Footprint to it, so we can use the part in PCB design.

Click the Insert menu

Select Macro

From the Macrolib folder open the MAX11166.TSM

Double-click the macro

Click the …  in the Footprint Name field

We will create a user package database to store the symbol and footprint pin pairs.

Package database will be created in the Private Catalog folder.

Check in the Create Library button

Enter the name: MyPackageDB

Click the Create Library icon

Press the Add icon

then click OK to add the MAX11166 to the Component list

Next, click the Add button under the Footprint list

Select MyPackage from the Library list, then click the appropriate footprint SON12_3x3_0.5_TP and click OK

Note: we will use the previously created footprint (see our video: Using the Footprint Editor in TINA: IC Wizard)

To set the pin pairs click the Add button next to the Node list

We will match the pins based on the MAX11166 pin configuration

Click OK

Click OK again

Now the PCB Footprint is associated with the macro.

If you open the TINA PCB Designer the PCB Footprint of the part will appear

Open the TINA PCB Designer

The PCB Footprint of the part appears

Share and Enjoy

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

Using the Footprint Editor in TINA, part 1: IC Wizard, now with English voice-over

If you want to create a footprint of an Integrated Circuit the IC Wizard of TINA can assist you.
Activate the IC Wizard from the Insert menu of the Footprint Editor of TINA PCB Designer.  The wizard presents several properties of the IC which you can set.

usingthefootprinteditorintina-icwizardvoice-overyt

In this tutorial video we will use the MAX11166 converter  to show how to use the IC Wizard of TINA Footprint Editor.

Watch our tutorial video to see how  to use the IC Wizard of  TINA Footprint Editor.

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 Footprint Editor in TINA, part 1: IC Wizard

Start TINA PCB Designer by using the Start menu of Windows 10

Click the Tools menu

Select Footprint Editor

First, select View

Options

and change the Unit into mm and the Precision into 3

then click OK

Create a new Footprint Library by using the File

Save Library As command

in the Private Catalog Folder of TINA

under the name: MyPackage

Press the Save button

Click the Insert menu

Select IC Wizard

In the Technology group, you can set the mounting mode and the package type of the IC. The mounting mode can be through hole or surface mounted. Depending on the mounting mode the following packages are available: DIP (Dual in line packag e), PGA (Pin grid array package), SPGA (Staggered pin grid array package), SOP (Small outline package), LCC (Leaded chip carrier package), QFP (Quad flat package), BGA (Ball grid array package), SBGA (Staggered ball grid array package), SIP (Single in line package) and ZIP (Zigzag in line package) respectively.

In the Package dimension group, the dimensions (length, width,

3D height) of the package can be set. Depending on the selected package, the 4th parameter is either notch, corner cutoff, or ignored.

The Pad dimension defines the shape and dimensions (length, width)

of the pad. If the mounting mode is through hole, the shape of the

drilled pad can be round, square or octagon. Moreover, the shape

and dimensions of the drill diameter can be defined.

However, if the mounting mode is surface mounted, the shape of the pad

can be circular, rectangular or rounded corner and the appropriate

dimensions can be also set.

In the Pad position, the number of pins and the distances between them can be set according to the package type.

Finally, in the Pad numbering group, the type and direction for pad numbering can be entered, depending on the package type.

Set the data as shown in the IC Wizard window above

Click OK

In the pop-up window the following message appears:

Create IC

Click Yes

You can enlarge the image by using the Zoom option

Next, we will position the Smd Pad

Click the Smd icon, then click on the Editor workspace to place it

Double-click the SMD Pad

and in the SMD Pad Properties Window enter 13 in the name field, 0 in the Center X and Center Y fields

Double-click the Size field and enter 2.5 in the Width and 1.7 in the Height fields

Click OK

Click OK again

We will now position the labels which belong to another layer

Click the little arrow next to the TOP layer icon and select the Silkscreen Top layer

Now you can easily move the Name and the Value labels by holding down the left-mouse button while dragging them

Select again the Top layer when you are done

Click the New Footprint Group icon

Click the <New group> folder and rename it by entering the name: SON then press the Enter button on the keyboard

Note: SON is small-outline no leads type of circuit

Click the Footprint Properties icon

and in the Name field enter: SON12_3x3_12_0.5TP

Click OK

Click the Add Footprint to the library icon

Save the footprint by clicking the Save button

Close the Footprint Editor

You can check the newly created Footprint

Reopen the Footprint Editor

Click File

Open Library

Open the MyPackage.FPL

Next, double-click the SON library, then the new Footprint

The mapping between TINA’s Schematic Symbols and the Footprints used in TINA’s Integrated PCB Designer will be presented in another video.

Share and Enjoy

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

Creating Subcircuits from Spice Models with TINACloud: .MODEL format, now with English voice-over

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.

 creatingsubcircuitsfromspicemodelsintc-dotmodel-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 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.

Share and Enjoy

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

Creating Subcircuits from Spice Netlists with TINACloud, now with English voice-over

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.

creatingsubcircuitsfromspicenetlist-tc-voiceover-yt2

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.

Share and Enjoy

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

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.

   wd-basel-2014-stand-for-blog

www.tina.com

www.tinacloud.com

www.labxplorer.com

www.newtonlab.com

 

Share and Enjoy

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

Creating Subcircuits from Schematics with TINACloud, now with English voice-over

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

Share and Enjoy

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

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.

usingtheschematicsymboleditoroftina-voiceover-yt2

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.

Share and Enjoy

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

Creating subcircuits from Spice Models: .MODEL format, now with English voice over

In TINA 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.

creatingsubcircuitsfromspicemodels-datmodelwithvoiceover-yt2

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: .MODEL format

In TINA you can also 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 TINA

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…

Save it as a .mod file, as this is the extension that TINA expects

Let’s see how to add this model to TINA after starting the program

Click the Tools menu

Select the New Macro Wizard

Enter the name of the model BC846

Change the Settings from Current circuit to From file

Click the Open icon

Select the Downloads folder where the BC846.mod file is saved

Switch the Files of type into (*.CIR; *.LIB; *.MOD), then enter the file name BC846.mod

Click Open

Now click Next

Note that into the TINA Macros folder you can save with Administrator rights only.

So select User Macros

then click Save

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.

Now click the Insert button

the Macro will be attached to your cursor and you can place it wherever you wish on the workspace

Double-click the Macro & click Enter macro to see its content

A small schematic design inside the macro appears

Double-click the Transistor

then press the … button in the Type line

Here you can see the detailed description of the model which has been downloaded from the internet

Let’s close the Model Parameters window

Click the Close icon on the Toolbar if you wish to close the Macro and go back to the Schematic Editor of TINA

You can also Insert the new model using the Insert Macro command.

Select Macro from the Insert menu

From the Macrolib folder select BC846.TSM and press Open.

The new model will appear attached to your cursor and you can place it anywhere on the workspace.

This how you can add a device model in .MODEL format. You can similarly add any Spice models, diodes, transistors, MOSFETS etc. which are defined by the standard Spice .MODEL format.

You can also add such models to TINACloud.

Note:

It is of course not necessary to add devices with .MODEL definition one by one. You can also add a number of such devices in one step using the Library Manager of TINA. This process will be demonstrated in a separate video and also described in chapter 5.3 of the Users Manual of TINA. However if you need to add just one or two new models then the procedure outlined in this video might be simpler.

Share and Enjoy

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

Creating two-sided PCBs in TINA, part 2: TINA PCB Design Flow, now with English voice over

In this tutorial we will demonstrate the PCB design for the circuit we prepared in our previous video: Creating two-sided PCBs in TINA, part 1: Preparing Schematics for PCB Design.

The circuit is also available in the latest version of TINA as  ADC.TSC in the Examples\PCB\ADC folder.

creatingtwosidedpcbintinapart2-yt

Watch our tutorial video to see how  to use the PCB design for the circuit we prepared in our previous video: Creating two-sided PCBs in TINA, part 1: Preparing Schematics for PCB Design.

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

 

You can also find below the script of the video:

 

Creating two-sided PCBs in TINA, part 2: TINA PCB Design Flow

In this tutorial we will demonstrate the PCB design for the circuit we prepared in our previous video:

Creating two-sided PCBs in TINA, part 1: Preparing Schematics for PCB Design

1) Placement of components

Start TINA and open the circuit prepared in the previous video

The circuit is also available in the latest version of TINA as ADC.TSC in the Examples\PCB\ADC folder

Click the PCB Design icon

The PCB Design dialog appears

Note that the Autoplacement checkbox is set

Press the OK button

The PCB designer appears with automatically placed parts on the board.

However the automatic placement is never perfect.

Let’s reposition the parts according to our requirements.

Click the Select/Move components/tracks button

then click on U1 and drag aside

Next select the Connectors

As they turn white, rotate them clockwise

Drag them close to the edge of the board

Now position the remaining parts according to this picture.

Note that some of the parts should be rotated.

Finally, change the size of the board

Click the Board outline button,

then click on the workspace by holding down the Right-mouse button

Select Cancel

Next double-click on the workspace

In the Shape properties window

Change the Rectangle height into 1500 mil

then click OK

2. Preparation for routing

Now, we check the design parameters before routing

Click Options

System settings

The units are in mils which were defined in TINA Schematic Editor View/Options

Click OK to close the System settings window

Click Options

Layer settings

We design double-sided board with components on the top.
Copper routing will be applied on top and bottom sides too.

Close the Layer editor Window

Next, click Options

Autorouter settings

We will use both manual and automatic routing, for our circuit.

Here we can give direction preferences on a scale of 1 to 9 for autorouting. Leave them now default.
Close the Autorouter settings window

Next, click Options

Design parameters

Now, set ‘Pad to pad’ value to 6

This assures that our SON12_3x3_0.5_TP (U2 ) package will not violate the design rules

Click OK

3. Routing the design

The PCB Editor offers several modes to assist manual and automatic routing

Click the Mode 2 icon button on the toolbar,

then click to the connection points at the ends of the rubber line

Manual routing is practical for small boards, but now we shall use the autorouter

Click Tools

Autoroute board

After the autorouting we connect manually the unconnected nets then revise connections and cleanup design


Filling both sides with copper pour we will create a ground plane and reduce the amount of etching liquid

Click the Copper pour area icon,

then by holding down the left-mouse button select the area you want to fill

Release the selection by clicking the left-mouse button at the end point

We can assign the GND net to pour areas

Click the Copper pour area icon, then click anywhere on the workspace and select Cancel

Next double-click the copper shape and

in the Assigned net field of the Shape properties window select GND

then click OK

To avoid the board edge, we set ‘Board to copper pour’ to 40 mils
Click Options

Design parameters

Enter 40 in the Board to copper pour field,

then click OK

4. Final touches: texts and 3D view

Now we arrange component name texts on silkscreen and add some additional ones to identify the pins of the connectors

We will move U1 label which belongs to the Silkscreen Layer

Select Silscreen Top layer

Next, click the Select/Move components/tracks button

Click the U1 label, then drag it to the right place

You can rotate it while it is selected by using the Rotate right/Rotate left icon

Finally let’s see and test our design in a lifelike photo-realistic 3D view.

To generate the 3D model press the 3D View button on the toolbar

The lifelike 3D model of the circuit appears.

You can rotate the model by holding down the left-mouse button while moving the mouse or using the arrows on the keyboard.

You can Zoom In or Zoom Out by holding down the right-mouse button while moving the mouse

5. Design rule check (DRC) and making layer images

DRC process is very important step at the end of the design before we generate data files to the PCB manufacturer

Click Tools

DRC

Run DRC

As there is no error message, just click OK

If there is no DRC message then it is time to have our board made.
Typically this means creating gerber format files for a professional manufacturer

Click File

Export gerber file

Click Save

It is also very important to check gerber files once the design is completed.
Note that many free viewers are available like ViewMate, GC-Prevue…

6. Live 3D View

Let’s run Transient Analysis with 3D view

Press the TR button to run Transient Analysis

You can change the Voltage input

Double-click the Vin and enter 1.8 in the Voltage field of the Vin-Voltage Source window, then click OK

Share and Enjoy

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