CGS quad comparator and memory cell
CGS121 the CGS quad comparator memory cell module is the combination of a quad comparator "voting system" and memory cell (flip-flop). It can be built in many ways to suit the builder's needs. For example, if the memory cell functions are not required, they can be omitted. Alternatively, the panel presence of the comparators can be greatly reduced if the memory cell is the primary interest.
The comparator "voting" circuits can be used as OR, AND or 2 of 3, 2 of 4, 3 of 4 etc. type gates, depending on construction. Both positive responding and negative responding inputs are available.
Master AND and OR outputs monitor the four voting circuits. AND goes HIGH when the outputs of all four comparators are HIGH. OR goes HIGH when the output of at least one of the four comparators is HIGH.
The outputs of the four comparators are used to drive the flip-flop memory cell, providing SET, RESET, CLOCK and DATA inputs.
The purpose of the module is to allow the combination of various gate events and CVs to generate responses, rhythms, etc.
When the SET comparator output is HIGH, it will set the Q output (K) of the first Memory cell HIGH.
When the RESET comparator output is HIGH, it will set the Q(inv) output (L) of the first Memory cell HIGH.
Note that when both the SET and RESET comparator outputs are HIGH, both the Q and Q(inv) outputs of the first memory cell will be HIGH. When the inputs change, the memory cell will take on the state of the last of the two inputs to fall LOW.
The memory cell can also be programmed with a two-step procedure. The output state of the DATA comparator will be clocked into the first memory cell when the output of the CLOCK comparator goes from LOW to HIGH. At the same time, the previous state of the first memory cell will be loaded into the second memory cell, the result being available at outputs M and N.
A little on how it works
Construction
1/8W, 1/4W or small bodied 0.6W resistors may be used. 5% carbon resistors are sufficient, although metal film resistors can be used.
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 low profile components such as resistors and diodes first, followed by successively taller components.
Take particular care with the orientation of the polarized components, such as ICs, electrolytics, diodes, and transistors.
When inserting the ICs in their sockets, if used, 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.
The value of RLED is chosen via experimentation. Take an example of your chosen LED, and connected it via a 1k resistor to your supply voltage (+12V or +15V). For a more accurate test, add a diode in series. Look at the LED. If it dazzles you, you need to increase the value of the resistor. If it is too dark, reduce the resistor. Only old, low mcd LEDs will need a low value resistor. I prefer to use high mcd/super-bright/ultra-bright LEDs with resistors in the range of 10k (for red/amber/yellow) to 33k (for green/blue). Using high mcd/super-bright/ultra-bright LEDs reduces the switching noise placed by the LED on the power rails, reduces power consumption and reduces waste heat.
The unit will run on either +/-12 volts or +/-15 volts. Different values for the RO resistors are recommended for use with the different voltages. For +/-12 volts, use 1k2. For +/-15 volts, use 1k6 or something close to that (1k65, 1k62, 1k5).
The first time you power it up, I would suggest you do so with 22 ohm resistors in series with the positive and negative power rails. This should save the chips if you have made a blunder.
On the rear of the PCB are various surface mount pads. Two under the 4013 are for emergency use, if you find the second cell does not clock properly. In that case, the two pads connected with a short track need to be separated and a resistor (e.g. 10k) needs to be soldered there. The other location is for a capacitor (e.g. 100pF). Keep the relationship between them more or less the same, e.g. 1k : 1n. Increasing either value will improve the clocking at the cost of maximum speed. In all likelihood, this issue will only arrive if you have sub-standard chips.
Other surface mount pads, marked 47k, are used by the balance pots, and only need be installed if you use them, and do not put the resistors directly on the rear of the pots themselves.
The remaining surface mount pads are expansion points for adding more inputs to the voting circuits. If you are going to be adding a lot of extra inputs, it is probably easier just to mount the resistors directly on the panel jacks, and run a single wire back to the board. The wiring guides will show the details.
Pad ID | Function |
---|---|
+VE | + rail for panel use. (connects to bias pot wipers) |
VE | rail for panel use. |
0V | 0 volt rail for panel use. (LED return, sleeve connection on jacks, etc.) |
S | Set/comp 1 + input |
T | Set/comp 1 - input |
D | Data/comp 2 + input |
E | Data/comp 2 - input |
C | Clock/comp 3 + input |
B | Clock/comp 3 - input |
R | Reset/comp 4 + input |
Q | Reset/comp 4 - input |
KL | Memory cell 1 Q to LED anode |
KO | Memory cell 1 Q to output jack |
LL | Memory cell 1 Q(inv) to LED anode |
LO | Memory cell 1 Q(inv) to output jack |
ML | Memory cell 2 Q to LED anode |
MO | Memory cell 2 Q to output jack |
NL | Memory cell 2 Q(inv) to LED anode |
NO | Memory cell 2 Q(inv) to output jack |
YL | AND to LED anode |
YO | AND to output jack |
ZL | OR to LED anode |
ZO | OR to output jack |
There are three of each input available. The inputs are grouped in pairs, the non inverted and inverted inputs for each function being next to each other. The inner pair of each input group (e.g., ST) have the option of adding 47k SMT resistors on the rear, for the use with a bias pot. The bias pot affects both the non inverted and inverted inputs, allowing you to raise the trigger point on one while lowering it on the other. This allows the reduction of the number of pots needed on the front panel, compared with the use of individual pots for each input type. The bias covers the range from around -5V to +15V.
Using the PAN121 panel
Notes
- 330R refers to 330 ohms. 100n = 0.1 uF, etc.
- The module will work on +/-12 volts or +/-15 volts.
- PCB 6" x 2" with 3mm mounting holes 0.15" in from the edges.
Parts list
This is a guide only. Parts needed will vary with individual constructor's needs.
Module with PAN121 | ||
Part | Quantity | |
Resistors | ||
---|---|---|
1k | 10 | |
39k | 1 | |
47k | 9 | |
100k Lin pot | 4 | |
100k | 31 | |
4M7 | 8 | |
RO (1k2 or 1k6 see text) | 10 | |
RLED (pick to suit LED) | 10 | |
Capacitors | ||
100nF (=0.1uF) Ceramic Monolithic | 5 | |
10uF electrolytic | 2 | |
Semi's | ||
1N4148 | 13 | |
BC547 or sim | 10 | |
4013 (CD, HEF, MC1) | 1 | |
TL074 | 1 | |
3mm LED | 10 | |
Misc. | ||
Ferrite bead | 2 | |
Hookup wire | ||
8-pin ribbon cable jumper (1.5" to 2.0") | 1 | |
Blue banana jack (Emerson) | 10 | |
Red banana jack (Emerson) | 10 | |
Alt color banana jack (Emerson) | 8 | |
Davies 1900h knobs | 4 | |
20mm long 3mm standoff | 4 | |
30mm long 3mm bolt | 4 | |
3mm nut | 8 | |
MTA-156 connector 4Pin | 1 | |
MTA-156 header 4Pin | 1 | |
CGS121 VER1.0 PCB | 1 | |
PAN121 VER1.0 PCB | 1 |
Module without PAN121 | ||
Part | Quantity | |
Resistors | ||
---|---|---|
1k | 10 | |
39k | 1 | |
47k | 1 | |
47k 1206 SMT | 8 | |
100k Lin pot | 4 | |
100k | 29 | |
4M7 | 8 | |
RO (1k2 or 1k6 see text) | 10 | |
RLED (pick to suit LED) | 10 | |
Capacitors | ||
100nF (=0.1uF) Ceramic Monolithic | 5 | |
10uF electrolytic | 2 | |
Semi's | ||
1N4148 | 13 | |
BC547 or sim | 10 | |
4013 (CD, HEF, MC1) | 1 | |
TL074 | 1 | |
Misc. | ||
Ferrite bead | 2 | |
MTA-156 connector 4Pin | 1 | |
MTA-156 header 4Pin | 1 | |
CGS121 VER1.0 PCB | 1 |
CC-BY-NC
Readers are permitted to construct these circuits for their own personal use only. Ken Stone retains all rights to his work.
See also
References
- Quad Comparator and Memory Cell for music synthesizers. by Ken Stone, 2013, with permission of the author - archived
External links
- CGS121 BOM at BOMpiler
Suppliers
- CGS121 Quad Comparator and Memory Cell, revision 1, Elby Designs