Single-Key Shifted Functions

See all articles from Sinc-Link v2 n3
Publication: Sinc-Link
Pub Details: Sinc-Link v2 n3 (Volume 2, Issue 3)
Pages: 9-10

CIRCUIT DESCRIPTION

Shifted functions require that the SHIFT key be held while striking the desired symbol/function key. It is evident from this that two circuits are involved, and that they must be activated simultaneously (or, at least in the specified sequence). It is also important that they be kept electrically isolated from each other to prevent “cross-talk” through the grid system.

The following paragraphs describe two methods for obtaining shifted functions with standard single-pole keyboard switches. The first is the Diode circuit, which is extremely simple, but which works for only the first seven functions listed in Table 1. However, these seven certainly include some of those that you will want.

The second method uses a Transmission Gate, which RCA calls a Quad Bilateral Switch; “Quad” because there are four in each package, and “Bilateral” because, when closed, they will pass signals in either direction.

THE DIODE METHOD

Figure 1 shows a Shifted-Function (S/F) key using the diode circuit. The figure also lists the seven functions for which it can be used. The desired function is determined by the selected data line on the keyboard to which Diode No. 2 is connected. This same circuit, using four “typical” keys, is shown in Figure 2.

Figure 1. Single-Key Shifted Function Using Diodes
Figure 1. Single-Key Shifted Function Using Diodes

The diode method works only because the two circuits involved (the SHIFT circuit and each of the seven Function circuits) share the same KB0 output line (as shown in Table 1). The diodes are used to maintain isolation between the two “D” lines; diodes are one-way devices, and any signals that arrive at the key switch through one diode cannot go back out through the other. Because they are one-way, diodes are usually marked with a band at the “cathode” end. It is the end opposite the band which must be connected to the key switch terminal.

Figure 2. Typical Diode Circuit Wiring
Figure 2. Typical Diode Circuit Wiring

BILATERAL SWITCH METHOD

This device is a non-mechanical, solid-state switch which closes when a control signal is applied. (See figure 3.) It is like a relay whose contacts close whenever power is applied to the magnetic coil. In this arrangement the keyboard switch no longer carries the data signals. It is used instead to supply the 5-volt control signal which holds the gates (switches) closed.

Figure 3. Two, Separate, Shifted-Function Circuits Using Quad Bilateral Switch CD4066
Figure 3. Two, Separate, Shifted-Function Circuits Using Quad Bilateral Switch CD4066

Each key uses two of the four bilateral switches in the IC package. Because each key uses one half of the IC, the other half may be used with another key for a second function. Then, too, several IC’s can be added to the basic circuit. (Two are strung together in Figure 4.)

Figure 4. Typical Bilateral Switch Wiring
Figure 4. Typical Bilateral Switch Wiring

You will probably install the IC’s on a separate mounting board, which can be attached to the keyboard with standoffs, screws and nuts, or with epoxy glue.

1st SWITCH   2nd SWITCH    FUNCTION    1st SWITCH   2nd SWITCH    FUNCTION
CONNECTION   CONNECTION    OBTAINED    CONNECTION   CONNECTION    OBTAINED

KB0/D6 (SH)  KB0/D1 (1)    EDIT        KB0/D6 (SH)  KB2/D6 (X)    ;
    |        KB0/D2 (Q)    " "             |        KB2/D7 (K)    +
    |        KB0/D3 (0)    DELETE          |        KB2/D8 (M)    >
    |        KB0/D4 (A)    STOP            |        KB3/D1 (4)    TO
    |        KB0/D5 (P)    "               |        KB3/D2 (R)    <=
    |        KB0/D7 (ENT)  FUNCTION        |        KB3/D3 (7)    ↑
    |        KB0/D8 (SP)   £               |        KB3/D4 (F)    FAST
    |        KB1/D1 (2)    AND             |        KB3/D5 (U)    $
    |        KB1/D2 (W)    OR              |        KB3/D6 (C)    ?
    |        KB1/D3 (9)    GRAPHICS        |        KB3/D7 (J)    -
    |        KB1/D4 (S)    LPRINT          |        KB3/D8 (N)    <
    |        KB1/D5 (O)    )               |        KB4/D1 (5)    ←
    |        KB1/D6 (Z)    :               |        KB4/D2 (T)    <>
    |        KB1/D7 (L)    =               |        KB4/D3 (6)    ↓
    |        KB1/D8 (.)    ,               |        KB4/D4 (G)    LLIST
    |        KB2/D1 (3)    THEN            |        KB4/D5 (Y)    >=
    |        KB2/D2 (E)    STEP            |        KB4/D6 (V)    /
    |        KB2/D3 (8)    →               |        KB4/D7 (H)    **
    |        KB2/D4 (D)    SLOW        KB0/D6 (SH)  KB4/D8 (B)    *
KB0/D6 (SH)  KB2/D5 (I)    (

Table 1- Switch Connections for Shifted Functions

INSTALLATION

To operate the integrated circuits, power and ground wires must be added to the cable connecting the keyboard to the computer. If a 16-wire ribbon cable was used, two of the extra wires will handle the power requirements nicely. If two wires must be added to the cable, use the thinnest, flexible, insulated wires. They will be required to carry very little current.

The +5VDC and GND terminals on the computer board are indicated in Figure 5. At the keyboard end it is best to connect the power and ground wires to two insulated terminals. (If the keys are mounted on a PC board, the terminals can be a couple of brass screws in an unused area of the PC board.)

DIODE CIRCUITS. For any of the first seven functions listed in Table 1, you will certainly want to use the diode method, and save the IC’s for the other 32 functions. If you wish, you can run the diodes directly to the data lines as shown in Figure 1, covering the entire “string” with insulated sleeving. However, especially if you have several keys that use the diode circuit, the layout shown in Figure 2 will be much neater. The diodes will take up very little space on any mounting board.

BILATERAL SWITCH CIRCUITS. The CD4066 IC’s are CMOS devices, which are susceptible to damage from static electricity, before and during installation. This is the reason we recommend using DIP sockets, rather than soldering them directly into the circuit. Leave them in their conductive-foam packages until you are ready to install them. Avoid touching the terminals with your fingers – handle them by the ends of the plastic case. If the terminals must be bent inward to fit the socket, press the whole row against a flat metal surface.

The “typical” circuit shown in Figure 4 has several “unreal” qualities. First, the keys will not be located so conveniently, but remember, you can run the wires anywhere. Also, we show eight data lines at the bottom of the figure. Actually, you would want to conserve the number of wires to the keyboard, so the two KB1’s would be connected together at the IC terminals, and a single line would serve both circuits. (The same applies to the two D1’s, etc.)

Figure 5. Power Connections at Computer Board
Figure 5. Power Connections at Computer Board

PARTS REQUIREMENTS

For reference, the following listing of the electronic components includes current Radio Shack catalog numbers and prices. You must determine the quantities.

Description                   Type          Cat. No.   US $/Qty

Quad Bilateral Switch         CD4066        276-2466   .99
Diodes, Silicon               1N914         276-1122   .99/1[illegible]
                                            276-1620   1.98/50
DIP IC Sockets                (14-pin)      276-1999   .89/2
Grid Board (0.1-inch          2-3/4" x      276-158    1.95
hole-spacing) or              3-3/4"
equivalent                    5-1/2" x      276-161    2.95
                              3-3/4"