Quad Logic Gate
for music synthesizers.


 

The Quad Logic Gate is a very simple module that can be built in one of five flavors : XOR, OR, AND, NOR and NAND. It is a simple way to gain additional control of gate and trigger pulses within a system. It can also be used for some simple signal multiplying. The XOR is well known as a square wave "ring modulator", though interesting effects can also be generated using the other configurations. Each gate has an in-built LED to indicate the status of the output of that gate.

With some chip types, it is also possible to have some of the gates presented on the panel as basic inverters. For XOR and NOR gates, tie the disused input of that gate to 0V. For NAND gates, tie the disused input of that gate to +15V. It is not possible to create inverters with AND and OR gates.

A little on how it works:


The schematic of the Quad Logic Gate.

Pins A B CDEFGHIJKLM
Gate 1I1I1567321123O1Out 1
Gate 2I2I21213141098121311O2Out 2
Gate 3I3I3321567654O3Out 3
Gate 4I4I412131410988910O4Out 4

Connection/pin identification table for the above
diagram. Note that there are two LM324 chips involved,
one for In 1 and 2, the other for In 3 and 4.


A single power rail is used.

Each input is configured to detect a voltage over approx. 2 volts. When this voltage is reached, a logic HIGH is presented to the corresponding gate input. The output will react to what is present at the inputs, and the result, depending on the gate chip used, is buffered by the emitter follower, and used to drive the LED and output jack.

4001
NOR
IN aIN bOUT
001
010
100
110
4011, 4093
NAND
IN aIN bOUT
001
011
101
110
4071
OR
IN aIN bOUT
000
011
101
111
4081
AND
IN aIN bOUT
000
010
100
111
4030, 4070
XOR
IN aIN bOUT
000
011
101
110
Truth tables for the different logic gates that can be used in this circuit.

Construction


The component overlay. Note that this version of the board (the prototype run) incorrectly connects to the negative rail. The ferrite bead on the negative rail should be omitted (marked in red), and a link used instead of the corresponding capacitor (marked in blue). Use LM324, not TL074 as marked.


The corrected version of the PCB. Connections can be determined from the circuit diagram.

Before you start assembly, check the board for etching faults. Look for any shorts between tracks, or open circuits due to over etching. Take this opportunity to sand the edges of the board if needed, removing any splinters or rough edges.

When you are happy with the printed circuit board, construction can proceed as normal, starting with the resistors first, followed by the IC socket if used, then moving onto the taller components.

Take particular care with the orientation of the polarized components such as electrolytics, diodes, transistors and ICs.

When inserting ICs into sockets, take care not to accidentally bend any of the pins under the chip. Also, make sure the notch on the chip is aligned with the notch marked on the PCB overlay.

In this case I recommend using a socket for the CMOS chip, as this will allow different chips to be substituted for the purpose of experimentation.

Valid choices are:

  • 4030 or 4070: XOR
  • 4001: NOR
  • 4011 or 4093: NAND
  • 4071: OR
  • 4081: AND

There are four LED return pads, marked LR1-4. The order in which these are used is not critical. Each pair of inputs to a gate share the same designator. The order in which each pair is wired to the panel sockets is not critical.

Notes:

  • The TL074 can be convinced to work in the circuit instead of the LM324, though as it's common mode input range does not extend to the negative rail (in this case 0 volts), the circuit may require modification. Of two devices tested in the prototype, seven of the eight op-amps worked, while the eighth failed. Decreasing the value of the 100k in the reference voltage divider cured this problem, at the cost of increasing the trigger sensing point. The reason why the prototype board has TL074 specified is that it was partially configured to work with +/- 15 volts, though I mistakenly used the single supply input configuration with it. It must have been late....
  • While untested, the module should work on 12 volts.
  • A 10 to 22 ohm resistor can be used instead of the ferrite bead. If you don't care about power-rail noise, just use a link instead.
  • PCB info: 6" x 1" with 3mm mounting holes 0.15" in from the edges.
  • Please email me if you find any errors.

PartQuantity
Capacitors
100n2
10uF 25V 1
Resistors
680R4
820R4
10k8
15k1
100k17
Semi's
1N4148 or sim.8
BC547 or sim.4
CMOS Logic chip1
LM3242
Misc.
Ferrite Bead (or 10R resistor)1
0.156 4 pin connector1
CGS39 PCB1

Parts list

This is a guide only. Parts needed will vary with individual constructor's needs.

If anyone is interested in buying these boards, please check the PCBs for Sale page to see if I have any in stock.

Can't find the parts? See the parts FAQ to see if I've already answered the question. Also see the CGS Synth discussion group.
 

Article, art & design copyright 2001 by Ken Stone

Modular Synth Home

Disclaimer