Hades logoHades applet banner
Interactive switches

applet icon

The image above shows a thumbnail of the interactive Java applet embedded into this page. Unfortunately, your browser is not Java-aware or Java is disabled in the browser preferences. To start the applet, please enable Java and reload this page. (You might have to restart the browser.)

Circuit Description

This circuit demonstrates the input switches used to generate input values to other Hades simulation components during interactive simulation. Each of the switches is connected to a LED, used to show the current output value of the switch, while the timing diagram on the right side illustrates the behaviour of the switch. As long as the simulation is running, you can use mouse clicks to toggle the switch output values.

The most important input switch is called Ipin (that is, 'input pin'). At the start of the simulation, every Ipin component automatically generates a user-settable fixed output value. The default ouptut value is U (undefined), but this can be changed via the Ipin property sheet. The first mouse click on an Ipin will change its output value to 0. After that, each subsequent left button mouse click toggles the output value between the values 1 and 0. However, if you hold down the SHIFT-key while clicking the left mouse button, the Ipin will also generate the values Z (tri-state) and X (undefined).

The next switch is IpinLarge, an Ipin with a bigger graphical symbol. This component is sometimes useful in large schematics, because it is somewhat easier to hit with the mouse.

Each mouse click on a PulseSwitch component generates a 1-pulse of fixed duration, after which the output value returns to its default value of 0. The pulse duration can be specified via the property sheet. Note that you can connect an inverter to the pulse switch in order to generate 1-0-1 instead of 0-1-0 pulses.

A PowerOnReset component automatically generates a fixed sequence of the output values X-0-1 at the start of the simulation, where the timing parameters can be specified via the property sheet. However, once the initial reset sequence is finished, you can also use a PowerOnReset component as a normal input switch; each mouse click will toggle the output value between 0 and 1.

For reference, the Java class names of the input switches are hades.models.io.Ipin, hades.models.io.IpinLarge, hades.models.io.PulseSwitch, and hades.models.io.PowerOnReset.

Print version | Run this demo in the Hades editor (via Java WebStart)
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German)
Impressum http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/00-intro/05-switches/switches.html