By establishing a standard control
voltage-to-frequencey system it is possible for a discrete input source (such as a keyboard) to drive
the VC input and produce exact musical note frequencies. It is conventional to define a control voltage range
of 0-5V to correspond to the music note range C1 to C6. This implies exactly 1.0000 volts per octave - e.g. to
produce middle C (261.63Hz) the control voltage would be 3.0000V. Each octave is divided into 11 intervals
which corresponds to a control voltage of 1V / 11 = 0.0909V per note. For example, the note A4 would be
produced with the control voltage 3.0000 + (9*0.0909) = 3.8181V.
It is assumed the device driving the AS3340 CV input is capable of producing these exact discrete control voltage values. A common such device is a keyboard which usually produces a digital MIDI output, which is then converted to discrete control voltages by a MIDI-to-CV converter module. Some keyboards supply direct CV outputs with no coverted required. When used with a properly tuned AS3340 pressing a key produces the exact specific control voltage for that note, which drives the AS3340 to produce the proper musical frequency.
To understand how the AS3340 can be easily tuned to a 1 Volt per octave scale (and 0V = note C1) it is important to look at the different building blocks that affect the tuning and how these blocks can be trimmed in a logical order. Typically the AS3340 is used in a circuit with two trimmers that must be iteratively tuned several times in order to achieve tuning over the C1 to C6 music scale. It may take up to 10 iterations of adjusting the two trimmers to achieve optimal tuning.
The tuning technique described here uses a circuit with four trimmers which are adjusted only once, in a specific order. This is a simple four-step tuning procedure which results in a stable optimal tuning with no iteration and and no re-adjustments.
This method is superior to the one or two trimmer adjustment procedure in the original XX3340 datasheets where two trimmers are used, which need to be adjusted repeatedly to come to a final 1V/Oct tuning that spans from C1 to C6 over a control voltage range between 0.000V and +5.000V. Additionally the two trimmer adjustment procedure does not guarantee that the AS3340 will be in its optimal temperature compensation range at the 1V/Oct scale. The four trimmer procedure comes much closer to the optimal working conditions for the AS3340 and is also much easier to perform.
There are four building blocks in the AS3340 that affect the 1V/Oct tuning. Note that naming conventions for resistors and currents are taken from the AS3340 datasheet.
It is important to understand that for the best tuning all four blocks need to be adjusted. This is simply best practise and actually makes the trimming process easier than when some trimmers are replaced by fixed resistors and only one or two trimmers are used. Using less trimmers simply results in a less well tuned circuit.
This may be a bit confusing as the original 3340 datasheet does not properly explain this and suggests one can do with two trimmers. But that will not give the best results. Using the two trimmer method implies that both trimmers need to be adjusted alternatingly and it may take over ten times of readjusting the trimmers alternatively until one gets the proper point of operation. That is a difficult method and definitely not recommended for factory trimming (e.g. trimming a circuit which is then sent to a customer to use). Using the four trimmer method requires each trimmer to be adjusted only once and directly to its optimal setting. Trimming four trimmers only once is much easier than going back and forth over two trimmers and in the end not being sure if all is optimally adjusted. So, it is highly recommended to study this four trimmer procedure thoroughly before making a design decision on which method to use.
Note that both the tempco circuit (D) and the exponential converter reference current (A) need to be set only once. The advantage of these being trimmed to their optimal performance is that it will give stable temperature correction and a reference pitch that makes the final tuning of the 1V/Oct scale much easier. The (D) and (A) settings will hold for a long time. When these two ‘blocks’ are set correctly they effectively compensate for chip to chip variations, resistor tolerances and variations in the capacitance of the timing capacitor between different oscillators. Since they can be set individually without influencing each other it then becomes straightforward to tune the actual 1V/Oct scale later (an adjustment that may have to be made more often).
The exponential converter consists of opamp A2 and the matched transistor pair Q1 and Q2. It is the classic ‘textbook’ exponential converter design and further knowledge of this circuit is assumed.
Q3 simply provides a copy of the output current to be used for optional high frequency tracking adjustment and as such does not take part of the main trimming procedure. Its an option for top-end designs and high frequency tracking can be trimmed with an optional fifth trimmer after the basic trimming procedure is completed and as described in the AS3340 datasheet.
The 1V/Oct input CVs are mixed and converted to a current by the input CV mixing opamp A1 which flows into the base of Q1 and a resistor Rs between the base of transistor Q1 and ground. The base of Q2 is directly connected to ground.
The Q1 transistor is in the feedback loop of the opamp A2, while the other transistor Q2 sources current to charge a timing capacitor in the triangle wave oscillator core.
When the base of both Q1 and Q2 are connected to ground a default current flows to the triangle wave oscillator core,
causing a pitch of a certain frequency. This pitch will be used as the reference pitch, when the input CV to the base of
transistor Q1 is at 0V. This pitch can be set by changing the value of the resistor Rr on pin 13, which supplies the
reference current to the opamp in the exponential converter. The situation where there is no current flowing into or out of the
base of Q1, e.g. when the base of both transistors are connected to ground, is the point where the transistor pair is the least
sensitive to temperature changes. When the transistors are on the same silicon substrate and have the same temperature the
effects of an overall change in temperature can be neglected. Meaning that when the reference pitch is set to a pitch where
being ‘out of tune’ is most noticeable, other factors that can detune the oscillator become less noticeable to the human ear.
A good reference pitch is 1046.5 Hertz, known better as note C6 on the musical scale. A trimmer can be used in series with
resistor Rr from pin 13 to the positive power supply rail, or Rr can be connected to the taper of a trimmer between ground
and the positive power supply rail. The relationship between this reference current and the pitch is linear, and for a stable
tuning it requires the power supply voltages to be rock stable. As an alternative for a connection to the power supply voltage
it can also be connected to a stable reference voltage source added to the circuitry.
It is also recommended to apply a stable reference voltage at pin 9 of about 1/3 of the power supply voltage or at least use a large stabilizing capacitor from ground to pin 9. Pin 9 reflects the upper trip point voltage for the trianglewave and is internally generated by a resistor divider in the chip between ground and the positive supply voltage. This means that any instability in the power supply voltage will ‘modulate’ this trip point and detune the pitch of the triangle wave as it reaches the 'modulated' trip point earlier or later. As the internal resistors are around 7kΩ to ground and 14kΩ to the positive supply voltage a low impedance output from an external opamp can easily override this voltage created by the two resistors. But this voltage must be close to the 1/3 of the positive power supply voltage, else other internal circuitry can start to behave erratically. There is a practical margin of around 10% to keep the chip in its stable zone.
So, when a stable voltage reference is present one can use a voltage divider from this reference current and buffer it with an opamp and connect the opamp output straight to pin 9. When the power supply is rock-stable one can also buffer the voltage at pin 9 and use it as a reference voltage for further waveshaping processing, e.g. to invert the sawtooth output to a bipolar downsloping sawtooth wave or create a 50% duty cycle squarewave by comparing the voltage on pin 9 with the sawtooth wave output with a high imput impedance comparator or FET opamp.
The tuning steps are as follows:
Here is a full explaination of each step of the trimming procedure:
To be able to trim the currents into pin 1 and pin 2 as equal the Rz as drawn in the datasheet can be changed by adding a 5.6K resistor in between the trimmer and the minus power supply voltage on pin 3. The top 24k resistor can then be reduced to e.g. an 18k resistor. A millivolt meter is connected between pin 2 and the connection point of the 5k6 resistor in the Rz and the trimmer. The trimmer is now adjusted until the voltage on the millivolt meter reads 0 mV. It is adviceable to add two testpins on the PCB, one next to and connected to pin 2 and one that connects to the point between the second 5k6 resistor and the trimmer in the Rz resistance from pin 3 to pin 1.
Trimming the reference pitch to C6 makes the rest of the tuning procedure a lot easier. On a PCB design one can put a two pin header next to Rs, so if one places a jumper on this header one can conveniently shortcircuit Rs and then set the reference pitch. After this the header can be removed permanently. When a trimmer is used in the way shown in the schematic and when the positive power supply voltage is +12V then the trimmer range is one octave when the resistance of the trimmer and the resistor in series from the trimmer to ground are equal. Eventually you would want to find values for this series resistor and the Rt resistor to get a +/-10% trimming range around e.g. the C6 note.
First it should be noted that when all 100k input resistors are connected to ground the voltage over Rs is not 0V, as one would expect from a standard opamp. The opamp internally adds quite a large offset voltage with the idea that a 0V CV input voltage would produce the lowest note of the scale, which is most probably not the C6 reference pitch but rather the C1 note. Most probably this rather large offset voltage was implemented because the original CEM3340 was designed with digitally controlled polyphonic synthesizers in mind. In the late seventies the then available microcontrollers invariably used a single +5V power supply and associated DA-converters could produce CVs over five octaves within a 0V to +5V range. That the CEM3340 would accept such a CV range directly was probably quite convenient in those days, but for this a large internal voltage offset was necessary, large enough to push the oscillator some four to five octaves down from the C6 reference pitch for a 0 V input CV.
It is important to understand that when changing the value of Rs to trim the 1V/Oct scale, the scale pivots around the C6 reference pitch, meaning that while trimming pitches that are below C6 go down in pitch and pitches above C6 will actually go up. So, the reference voltage to tune the 1V/Oct scale from is not a 0V input CV but the CV where the oscillator produces the C6 note at 1046.5 Hz! This means that one first has to find that C6 note and then trim Rs from that point on. This is very important to understand! Lets assume that there is a 5-octave analog keyboard, or that a MIDI->CV converter is available that gives a 0 V to +5V output over five octaves. The 360k resistor between pin 15 and the positive power supply rail in the datasheet schematic is replaced by a trimmer, or better a resistor and trimmer in series.
Note that all other CV inputs on the 100k resistors must be at ground, else they interfere with the trimming procedure. This applies directly to tuning knobs that may be hardwired to some of the 100k input resistors. In this case it would pay to implement a +5.000 V reference source and connect a ‘coarse’ tuning knob and a ‘fine’ tuning knob between ground and this +5.000 V reference. In this case tuning becomes especially easy as instead of using an external CV source one can now fully open the ‘coarse’ knob to the +5.000 V to ‘refind’ the C6 note with the trimmer from pin 15 to V+, and then close the ‘coarse’ knob to 0.000 V to adjust Rs to ‘find’ the C1 note. In this case the ‘fine’ knob should of course be at a twelve o’clock position. The coarse knob will span exactly five octaves.
Reference pitch and temperature compensation circuitry can be factory trimmed and shouldn’t need ‘field retrimming’ later. This means that end users could retrim the trimmers on pin 15 and pin 14 them selves: first the pin 15 trimmer to get a C6 for a +5.000V CV, and then the pin 14 trimmer to get a C1 at 65.4 Hz for a 0.000V CV. When end users would have a five octave 1V/Oct analog keyboard or sequencer, or a five octave 1V/Oct MIDI->CV converter, and a digital reference synth they can actually trim the AS3340 oscillator board by ear, without need for measurement devices. As long as they trim the C6 note first and only after that the C1 note.
The AS3340 can be purchased here: https://cabintechglobal.com/as3340-dil