circuit simulator

Using Hardware Description Languages in TINA, part 4: Creating Analog Components with Verilog-AMS, 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 Verilog-AMS (.vams) code and use in TINA. You can create macros from VHDL, Verilog and Verilog-A files in a similar way.

Watch our tutorial video to see how  you can create a macro from a Verilog-AMS (.vams) code and use 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 Hardware Description Languages in TINA, part 4: Creating Analog Components with Verilog-AMS

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

Let’s demonstrate the details. 

We will first create the Generator with serial output (SPI). This is given in VHDL. Next, we will create a DAC Converter macro given in Verilog AMS.

Open TINA

Click the  Tools menu

Select  New Macro Wizard

Type a name for the new macro

In our case: SPI

Change the Settings from Current circuit to From file

Click the  Open icon

Select TINA examples

Open the Examples

Verilog-AMS folder

Change the file type to .VHD

then Select the spi file and click Open

Press the Next button

You can either Select the  Auto generate shape

or you can load a shape from the library

Let’s select the  Auto Generate shape option

then Click Next

You can browse the code and see how easy to create an SPI output in VHDL

Click Next again

and save the macro (SPI.tsm) 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

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

Next, we will create a DAC Converter macro from a .VAMS code and we will use the VHDL macro (created previously) and the Verilog-AMS macro in the same circuit to demonstrate that in TINA you can use VHDL and Verilog (Verilog-A, Verilog-AMS) macros in the same circuit.

Click the  Tools menu

Select  New Macro Wizard

Type a name for the new macro

In our case: DAC

Change the Settings from Current circuit to From file

Click the Open icon

Select TINA examples

Open the Examples

Verilog-AMS folder

Change the file type to .VAMS

then Select the dac vams.vams file and click Open

Press the Next button

Select the  Auto Generate shape option

Press the Next button

Change the orientation of the  pins  listed ont he screen   into right

Click the appropriate modul to be selected then  click the left button under the orientation field then select right  

Change the position of the pins on the right side by using the “Move up” or “Move down” buttons.

Change the position of the moduls on the left side as well:

Click Next

and save your tsm file under the name DAC into your default Macrolib folder

Click Insert

and place the DAC macro on the workspace

Double-click the DAC macro,

then press the Enter Macro button to check its content

The content of the Macro appears

Now, close the HDL Editor Window of TINA

Let’s create the following circuit to test the new DAC model:

 Connect the DAC inputs with the appropriate SPI outputs 

Draw a wire starting from the CLK pin

From the Meters Toolbar select the Voltage Pin and connect to the wire

Double-click the Voltage Pin & rename the label into CLK

Continue connecting the DAC inputs with the appropriate SPI outputs

Start drawing the wire from  VREF

Select the Voltage Source (VS1) from the Basic Toolbar and connect it to VREF.

Next, connect the Ground to VS1

Connect the Battery (V1) to VDD, and a Ground to AGND

Finally connect a Voltage Pin to VOUTA (Analog Output)

then rename it

Let’s test the circuit by Running Transient  Analysis

Click Analysis on the menu then select Transient

then Click OK

Let’s test the circuit for a time period of 1ms 

Click Analysis on the menu then select Transient again

Click the Analysis menu on the Toolbar, then select the Transient mode again. 

In the Transient Analysis dialog box change the value of the

End display field to 1m 

Our DAC Converter works as expected.

Share and Enjoy

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

Using Hardware Description Languages in TINA, part 3: Creating Analog Components with Verilog-A, 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 Verilog-A (.va) code and use in TINA. You can create macros from VHDL, Verilog and Verilog-AMS files in a similar way.

Watch our tutorial video to see how  you can create a macro from a Verilog-A (.va) code and use in TINA.

 usinghardwaredescriptionlanguagesintinapart3-voice-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

 

www.tina.com

You can also find below the script of the video: 

Using Hardware Description Languages in TINA, part 3: Creating Analog Components with Verilog-A

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 Verilog-A (.va) code and use in TINA.

You can create macros from VHDL, Verilog 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).

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). You can associate an automatic rectangular block or a schematic symbol from TINA’s library with the macro.

In case of automatic rectangular blocks you can edit and reposition the interface pins.

Let’s demonstrate the details.

Open TINA

Click the Tools menu

Select New Macro Wizard…

Type a name for the new macro In our case: JFET1

Change the Settings from Current circuit to From file

Click the Open icon

Select TINA examples

Open the Examples and then the Verilog-A folder

Change the file type to .va

Open the Device Models folder then Select the jfet.va file and

Click Open

Press the Next button

You can either Select the Auto generate shape or you can load a shape from the library

Let’s Select first the Auto Generate shape option

then Click Next

Check the interface line

Change the orientation of “d” into up, and “s” into down

You can also browse the Verilog-A code

Click Next

and save the macro (jfet1.tsm) 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

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

Let’s demonstrate the case when you select the “Load shape from the library” option.

Click the  Tools menu

Select New Macro Wizard

and let’s name the new macro as JFET2.

After selecting the jfet.tsm file, press the Next button

Select the TINAICS folder

Find the JFET symbol by clicking the long vertical button and then using the scrollbar

Click Next

Check if the uppercase D, G, S symbol pins are properly connected with the lowercase d, g, s macro parameters

if not, you can easily update the connections by dragging the connection labels

In our case no changes are needed.

Click Next

then the Insert button

Place the Macro on the workspace

By double-clicking the macro, then pressing the Enter Macro button you can check its content

The content of the macro appears

Now close the HDL Editor window of TINA

Let’s create the following circuit to test the new transistor model:

Select the Voltage Source and the Voltage Generator from the Sources Toolbar

Next, select the Current Arrow from the Meters Toolbar, then  rotate it

Click the Insert menu

Select Macro

Select User Macros

Select the jfet2.tsm, then click Open

The Verilog-A macro will be attached to your cursor, you can place it on the workspace

Draw the wires to connect the components

Double-click the labels to rename them

and you can also replace the labels if necessary by dragging it while it is selected

Let’s test the circuit by Running Analysis

DC Analysis

Click Analysis on the Toolbar

Select DC Analysis

and then DC Transfer Characteristic…

The DC Transfer Characteristic dialog box appears.

Check if the parameters under the Main sweep tab are as shown on the screen

Note that TINA also allows Nested Sweep in the  DC Transfer Characteristic analysis which makes the calculation of device characteristics easier

Click the nested sweep tab and check the parameters shown on the screen.

According to these parameters

9  ID versus VG curves will be calculated with 9 different VG values including

VG= – 2 and VG = 0 as well.

Click OK to run the DC Analysis

Our test circuit works as expected.

Share and Enjoy

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

Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog, 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 Verilog (.v) code and use       in TINA. You can create macros from VHDL, Verilog-A and Verilog-AMS files in a similar way.

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

 usinghardwaredescriptionlanguagesintinapart2-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 2: Creating Macros from Verilog

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

For example consider the following Verilog interface:

module half_add (A, B, S, C);   

input A, B;

output S, C;

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.

Let’s see how to make a macro from the following Verilog code (a half adder):

module half_add(A, B, S, C);  

input A, B;

output S, C;

assign S = A ^ B;

assign C = A & B;

endmodule

Note that this Verilog code is much simpler than the equivalent VHDL code. This is one of the great advantages of Verilog.

The essential Verilog code of the half adder is 2 lines long only.

Let’s demonstrate the details.

Open TINA

Click the Tools menu

Select New Macro Wizard

Type a name for the new macro In our case: Half adder Verilog

Change the Settings from Current circuit to From file

Click the Open icon

Change the file type to .v

Select TINA examples

Select Examples

Click the Verilog folder

Click Open

Select the Half adder Verilog.v file and press Open

Press the Next button to save the macro,

and save the macro into the default Macrolib folder.

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

Click the Insert button

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

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

The content of the macro appears.

Close the TINA HDL Editor window

Let’s test our newly created macro in TINA’s Digital interactive mode along with the previously created VHDL macro

(See Using Hardware Description languages in TINA, part 1)

Let’s open our previously created Half_ Adder VHDL macro.TSC circuit.

Here is the circuit with two High-Low digital switches, one for each of the A,B inputs, and two logic indicators. We will copy the circuit, then we will change the macro into the Half adder Verilog macro

To select the circuit 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.

Click the Copy then the Paste button on the toolbar. Your circuit will be attached to your cursor.  Position it by moving the mouse to the required position and press the left mouse button.

Deselect the circuit by clicking an empty spot.

Click the Half adder VHDL macro to be selected then delete it by pressing the Del key on the keyboard.

Click the Insert menu

Select Macro

Select User Macros

Select the Half adder Verilog.TSM, then click Open

The Verilog macro will be attached to your cursor, you can move and insert it into the place of the deleted VHDL macro.

Let’s test the 2 circuits

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

Press the Dig  button

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

The logic indicators will also show the logic level of the outputs in a Red square for High, and empty square for Low.

Both Half_adder circuits work as required.

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

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

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

Creating two-sided PCBs in TINA, part 1: Preparing Schematics for PCB Design, 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.

Note: See also our previous video: Using the Footprint Editor in TINA, part 2: Setting and checking footprint names

creatingtwosidedpcbsintinapart1voiceover-yt

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.

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 1

Preparing Schematics for PCB Design

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

Note: See also our previous video: Using the Footprint Editor in TINA, part 2: Setting and checking footprint names

Here is the circuit we will use

Note: We have already presented how to set the footprints of U2 in our previous video.

Start TINA

The most important thing in PCB design is that every part in your schematic must have a physical representation with exact physical size.

This is accomplished through so called footprints-drawings showing the outline and the pins of the parts.

In TINA, we have already assigned default footprint names to all parts which represent real components.

To check the footprints you can double-click on each part and check the Footprint Name of the Component Property dialog.

Double-click the R1

Click the … button in the Footprint Name line

and see the “PCB information” dialog where you can select from the available footprint names.

You can also see the 3D view of the different parts via the 3D package view field of the dialog.

Of course, there is no guarantee that the default physical representatives of the parts are the same as those needed by your design.

Now, we will use SMT Footprint

Select the R1608_0603 Footprint, then click OK

Click OK again

Alternatively you can use TINA’s “Footprint Name Editor” which you can invoke from the Tools menu

Select Tools

Footprint Name Editor

In this dialog you can see all of TINA’s components & the corresponding footprint names

To locate a part click the label then the Locate button

AIN+ and some parts (controlled sources,…) used for theoretical investigations do not represent real physical parts so you cannot place them on a PCB.

Clicking on the footprint name fields, you can select from the available footprint names.

From the Footprint name list select

C1608_0603 for C1, C2, C3, C4, C5, C6

In the dialog, components that do not already have a footprint name association will be denoted by red characters and also by “???” in the footprint name field.

in the U4 Footprint Name field click the ??? then the …

As we already have a footprint for U4 in TINA Package Database

Select the TINA library

Check in the All box

and select the LCD16X1 footprint from the list

then click OK

Finally select the JP100 footprint for VCC, Vin, VDD, OVD, REF

Click OK to close the Footprint Name Editor

Now the PCB footprints are associated with the parts.

If you open the TINA PCB Designer the PCB Footprints of the parts will appear

Open the TINA PCB Designer

Set the parameters as shown next

Check the Autoplacement option

Let’s adjust the board dimensions.

Enter 4.5 for the Board width and

2.3 for the board height

Click OK

The PCB footprints of the parts appear.

The parts are automatically placed on the board and connected with “rubber lines”.

Our task is now to move the parts into their final positions and instead of the rubber lines connect them with non-intersecting tracks on the two sides of the board.

We will show how to do this in our next video.

Share and Enjoy

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