The keyboard can be simulated in analogue or digital mode. In analog mode, each key has a resistor that varies its resistance according to the position of the corresponding selector. The switch is not quite ideal, in that the resistance can not change from 0 to infinity, but must always have a finite positive value. By proper selection of the RESON and RESOFF resistances, they can be effectively zero and infinity in comparison to other circuit elements.

In digital DROUT mode, the rows correspond to the outputs while the columns are treated as inputs. In digital DCOUT mode, columns correspond to outputs while rows are treated as inputs.

During interactive simulation, the position of the switches can be changed by clicking on them with the mouse.

The keyboard lines are numbered from top to bottom. key 1 is positioned on R1C1.

Parameters

Parameter Description Units Default
SWMODE Switch mode. Select from: ANALOG, DROUT, DCOUT. ANALOG
RESON On resistance. Used in analog mode only. Ohms 10mΩ
RESOFF Off resistance. Used in analog mode only. Ohms 1GΩ
TSWITCH Switching time. Within the specified time, the resistance value varies continuously between the current value and the new value. Must be greater than zero. Used in analog mode only. s 1ms
IN_MODE Inputs mode. Used in digital mode only.   IN
OUT_MODE Outputs mode. Used in digital mode only.   OUT
IOMODEL The name of an I/O model, which describes the device’s loading and driving characteristics. Used in digital mode only.   DGTDEFIOMODEL
POWER_NODE Digital power node name. Is the node used by the interface subcircuits which connect analog nodes to digital nodes. Used in digital mode only.   $G_DPWR
GROUND_NODE Digital ground node name. Is the node used by the interface subcircuits which connect analog nodes to digital nodes. Used in digital mode only.   $G_DGND