Interactive Simulation Mode

The ultimate test of your circuit is to try it in a "real life" situation using its interactive controls (such as keypads and switches) and watching its displays or other indicators. You can carry out such a test using TINA's interactive simulator mode. Not only can you play with the controls, but you can also change component values and even add or delete components while the analysis is in progress.

The interactive circuit simulation mode is also very useful for educational and demonstration purposes, for tuning circuits interactively, and for interactive circuits which you could not otherwise test, e.g., circuits with switches, relays, or microcontrollers. TINA has special multimedia components (light bulb, motor, LED, switch, etc.) which respond with light, motion and sound.
Select the interactive mode required with the (DC, AC, TR, Dig) buttons at the top-right corner of the screen. The current mode selection can be seen on the button.

Let’s see a few examples. All examples work with the demo version of TINA.

Digital circuit with a keypad (Dig mode)

Digital circuit with a keypad

Click the picture to run this circuit online with TINACloud

Digital circuit with a keypad

You can play with the keypad and watch as the 7 segment display reflects the setting of the keypad.

Light Switch with Thyristor (DC mode)

Open the Thyristor switch.TSC circuit from the EXAMPLES folder or click the picture below, then press the DC button. You will see the following screen:

Light Switch with Thyristor

Click the picture to run this circuit online with TINACloud

Light Switch with Thyristor
\EXAMPLES\Thyristor switch.TSC

Click the On push button to turn on the light (you should click at the place where the cursor turns into a vertical arrow). The Thyristor and light bulb will turn on and remain on, even after the push button is released. You can turn off the Thyristor and the light bulb by clicking the S push button. The two ammeters show the currents in both states of the circuit.

Ladder Logic networks (DC mode)

A self -holding circuit (sometimes called a latch) circuit is realized by ladder logic in the LADDERL.TSC circuit file in the EXAMPLES\MULTIMED folder.

Initially the red LED will light.
Click on the START button (click when the cursor changes into a vertical arrow). OCR1 will close and remain closed, since the current flowing through OCR1 will keep magnetizing the CR relay coil.
Consequently the green LED will light. OCR2 will open and the red LED will turn off.
If you click on the STOP button you will break the self-holding circuit and the CR relay will release, the red LED will light again, the green LED will turn off.

Click the picture to run this circuit online with TINACloud

Ladder logic: Initial state or after clicking the STOP button.

Click the picture to run this circuit online with TINACloud

State after clicking the START button


VHDL circuits (VHD mode)

A great feature of TINA is that you can not only test but also modify VHDL circuits on the fly, including the VHDL code itself. Let’s see this through the example Calculator_ex.TSC in the Examples/VHDL/Interactive folder of TINA.

Click the picture to run this circuit online with TINACloud

VHDL calculator

This is a special calculator circuit controlled by the Opcode keypad. Operation codes 1, 2, 3 and 4 implement a basic four function calculator with arithmetic operations +, -, / and *. Further operations can be added by modifying the VHDL code inside the Control unit. First press the Dig button, as the Opcode is 1 you should see 4+2=6 on the LCD display. Try the other Opcodes with different settings on KeyPad1 and KeyPad2.

Now let’s implement the average operation to be assigned to Opcode 5. Double-click on the Control box and press Enter Macro. The VHDL code of the component will appear.


The actual calculations are made in the CASE statement at the end of the VHDL code. Let’s modify the code like this:

          CASE  c1  IS
                     WHEN 1   =>  o1  :=  a1  +  b1;
                     WHEN 2   =>  o1  :=  a1  -   b1;
                     WHEN 3   =>  o1  :=  a1  /   b1;
                     WHEN 4   =>  o1  :=  a1  *  b1;
                     WHEN 5   =>  o1  :=  (a1  +  b1) / 2;
                     WHEN OTHERS   =>  o1  :=  0; 
          END CASE;

Close the VHDL Editor Window and press the Dig button. Set 5 at the Opcode keypad and you should see the average of KeyPad1 and KeyPad2 settings on the LCD Display.

Average (a+b)/2 calculation with Opcode=5

Microcontroller (MCU) Circuits

TINA - Circuit Simulator for Analog, RF, Digital, MCU, HDL & Mixed Circuit Simulation and PCB Design
Copyright © 2016DesignSoft, Inc. All rights reserved.