Erik Margan

Ironing RIAA:

Der Wohltemperierte RIAA Verstärker

(A Well Tempered RIAA ) (40 years too late, but finally correct)

Ljubljana, August 2013

Author’s circuit realization: a pair of miniXLR connectors at the input, with DIL switches setting the input impedance, another miniXLR pair for differential output, an RCA chinch pair at the rear for single-ended output, and a 9-pin sub-D connector for external DC power. The small box houses the inverse passive circuit for testing. An integral design feature is the complete lack of IP address for IoT connectivity, making the system virtually unhackable. For other details of the circuit design and performance estimation please see the text. Ironing RIAA E. Margan

Abstract

Described is a complete design procedure of a vinyl record playback amplifier equalizer with perfect conformance to the RIAA standard, with some additional features and possible circuit variations for obtaining lower noise and lower , as well as cartridge loading impedance adjustment, making it adaptable for various cartridge types. Explained also is the source and the cause of the most common design error often made when calculating the component values and a calculation procedure is shown which results in a perfectly flat equalized frequency response. An easy way of checking the actual circuit performance is also demonstrated.

Performance Illustrations

The startup of an exponentially decaying sine wave at 2 kHz (left) and 18 kHz (right).

Square wave response at 1 kHz (left) and 23 kHz (right).

The oscillograms illustrate the performance of the actual RIAA equalization circuit as described in the article, driven from an inverse RIAA encoding passive circuit (as described in Appendix 1 ). In these tests the equalizer circuit was used in a ground referenced input signal mode, however it is also capable of accepting a signal from a floating source. The exponentially decaying sine wave with a frequency of 2kHz and 18kHz with a 5Hz repetition rate indicates both a clean transient start and a symmetrical exponential decay, testifying to the excellent stability of the DC correction integration loop. The square wave of 1 kHz and 23 kHz testify also of clean high frequency signal handling, as well as perfect equalization matching. With a suitable high quality cartridge the system bandwidth of up to 60 kHz is achievable, with noise level being down to 81 dB below the nominal 5 mV (at 1 kHz) input signal level.

— 2 — Ironing RIAA E. Margan

Motivation

The temptation to give such an odd title to the article was simply irresistible. On one hand, I used to be Switched on Bach [1] for quite a while. On the other hand, from about 1970 onward, when I began fiddling more seriously with Hi-Fi, I have seen so many mistuned RIAA playback equalization networks, both in literature and in marketed products, that the idea came up almost naturally. Regardless of whether the circuits had passive, active, or hybrid equalization, most of them were “tuned” by simply assigning most convenient values to get them numerically close to the required standard time constants, without bothering much about the resulting frequency response, which was often far off the usually tolerable ±0.5 dB band. Also, those rare circuits that were better and flatter in the audio mid band were often peaking or sagging at either the low or the high frequency extreme, most often both. And like it were not enough, many circuits exhibited excessive noise, low dynamic headroom, compromised bandwidth and slew rate, improper pickup loading, and even influence of poor feedback factor on the amplifier’s input impedance. In 1974 I got an HP-29C, a pocket calculator with 98 registers (!) of continuous memory. One of the first tasks I programmed was a routine for the optimization of the RIAA correction network to standard component values. At the time, precision low tolerance components were not as common as they are today, so it was necessary to combine measured components in parallel to obtain the required time constants (a technique still valid today). However, my first circuit built upon that optimization (using discrete transistors) was not accurate enough for reasons explained later in the text, and was also too noisy. My next circuit using integrated operational was only marginally better. Only my third circuit, built in 1978, was worth the ‘equalizer’ title. With the introduction of digital music media, my interest in audio slowly faded, although I did return to power amplifier design on a few rare occasions. Recently however, I was surprised to learn that some general interest in old analogue techniques is still relatively high. One might think that today there is not much to be said on the RIAA subject after all the work done by people like Peter J. Baxandall [2] , John Linsley Hood [3] , StanleyLipshitz [4] , and numerous others. But as a recent quick flyby over some audio web pages revealed, there are still many misconceptions and prejudices. Another surprise was a discovery that there are still many people willing to build such things by themselves, motivated essentially by the desire to learn, in spite of the cost of such an endavour being many times higher than buying a finished product. So here I present this text for all analogue enthusiasts, young and seasoned, and I hope some might find it entertaining to read and possibly useful to build.

— 3 — Ironing RIAA E. Margan

The Reference

The RIAA directive (actually a silent agreement between several record manufacturers, implemented between 1954-1958, after a number of similar previous proposals) brought standardization to the conversion of the velocity encoded amplitude of the microgroove record cutter head into an equalized flat spectrum upon reproduction. The velocity encoding was chosen as a convenient technique to maximize the groove density on vinyl records in order to achieve ‘long playing’ time, hence the LP acronym for vinyl media (some interesting history can be found here [5] ). It is often stated in literature that the standard defines some particular ‘corner frequencies’ or ‘3 dB frequencies’ to comply with the inverse of the cutter system response. That is not quite correct, as will be shown. In fact, the encoding standard only declares the following three time constants : 7 µs ...... response zero at  = 1 rad s 7 7 µs ...... response pole at  =  1 rad s 7 7 µs ...... response zero at  = 1 rads 7 Of course, the equalization network must have the poles in place of the zeros, and a zero in place of the pole. The approximate angular frequencies are stated here only for convenience, and it is important to note that those equivalent frequencies (50 Hz, 500 Hz, 2122 Hz) are not the frequencies at which the response deviates by 3 dB from the asymptotic response. That would be true only in a circuit with a single time constant, but not for the combination having the time constants relatively close to each other. This will become evident by calculating the transfer function magnitude within the frequency domain of interest, and at those particular frequencies. The cutter system model equation based on the three time constants can be written in the complex Laplace space in the polynomial form:   (1)  where denotes the complex frequency; see Appendix 1 for a complete circuit analysis. Replacing the zeros and the pole by their associated time constants,  7 , it is possible to write: 7 7  7  (2) 7 7 7  It must be realized that the function defined like this has a response which diverges to infinity with increasing frequency. This implies infinite energy, and such a system is physically impossible to realize, because any real system will eventually encounter a bandwidth limit. In the actual implementation of the encoding function this limit is usually set at 50 kHz (7 µs). Also, the disk cutting system has an implicit second pole at 50 kHz imposed by the cutter mechanics. Neither of these has ever been included in the official standard, even if being physically unavoidable. Likewise, the driving amplifier bandwidth, though much higher, at around 400 kHz nd (7 µs), was also disregarded. Moreover in most cutting systems a 2 -order Butterworth low pass filter at 50 kHz is employed to prevent any possibility of high frequency overdrive and consequent adjacent groove contact or overlap.

— 4 — Ironing RIAA E. Margan

For these reasons the development of the correct equalization must include at least one additional pole, and we are going to show that by including 7 into the reference inversion response makes the designer’s life much easier. The new encoding equation with four time constants is: 7 77 7  7  (3) 7 77  7 7 Similarly a function with five time constants can be written as: 7 777 7  7  (4) 7 777  7 7 Because of these additional poles, the response at high frequencies does not rise indefinitely, as is shown in Fig.1 . This is important because most equalization amplifier configurations also deviate in this region, and so do the playback heads with their mechanical (needle, cantilever, magnet) and electrical (coil and its load) resonances (usually between 10–30 kHz), and those also need to be taken into consideration.

10 f [Hz] a [dB] |F3(s)| 0.1 -47.44 |F4(s)| 0 10 -47.28 20 -46.81 |F5(s)| 50 -44.47 –10 500 -30.18

1000 -27.53 ]

B 2120 -24.68

d [ 20000 -8.58 a –20 50000 -3.12 400000 -3.13

–30

–40

–50 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.1: Absolute value of the transfer functions (magnitudes) normalized to the same value at DC. The tabulated numerical values are given for . At 20 kHz is about 1dB higher, and crosses 0dB at 50kHz. approaches 0 dB at 1 MHz. Because of the particular circuit topology of the equalization network, we shall base our discussion on , equation (3), using these four time constants: 7 µs 7 µs 7 µs 7 µs (5)

— 5 — Ironing RIAA E. Margan

We shall include other bandwidth limitations at a later stage, after the basic circuit response has been correctly established. When plotting any complex function we usually calculate separately its magnitude and phase angle as functions of frequency (Bode plot, [8] ). The phase is the arctangent of the imaginary to real part ratio, : arctan , but we are not particularly interested in this here. We are more concerned with the magnitude (absolute value), which is the square root of the product of the function with its own complex conjugate (to denote this explicitly we set = 1 ):

= =  = (6) Note that equations (2), (3) and (4) have different multiplication factors owed to the different number of time constants, which effectively means different attenuations, so in order to make a fair comparison we shall normalize all three responses to the DC level ( ) of equation (4). This means that we shall use 77 77 for all three expressions. Fig.1 shows , , and , along with the appropriate asymptotes (black line), with crosses marking the frequencies corresponding to the defined time constants. From the tabulated values in Fig.1 we can see that the response at 50 Hz is about 3 dB higher than at 0.1 Hz, as expected. But at 500 Hz it is about 2.65 dB below the value at 1 kHz (not 3 dB, as is often assumed), and similarly at 2120 Hz it is about 2.85 dB higher than the value at 1 kHz. Then, at 20 kHz the value of and is only about 19 dB above the value at 1 kHz, instead of 20 dB as is often assumed. This simply means that using the 3 dB break points for calculating the component values of the equalization network will not yield a flat response. When plotting the responses, and to be able to see their differences easier, we shall normalize the responses of both the inverse and the equalized RIAA network to their value at 1 kHz, and we can deal with the actual attenuation and the required gain later. The normalization is done simply by dividing the frequency response of a particular function by its value at 1 kHz: 1 (7) N 1 On the dB scale of Fig.1 this simply means shifting the response up by 27.53 dB. We shall append the index ‘N’ to a function normalized in this way. To avoid any possible confusion, we shall denote an inverse RIAA function as , whilst for the equalization network we shall write . So, for example, N will mean the inverse RIAA function with 4 time constants, with gain normalized to 1 kHz. Important consideration: As we shall see soon, the response of the preferred equalization network has an implicit zero at high frequencies, which is owed not to an actual time constant but to the particular circuit topology, with the resulting response similar to the inverse function. For this reason, a purely theoretical calculation of component values based on the equalization transfer function will produce an approximation of the required response, not an exact one. This is the source of the most important misconception, which to my knowledge has never been adequately explained in literature. To arrive at the exact response, and a flat frequency response after equalization, we shall have to implement a correction by including 7 artificially.

— 6 — Ironing RIAA E. Margan

The Equalization

There are several ways to generate an equalization function. A passive equalization network placed between two amplifying stages, as shown in Fig.2 , was inherited from the tube/valve era, and has experienced a revival since 1980s.

Rpu p R1 27k o A1 R A2 L 47k 2 pu 100pF 3k9 C1 3k3 27nF 3k3 pu C 220 2 220 80nF (47+33)

Fig.2: Typical passive RIAA correction network; component values as usually found in literature.

Passive equalization became popular again after some audio ‘gurus’ expressed their concern over amplifiers having capacitive feedback, supposedly sounding “all wrong” and “spoiling” the time constants. In fact, passive equalization is noisier, prone to clipping at high frequencies, and can suffer from slew rate distortion on transients, whilst time constant mismatch can be (often is) as bad as in active systems. Conventional ‘active’ configurations employ a pair of components in the feedback of an amplifier, the most common circuits are shown in Fig.3 and Fig.4 .

Rpu p o A Rb n L pu R2 Cb C1 C2 pu R3 R1

Fig.3: Typical type A active RIAA correction network.

Rpu p o A n L pu Cb Rb C2 C1

pu R3 R4 R2 R1

Fig.4: Typical type B active RIAA correction network.

Besides these, hybrid (passive + active) examples, such as in Fig.5 , are also found in literature, though not so often in commercial products. Whilst breaking the equalization network in separate sections makes it easier to calculate the correct

— 7 — Ironing RIAA E. Margan component values, problems with high frequency overdrive, slew rate limiting, and noise, remain similar as in purely passive systems.

Rpu p 7k5 o A1 A2 L pu 47k 100pF 3k3 33k 10nF 3k3 pu 220 1k1 100nF

Fig.5: Hybrid (active and passive) RIAA correction network.

By any experienced electronics engineer all these circuits can be legitimately characterized as YATA (yet another trivial amplifier). However, a thorough analysis of their performance is anything but trivial. Consequently approximations and design shortcuts have been extensively used, resulting in compromised or indeed flawed designs to the bitter dissatisfaction of audiophiles, but also causing misjudgments and misconceptions, and endless debates in literature, as well as unjustly interpreting the problem as poor performance of a cartridge. Here we present the analysis and response optimization of the circuit in Fig.4 , with some additional improvements further on. At first we concentrate on getting the amplifier feedback set up correctly, neglecting the cartridge internal impedance, pu and pu , thus also pup . Later we include the influence of the input impedance loading the cartridge internal impedance, and then show a few examples of various cartridge types and their response optimization. For an ideal and not overdriven amplifier we can assume:

n p (8) because any feedback amplifier with a high open loop gain will force the difference between the inverting and non-inverting input to a minimum (see Appendix 2 for the complete analysis). Consequently the current in the feedback loop is:

p f (9) The impedance of the feedback branch is:

o  p   (10) f   The amplifier’s transfer function is obtained by inserting (9) into (10):

o  p   (11) p   What follows is just simple arithmetic manipulation and reordering, but we shall write each step explicitly, to make the life easier for readers allergic to maths. We first divide all the terms in (11) by :

— 8 — Ironing RIAA E. Margan

o    (12) p   and transfer the  term to the right hand side: o   (13) p   We want to put the two frequency dependent terms on the same denominator:  o  (14)  p Since this function must be an inversion of (3), the denominator is already in the form expected as the numerator in (3), with the time constants 7 and 7 . To find 7 we must reorder the numerator of (14) to separate the frequency dependent term, so we multiply each parenthesis by its appropriate :   o   (15)  p then we extract the common terms:  o  (16)  p

We need to make the additive term in the numerator equal to 1, instead of  , so let us divide the numerator by  and multiply by it in front:

  o   (17)  p Now the numerator contains the explicit expression for the second system time constant 7 , so we can assign:

7 (18)

7 (19)

7  (20) 

The transfer function (17) has, as expected, a second order polynomial in in the denominator, and a first order polynomial in in the numerator, so three time constants in total, which is the reason for labeling it . It also has a DC gain factor  , as well as a frequency independent gain,  , which will be dealt with a little later. When calculating the component values we would like to have standard values wherever possible, so let us take the following convenient values for 7 :

— 9 — Ironing RIAA E. Margan

10nF (21)

7.5kH (22)

Next, from (18) we express :

7 (23) and similarly from (19) for :

7 (24) With (23) and (24) we return to (20):

7 7 7  (25)  

We multiply all by  and obtain: 7 7  7 (26) We now divide all by 7 :

7 7   (27) 7 7 and group together the expressions containing the same :

7 7   (28) 7  7  and we can now express as:

7 7 (29) 7 7 By inserting the appropriate values, we obtain:

08 H (30) Finally, from (23) we get:

46nF (31)

Before we calculate the response using (17), we must determine and . For a moment, let us assume that , and look for the value of which will give the circuit the same DC gain as is the attenuation in (3). So we can write:  7 7  (32) 7 7 and from this is equal to:

 7 7 (33)  7 7 By inserting the appropriate numerical values we obtain:

— 10 — Ironing RIAA E. Margan

H (34) Now we can check the system response by driving the equalized response (17) from the output of the inverse function (3). In the frequency domain this requires a simple multiplication of the two: . Of course, to plot the response magnitude we must take the absolute value of the total complex function. In order to see both functions on the same plotting scale together with their product, we have normalized to as in (6), and in the same way to N N, then multiplied NN , rewritten it as NN= = and finally taken the absolute value to obtain the response magnitude as a function of frequency:

= == =  ==  = (35) NN NN NN Analytically this requires a lot of hard work. But today most mathematical computer programs on the market (such as Matlab™, Mathematica™, MathCad™, and others) have the possibility to calculate the absolute value of a complex function for a range of frequencies directly. And likewise, all circuit simulator programs do the same for the AC response analysis. Of course, the actual function must be the same, regardless of the normalization. In Fig.6 the result of encoding the response into Matlab™ is shown (see Appendix 5 for the complete calculation procedure), and Fig.7 shows the deviation from a flat response in high detail (±0.5 dB vertical scale).

30

20

|GN(s)| |F4N(s)| 10

|F4N(s)⋅GN(s)|

] B

d 0 [

–10

–20

–30 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz]

Fig.6: The inverse function multiplying the equalization function should N N produce a flat response, |N N |. At the 60 dB vertical scale the result looks like a straight line; a close up view in Fig.7 shows deviations at both low and high frequencies.

— 11 — Ironing RIAA E. Margan

0.5

|GN(s)| |F4N(s)|

|F4N(s)⋅GN(s)|

] B

d 0 [

–0.5 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.7: Expanding the vertical scale to ±0.5 dB reveals a deviation from flat response at both high and low frequencies. It may seem that being within 0.3 dB the response is acceptable, but we should and can do better.

The question that arises by looking at Fig.7 is: since the response is not as flat as we expected, did we make a calculation error, and if so, where? The answer is: no error was made in the calculations, but in the original assumption! We have purposely done that in order to expose the most common error made in the past by many circuit designers. As stated in a previous note , the deviation from flatness in Fig.7 stems from the equalization network not having a time constant at 50 kHz, unlike the inversion function . The has only three time constants, but its response plot does mimic the inverse of above 50 kHz like having an additional zero, yet this is a consequence of approaching the unity gain caused by the circuit topology, not because of an actual VG time constant! Consequently, the effective corner frequency is gain dependent, and the gain depends on the value of , and we have calculated from the sum  multiplied by three time constants (29), where 7 is missing, which means that the obtained value of V" was actually wrong .

In order to correct the problem, we must recalculate by including the influence of 7 in the equation (29) artificially:

7 7 7  92055H (36) 7 7 7 

Then recalculating from (18) gives:

nF (37) and recalculating as in (33) gives:

424.3H (38) As is shown in Fig.8 , with these results the response deviates by less than 0.01 dB.

An identical result for could be obtained also from equation (17) if we consider that at 50 kHz the absolute value of the transfer function (still with ) must be  . This means that we can equate:

— 12 — Ironing RIAA E. Margan

 7   7 7 So 1 cancels, and after multiplying all by and taking the absolute value we have:

7   7  7  1

Hence, because must be evaluated at 1 , the inclusion of 7 1 in equation (36) is hereby justified.

0.5

|GN(s)| |F4N(s)|

|F4N(s)⋅GN(s)|

] B

d 0 [

–0.5 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz]

Fig.8: Acceptable response flatness is achieved by accounting for 7 in equation (36).

Now that is known it is easy to calculate the required system gain. Because we kept , the calculated value of must actually be redistributed to  . But the final gain will still depend mostly on . To determine the gain from the circuit input and output requirements, we must make a short digression into history. Regarding the input requirements, the nominal record modulation velocity is 5cm s at 1kHz (another RIAA agreement), and phonograph cartridges of the moving magnet and variable reluctance type are usually designed to deliver 3–5 mVrms at such modulation (as given by the sensitivity parameter in manufacturer’s specifications). Moving coil types usually deliver 0.1–0.5 mVrms . But there are exceptions to this rule. As for the output, there is a recommended standard value for the ‘line input’ in audio equipment, and it is often being referred to as  10 dBm. How much is that? The unit B (‘bel’, established at Bell Labs in the 1930s, and named in honour to Alexander Graham Bell ) is defined as the decade logarithm of the network power transfer ratio, log . The dB is the ‘’, or 1 10 of a bel, thus the same out in power ratio expressed in dB equals 10log out in . The suffix ‘m’ in dBm stands for the input reference power of 1 mW applied to a load of 600H (both values inherited from the telephone line development era), and this power represents the 0 dBm reference. Strictly speaking, the dB unit should be used only for expressing power ratios, and only when the input and output load impedance is the same . Generally, in amplifiers this seldom the case. So over time it has become customary to express voltage ratios (amplifier gain) over different input and output loading also in dB, which is sometimes more correctly indicated as dBV (but this often means that the

— 13 — Ironing RIAA E. Margan

reference signal level is 1Vrms ). Since the power is proportional to voltage squared, the dB value for voltages is calculated as 10log , or 20 log . out in out in The electrical power is the product of voltage and current, , and because the current is impedance dependent, , the power is proportional to the voltage squared, . Given the power and the impedance, the voltage required is equal to the square root of the power-impedance product, . For a 0 dBm level this means 0.001 600 0.7746 Vrms . Then,  10dBm will be  0.0001 600, or lower by a factor of 10 , or 0.3162 0.7746 0.245Vrms . So by assuming a 5 mV input and a 245 mV output, the minimum required gain at 1 kHz is 245 5 49×. For a 3mV signal, the gain should be 82×. And for the 0.5 mV of a moving coil cartridge we need a gain of 490×. With this knowledge we return to the circuit. The feedback branch impedance expression was given in (10). Excluding 4 for a moment, the impedance is:

f =  (39) =  = and its absolute value is:

= =  = (40) f f f or explicitly:

f =   =  =   =  = 

=  =  =  = ==  ==

=  =  =  = = = 

=  =  =  (41) = =  With the values chosen in (21), (22), (36) and (37), the absolute value of the feedback impedance at 1 kHz (with = 1 ) is: 1 9825 H (42) f1k f

Then the amplifier’s gain 1k at 1 kHz is given by:

f1k  1k  (43)

Without , and for 1k 49×, the value of should be 48× smaller than f1k , or about 205H . But we have shown that to achieve an acceptable response flatness, a value of  424H is necessary. Note however that there are two other reasons for having a higher resistance value in the feedback to ground path.

— 14 — Ironing RIAA E. Margan

One reason is that the amplifier must be capable of driving that impedance at high frequencies, where the feedback impedance is the same or lower, owed to the capacitive path. And not just at the nominal output level of 245 mVrms , but also at some 20 to 30 dB higher level, 2.45–7.75 Vrms , or almost 11 V peak! Such a headroom is necessary for clean processing of high level transients in high quality recordings. With only 200 ohm, this requires 55 mA peak at 20 kHz, not including any additional loading by the following circuitry. At those levels the amplifier’s output overload protection must not be activated if low distortion is expected, and most IC amplifiers will distort already at 10–15 mA. The other reason is amplifier’s stability. Namely, many amplifiers with high bandwidth are being offered as ‘decompensated’ (typical examples include the popular OP37 and NE5534; this last one may be compensated externally, but others give no such option). This means that their internal dominant pole is set higher than the usual ~100 Hz, with the consequence of the secondary pole of the output stage compromising the loop phase margin, therefore a minimal gain of 4× or 5× is required (at unity gain, or with a capacitive load of an ordinary 1m long coaxial cable, such amplifiers will oscillate). Of course, it would be best and simplest to employ a unity gain stable amplifier, but until recently a stable audio grade amplifier with low noise, high output current, high bandwidth, high slew rate, and low distortion was either unavailable or was a compromise in one way or another. On the other hand, a high effective feedback resistance would also have a high thermal noise, comparable to that of the cartridge, so lowering the value of in favor to gives us just what is required. In Table 1 we give several values of gain, , and for various cartridge sensitivities, calculated after equation (43).

Table 1 Sensitivity [mv @ 1kHz, 5cm s] Gain Gain [dB] [H ] [ H ] 5.0 49× 33.8 206 218 3.5 70× 36.9 146 278 3.0 81.67× 38.24 127 299 0.5 490× 53.8 21 403

Regarding standard component values (E24 set for resistors, and E12 for capacitors), here we give some parallel combinations which result in values close enough to those required. Of course, if easily available, the E48 or E96 set may be preferred, because tolerances add up for combinations of components (either serial or parallel). This undesirable property may be reduced slightly by selecting one high and one low value in the hope that the tolerance of the high value will not change the combined value by much, so even if a 1% tolerance of each component result in a 2% total, the actual individual variation will be less than 1%, and will therefore spoil the value by a lower amount. Whilst resistors are easily found in 0.5% or even 0.1% ranges, capacitors are usually in the 20%, 10%, and 5% ranges, but in the 5% range only the most common decade values are ordinarily available. So hand-picking the correct values from a large bunch will be unavoidable in practice.

The values for (7500H ) and (10 nF) have been already chosen from the standard E24 set, so we only need to measure and select those which will be within 0.1%. For the remaining values here are a few possible parallel combinations which

— 15 — Ironing RIAA E. Margan will be within 0.5% or so, assuming exact values (of course, it is always possible to find slightly different values which will give better results): H 206.9 H  % 

H H  % 

H k H  %  k k

nF nF  nF nF  %

34.0

R3 –1%

] B

d 33.8 [ R3 +1% 33.6 34.0

R4 +1%

] B

d 33.8 [ R4 –1% 33.6 34.0

C2 –1%

] B

d 33.8 [ C2 +1% 33.6 34.0

R2 +1%

] B

d 33.8 [ R2 –1% 33.6 34.0

C1 –1%

] B

d 33.8 [ C1 +1% 33.6 34.0

R1 +1%

] B

d 33.8 [ R1 –1% 33.6 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.9: Influence of components’ ±1% tolerance on various parts of the spectrum.

— 16 — Ironing RIAA E. Margan

Another possibility for would be a parallel combination of 22 nF and 12 nF nominal, each with a slightly larger value, or maybe a pair of 68 nF in series. In most cases the actual value of a component is on the low side of the tolerance range, and this can be used to advantage when selecting combined values manually to obtain a value closer to the optimal. In Fig.9 we report the influence of each individual component change by 1% on the system’s flatness deviation. We can see that such changes result in less than 0.1 dB deviation. Note however, that combined variations of two or more components can have a greater combined effect . This is especially true for , the influence of which extends into the spectral range influenced by both and . Likewise, will also alter the spectral range under dominant influence of and A slight inverse variations from both and is seen between 200 Hz and 1 kHz.

and are less problematic, since affects only the ultrasonic range, and affects the whole audible range equally.

The Cartridge and its Load

We now want include the effect of the cartridge’s internal impedance and its load into the equation. Since at high frequencies the cartridge impedance is dominantly inductive, and its load is dominantly capacitive (because of the connecting cable and the amplifier's input capacitance), there will be a pronounced resonance at or above 15 kHz, and this must be taken into account. In the following analysis we shall assume that the previously calculated circuit response will correctly equalize the encoding function , so the product is flat, and can be neglected for cartridge response optimization. In Fig.4 the generator pu represents the cartridge nominal output (usually between 3–5 mV for the 5 cm s groove modulation velocity at 1 kHz). The resistor pu represents the coil wire resistance and pu represents the coil and magnetic core inductance. The signal p is the output signal when the cartridge is loaded by its nominal load b and the cable and amplifier’s input capacitance b . But pu and pu can vary widely between manufacturers, and also between models from the same manufacturer! Some popular examples: Sonus Blue and Gold series have 150 mH and 300H , Ortofon 2M Black has 630 mH and 1200H ; but notable exceptions include Grado G1+ with only 55 mH and 700H , and Stanton 681EEE MkIII with 930 mH and 13 kH . And we are not even considering low output moving coil types here! We shall illustrate the influence of the cartridge impedance components by using the following three examples to cover the most common range of values:

Table 2 Type Impedance A B C pu [mH] 150 300 600 pu [H ] 300 600 1200

Here we are interested only in the response variation with frequency that is owed to the electrical impedance of the pickup and its load. The mechanical resonance

— 17 — Ironing RIAA E. Margan of the needle, the cantilever, and the magnet moving mass, with the cantilever support compliance (elasticity modulus) are given by the type of cartridge, and are not influenced by the circuitry. Mechanical cartridge-tonearm resonances usually affect the deep bass and sub-audio frequencies, whilst the cantilever resonance and other mechanical properties affect the upper audio range. To compensate for this some manufacturers specify b and b such to intentionally enhance high frequencies, so checking the actual response will be necessary when using a different load. Low frequency resonances can be dealt with either by increasing mass, or compliance, or both. However high compliance cartirdges are not suitable for many tonearms, and a high mass at the end of the tonearm increases the system’s inertia, which in turn increases record wear. Likewise, a high turntable mass causes high axis pressure, increasing mechanical wear and in time developing rumble. A judicious compromise is necessary. Making the turntable support mass high, and adding soft suspension to decouple all from other supporting masses, thus preventing the bass transmission through the material, is often the best way to go.

Returning to the cartridge equivalent circuit, the ratio p pu can be found from voltages on their associated impedances:

pup p (44) pu  pu b  b With a little reordering we obtain the transfer function:

pu  p b pub b  (45)  pu pu pu g b     bb pu  pub  b

Fig.10 shows a plot of (45) against frequency for the three representative cartridge impedances given in Table 2 . As can be seen from the plot, low impedance cartridges tend to peak in the ultrasonic part of the spectrum, at 20–30 kHz (this was once considered desirable for quadrophonic reproduction), whilst high impedance versions tend to attenuate above 10 kHz. Both effects can be reduced by lowering b , but this will be ultimately limited by the cable capacitance. The peaking can also be reduced by lowering b , but this attenuates the signal because of the frequency independent term in (45): b (46) pu  b However pay attention to the cartridge mechanical response, because some cartridge manufacturers compensate its influence by deliberately specifying a lighter electrical loading, enhancing high frequencies. Always check the response using a good test record, either with continuous tone at various frequencies or by a 1 kHz squarewave.

— 18 — Ironing RIAA E. Margan

As will be shown later, making the amplifier’s input impedance adaptable by a small DIL switch array can save us a lot of soldering.

5 ZA

0 ZB p

ZA ]

B -5 150mH + 300Ω d [ Rpu

ZB

u

p p

– 300mH + 600Ω

– Z Cb Rb C -10 ZC 120pF 47k 600mH + 1200 Ω L pu

-15 pu

-20 1 2 3 4 5 10 10 10 10 10 f [Hz] Fig.10: Influence of cartridge impedance on the frequency response. Lower impedance types are generally preferable for lower noise, but they require lower cable and input capacitance b , and or lower input resistance b . See Fig.11 and Fig.12 .

The resonant frequency is given by the last term of the denominator of (45):

=r pu r  (47) 1 1 pub b  The damping factor 0 is obtained from the denominator’s middle term:

pu 0= r  (48) bb pu

pu pub b pu 0   (49)    bbpu b pu b pupu b

The influence of b is shown in Fig.11 . Lower value results in lower peaking and larger bandwidth. Since b includes the capacitance of the cable, which usually has about 100 pF m, shortening the cable may be beneficial, if possible.

The load resistance b influences the system damping, as Fig.12 shows. Lower value results in lower peaking. What is required is not a ‘critical damping’, (0 ), which insures no overshoot on transients, but rather a Bessel-like damping, with 0 , which gives a slightly higher bandwidth and an envelope time delay equal for all frequencies up to the upper bandwidth limit. Time delay is the phase derivative of frequency, 7e := , so if 7 e is flat, the phase must vary linearly with frequency within the bandwidth of interest, therefore such systems are often being referred to as

— 19 — Ironing RIAA E. Margan

‘linear phase’. What is more important is that such systems also exhibit the fastest rise time, Fig.13 , with minimal overshoot (~0.5% of the step amplitude). This means no ringing on transients.

5

Cb3

Cb2 0 Cb1

p ]

B -5 R

d pu [

600Ω

u

p

p –

– Cb R L b -10 pu 60pF 47k 300mH 120pF 240pF

-15 pu

-20 1 2 3 4 5 10 10 10 10 10 f [Hz]

Fig.11: Influence of capacitive loading on the frequency response. Lower b values are preferable.

5 5

M1 M 0 2 0 M3

τe1 M4

–5 τe2 –5

]

] B τ s

d e3

µ

[

[

e

τ u

— p p pu – τ – –10 e4 –10 Rpu 300Ω Rb Cb Rb L pu 120pF 150mH 1 47k –15 2 27k –15 3 23k 4 15k

–20 –20 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.12: Influence of resistive loading on the frequency response magnitude ( ) and the envelope time delay (7e ). Lower values reduce the high frequency peaking and increase the pass-band time delay, but also decrease the time delay at resonance. Bessel-like response (maximally flat time delay, 7 ) is obtained with b k H .

Generally speaking, because both =r and 0 are affected by b and b , it is important to have the load adjusted to the system by observing the rise time overshoot

— 20 — Ironing RIAA E. Margan on an oscilloscope using some low frequency square wave as the driving signal. Note also that the total system thermal noise is proportional to the square root of the real part of the total input impedance and the bandwidth. The total noise of the system will be examined in detail a little later.

1.4

1.2 S1

S2 1.0

S3 0.8 S4 pu

Rpu 0.6 Rb 300Ω 1 47k Cb Rb 2 27k L pu 120pF 0.4 150mH 3 23k 4 15k 0.2

0 0 10 20 30 40 50 60 70 80 90 100 t [µs] Fig.13: Time domain step response for the same conditions as in Fig.12.

The System

The complete system transfer function is obtained by multiplying (4) with (44) and (17): (50) Regarding the cartridge response s , here we are using H and pu pu mH because those values are fairly close to the average of what is found on the market. However, the reader is encouraged to insert the values of his own cartridge and loading in order to check his own system, either on a circuit simulator or with the aid of a mathematical program. Also we shall use b pF because the majority of people will probably be reluctant to cut in half the 1 m long cable from the turntable (which usually has 100 pF m), and the amplifier input will have an additional 20 pF at least, and some will offer the possibility of adjusting b (to higher values). For we shall use the values already calculated, and the reader can change the values of and to obtain the correct gain for his own cartridge sensitivity. Fig.14 shows the resulting responses. Note that we are using the 1 kHz normalization, that is and responses. N N Note that the cartridge response peaking at 15 kHz (or above) is lowered by the single pole at 50 kHz, which needs to be added after the RIAA equalization circuit.

— 21 — Ironing RIAA E. Margan

Since cartridges have very different impedances, any remaining peaking will need to be adjusted by b and b . Fig.15 shows the complete schematic. The gain settings for different cartridge sensitivity must be made so that  is constant!

30 |F4N(s)|

|F5N(s)| 20

|G4N(s)| 10

] |F4N(s)⋅G4N(s)⋅H(s)| |F4N(s)⋅G3N(s)| B

d 0 [ |F5N(s)⋅G3N(s)|

–10 |F4N(s)⋅G4N(s)|

–20

–30 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.14: System flatness check by multiplying with is the flat red curve. An additional pole at 50kHz causes the response to continue dropping at  6dB octave beyond 20 kHz, with the corresponding deviation from the flat response indicated by the green line. The black line shows the cartridge response modified by the system. The dashed lines show the influence of a 2nd -order Butterworth filter at 50 kHz in the record cutter system; it affects the responses only beyond 20 kHz.

Rpu p o Rf 600 A f n L pu 2.12k Rb 300mH Cb Sg C2 C1 120pF 47k Cf pu c b a 10nF 34.5nF 1.5nF R3c R3b R3a R4 R2 R1 15131 60 218 7k5 92.6k 206 Fig.15: Complete circuit schematic with values; a switch sets the gain for different cartridge sensitivities: a) normal (5mV), b) low (3.5mV), c) moving coil (0.3mV).

The transfer function for the complete circuit in Fig.15 is again a simple product of (45), (17), and the transfer function of the f f low pass filter; this is shown by the blue curve in Fig.14 . For the evaluation of the response flatness we must multiply the circuit transfer function by . f (51) pu f f 

— 22 — Ironing RIAA E. Margan

In Fig.16 we show how the influence of the low pass filter can be take into account when setting up the load of the cartridge. We compare the manufacturer’s recommended load settings with optimized settings for six popular cartridge types, both in frequency domain and time domain. We assume the RIAA equalization is done correctly, and take into account only the 400 kHz encoding bandwidth limit together with the 50 kHz limit. It is clear that the manufacturer’s settings seldom result in adequate time domain response. So the optimization has been performed for the time domain response minimizing the overshoot of the step response waveform and maximizing the bandwidth, and the resulting frequency response is shown along.

6

3 3

0 0 40 0 40 –3 kH 0k z –3 Hz –6

] –6 ]

B 5

0 B 5

d 0 d

[ k

H [ k –9 H Grado Prstige Silver z –9 z + Grado Prstige Silver + 4 4 Ortofon MC3 T 0 Ortofon MC3 T 0 0 0 –12 k –12 k Sonus Blue H Sonus Blue H z z Stanton ST500E MkII Stanton ST500E MkII –15 –15 ADC XLM MkIII ADC XLM MkIII Ortofon OM5E –18 –18 Ortofon OM5E

–21 –21 3 4 5 6 3 4 5 6 10 10 10 10 10 10 10 10 f [Hz] f [Hz] 8

7

6 6

5 5

] 4 4

V m [ 3 3

Grado Prstige Silver ] Grado Prstige Silver V

Ortofon MC3 T m Ortofon MC3 T 2 [ 2 Sonus Blue Sonus Blue Stanton ST500E MkII Stanton ST500E MkII 1 1 ADC XLM MkIII ADC XLM MkIII

0 Ortofon OM5E 0 Ortofon OM5E

–1 –1 0 10 20 30 40 50 60 70 80 90 100 0 10 20 30 40 50 60 70 80 90 100 t [µs] t [µs]

Fig.16: Modifying cartridge load (b and b ) to obtain the lowest overshoot for a maximal bandwidth. Most manufacturers prefer a high degree of high frequency peaking (left hand figures), as this gives a sense of ‘brightness’ and ‘openness’. A proper adjustment can be achieved for most cartridges (right hand figures), even with very different internal impedance.

The DC Offset

An additional problem to solve in the circuit of Fig.15 is the DC offset. This has been traditionally dealt with by adding a large capacitor in series with . Such low frequency filtering helps to reduce the amplification of the rumble generated by the turntable shaft, bearing, and driving mechanism, and preventing possible acoustic feedback below 20 Hz if the loudspeaker system with a large subwoofer is used. In 1972 the IEC proposed an additional break point at 20 Hz to be part of the reproduction standard (but not the recording!). So a low frequency roll off is desirable for several reasons. But church organ music fans will probably make a grim face at this, since the C bass pedal note is at 16.203 Hz. Of course, it is always possible to make the cut off below 16 Hz, but then the mentioned problems may resurface. The relation for the low frequency cut off, which multiplies (51), is simply:

— 23 — Ironing RIAA E. Margan

(52)  where is the capacitor added between and ground. But because of the very low value of , cutting the response at 20 Hz or below requires a large capacitance value, about 50 µF for 206H and 16 Hz. And because electrolytic capacitors are the only type offering such large values, two back to back electrolytics of a double value, in parallel with a 0.1–1 µF polystyrene or polypropylene capacitor are required in order to avoid asymmetrical impedance and bypass the large serial inductance of the electrolytic capacitors. Readers not willing to renounce to the full bass depth of the Bach’s Toccata and Fugue in D minor, or the Richard Strauss’ Also sprach Zarathustra , will have to use 2× 150 µF (for each channel) for a  3 dB limit at ~5.5 Hz, thus keeping those precious 16 Hz within the desirable pass band. Shown in Fig.17 is a modified feedback configuration proposed recently by Kendall Castor-Perry in Linear Audio Vol.1, pp.133–137.

p o n A 2C 0 R1 R2 R4

1µF 2C0 C1 C2

R3

Fig.17: One version of the DC blocking principle proposed by Kendall Castor-Perry.

This arrangement allows most of the feedback current to pass via and to , and only at low frequencies a very small current via and will go through those large nonlinear electrolytics, so their influence is minimized. But those large capacitors are now floating, so they represent a large stray capacitance to surrounding fields from transformers, RF sources (mobile phones), etc. Fig.18 shows an easy way of avoiding large capacitors by using a simple and cheap positive integrator servo loop with only a single capacitor of moderate value. By itself, the DC offset is not a problem in audio. But if too large, it can reduce the signal headroom on one polarity, since the gain at DC is about 500×. For example, an OP37 with its ~10 µV input offset in place of the main amplifier will exhibit a maximum output offset of 5 mV or so, which is tolerable. But the 4 mV input offset of an NE5534 will be amplified to 2V. The integrator in Fig.18 with an OP277 (an improved version of the popular OP07) can easily reduce this below 20 µV at the output node o . Also, any system with a large DC offset will generate a large step at the output at power on. This is prevented if the power supply rises slowly, say < 2Vs.

— 24 — Ironing RIAA E. Margan

p o Rf A f n

Cb Rb C2 C1 Cf

R3 R4 R2 R1

R5 47k R9 Cint 100k R6

47k 3.3µF c d OP277

R8 R7 47k 47k Fig.18: An integrator servo loop using an OP277 can reduce the DC offset to less than 20 µV.

We start the analysis of the loop by finding the current c through int : c (53) c

int

Here c is the voltage across the integration capacitor int . The OP277 is configured for a gain of 2× by two equal resistors in its negative feedback loop, , and as long as the circuit is in the linear range, the voltage at the inverting input will be equal to c . The integration condition is achieved if . Therefore:  d c c (54) We can rearrange this as:

d c  c (55) 

So we can express the sum of all the currents at the c node:

oc  cd c  (56)

By replacing c with (53), and d with (55), and solving for c gives: c o (57) int  

Thus by making we have only:

o c o (58) int int

— 25 — Ironing RIAA E. Margan

Equation (58) is the response of an integrator, integrating the current o on int . We know this because of the form o 7 ; in contrast, an ordinary low pass filter would have 7  in Laplace space. The driving impedance seen by is very high, o int limited by the tolerance of and and the input impedance of the OP277.

Now d c (55) is applied via to the inverting input n of . At DC, and with p , the voltage at the inverting input n of the main amplifier is the input offset voltage of . The following equation holds for the DC servo loop:   dn n  no (59) DC where DC   . This we reorder as:

d n   o (60) DC  DC

We are interested in the value of a , so:

DC DC o n   d (61) DC 

We replace d with c from (55), and then replace c from (58):

DC DC o DC o n   (62)  int

Effectively (62) defines a transfer function with a single zero at int , or . We have intentionally left on the right hand o n int o side, since it is the DC error current, proportional to o , integrated to correct back o . The equation (62) means that the input offset n is amplified by slightly more than the closed loop DC gain of , and then reduced (note the negative sign!) by the integration of the error current on , itself amplified by  . int Instead of the expression in the Laplace space, we could have written the relationship between c and c in the usual time domain integral form: 7 c c (63) int with the integration time 7 int , so that the integration loop has enough time to settle close to the final offset value of c , and consequently also o .

With kH , and int µF, the low frequency limit (  dB below pass band) is about Hz. This is enough for the settling speed of the loop, but with a large sub woofer the very low frequency rumble and acoustic feedback may still be amplified enough to pose problems. What is needed is an additional high pass filter of high order to let pass all above 16 Hz unaffected, but cut sharply everything below.

The High Pass Filter

The advantage of a separate HPF is that it can be tailored to user’s needs adding capacitors in parallel by a 3-way rotary switch, or bypassed completely. For this

— 26 — Ironing RIAA E. Margan task we use an active third order high pass filter as shown in Fig.19 , a configuration known in filter theory as the Sallen–Key type, with a cut off frequency of, say, 10 Hz, and an attenuation slope of dB below the cut off.

R12 f C11 C12 C13 A o 1 3 2 R11 R13

Fig.19: A third order high pass filter of the Sallen–Key type.

The filter transfer function is obtained from the following node equations:

o  at :  (64)

   f at :  (65)

 at : (66)

For a unity gain non-inverting amplifier f . First we substitute with f in (66) and (65), then express from (66), and replace with its expression in (65), then find from (65), and replace in (64) with that. In that order we obtain: f  (67) 

(68) f   

o f   

      (69)

From (69) we can express the transfer function f o . In addition, from filter theory, specifically the Sallen–Key configuration such as in Fig.19 , we know that the sensitivity to component variations is minimized if the serial elements are made equal, so . With this we rewrite (69) as:

— 27 — Ironing RIAA E. Margan

f (70) o     

Finally, by multiplying both the numerator and the denominator by , and with a little regrouping we obtain: f (71) o       

At high frequencies the term dominates, so the filter has unity gain. At low frequencies the resonant frequency is determined by the last term in the denominator:

= (72) It is of course possible to set also the three resistor values equal, for simplicity, and obtain the so called critically damped response. However the transition from pass band to the attenuation slope towards low frequencies is very gradual in that case, and we would rather have a steeper transition, with greater attenuation of very low frequencies. As most turntables have their mechanical resonance and the dominant rumble spectrum within 2–5 Hz, we want to suppers 5 Hz considerably. The sharpest transition is offered by the Chebyshev family of filters. However, a sharp cutoff also means a large phase jump at = , and therefore a large derivative 7e : = , the envelope time delay. And if the frequencies near the resonance pass through the system with a delay larger than for the rest of the spectrum, long oscillations occur at the resonance at every fast signal transition. The Bessel family of filters offers the best compromise in this respect, but at the expense of a very gradual pass-band to stop-band transition. The Butterworth filter family has a maximally flat magnitude and a steeper stop-band transition, but also a longer ringing in the time domain. Note however that ringing at subsonic frequency (near 10 Hz) will be less problematic than at the high end of the spectrum, mainly because of the cutoff inherently present in any loudspeaker system, even those with very large subwoofers. But also the rest of the amplification chain will have additional AC coupling at various stages to help. So let us calculate the system response with Bessel and Butterworth poles, and then decide which to implement in the system. The values of Bessel poles for a third order system, normalized to the angular frequency =n rad (see Appendix 4 for details) are:

     (73) However those values are given for a low-pass system. For a high-pass system we must first invert the pole values, i . Then in order to obtain a 1 Hz cut off we must multiply the inverted poles by = 1 rad s. We then set to some convenient value, and solve a third order equation for the values of (see Appendix 4 ). However, a large requires low values of , lowering the input

— 28 — Ironing RIAA E. Margan

impedance of the filter, which will attenuate the signal because of the presence of after the RIAA amplifier. 330 nF and 47 kH represent a good choice. For the 3rd -order Bessel high pass filter system, the resistors are related as . By selecting nF, the resistor values are kH , k H , k H . If necessary, can be decreased and increased in proportion, or the other way round, in order to trim the response just above the cut off frequency. This may or may not be necessary, depending on the – factor of the integrator loop and its peaking at very low frequencies. For the Butterworth response the pole values are:

     (74) Because Butterworth poles are on the unit circle, the inverted values for the high-pass response are the same. Of course the multiplication by = 1 rad s is necessary to obtain the 10 Hz cut off. The calculation of component values then follows the same procedure as for the Bessel poles. The values obtained are optimized to nF and are: kH , k H , k H . See Appendix 4 for details. In Fig.20 we compare the frequency response of the Bessel and Butterworth 3rd -order high pass filters having a 10 Hz cut off, together with the 1st-order filter resulting from the integrator DC loop correction, which cuts off at about 1 Hz.

0

Integrator (1st-order HPF)

] Bessel (3rd-order HPF)

B –1

d

h [

Butterworth (3rd-order HPF) t

r

n

o

o

i w

l

t

r

e

a

e

s

t

u

s

t

e n

u

e

B

t B t –2 R12 A f C 330nF 220nF C11 C12 C13 A o 1 3 R 47k 56k 2 11 R11 R13 R 33k 22k –3 12 R13 180k 390k

–4 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.20: Comparison of the frequency responses of 3rd -order Bessel and Butterworth high pass filters, together with the effective 1 Hz cut off owed to the integrator DC correction loop. The Bessel filter attenuates 16 Hz by about  dB, the Butterworth by only  dB.

Note that the filter input impedance in the pass band is only slightly less than alone, because of feedback bootstrapping of . Therefore the loading of the f f low pass filter (51) remains low and does not alter the total pass band gain.

— 29 — Ironing RIAA E. Margan

We are now able to evaluate the flatness of the response of the whole system by simply multiplying all the relevant transfer functions, as in (40), but with the integrator and the high pass filter included. In Fig.14 we have plotted the response at the RIAA equalization amplifier, multiplied by the inverse RIAA function, the response of the cartridge network, and the low pass filter output. Here in Fig.21 we plot the same total response with the influence of the integrator for DC offset removal, and the 3rd -order Butterworth high pass filter at 10 Hz.

35

30

25

20

]

B

d

[

n

i 15

a

G

e g

a 10

t

l

o V 5

0

–5 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.21: The complete system response, including the DC integration loop, a Butterworth 3rd -order high-pass filter, and the 1st -order low-pass filter at 50 kHz. The high frequency response is dominated by the cartridge’s internal electrical impedance and its loading, which is a 2nd -order low-pass system, resulting in a 3rd -order response at high frequencies.

And in Fig.22 we use a vertical scale of 4 dB in total in order to expose the pass-band details. The response is flat within 0.1 dB from 16 Hz to 16 kHz.

34

]

B

d [

33

n

i

a G

32

e

g

a t

l 31 o V 30 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.22: Same as in Fig.21, but with only 4dB vertical scale to expose the passband details. The response is within 0.2 dB from 16 Hz to 16kHz, with  3dB at 10Hz and 29 kHz.

The theoretically derived response has been checked numerically by using Matlab (by The MathWorks), see the code in Appendix 5 . Of course MathCad (by

— 30 — Ironing RIAA E. Margan

PTC), or Mathematica (by Wolfram Research), or other tools can be used equally well. It is a good practice to also check the calculations independently by using one of the many circuit simulation computer programmes, some are available freely online. Most of those programmes offer the possibility to vary the components within the expected tolerance range and use the Monte Carlo statistical analysis to evaluate the variations in response. Readers who want to build the circuit for their own use, or in limited quantities, can measure and select the components to 0.1% tolerance from a bunch of 1% parts using a good -meter. Note however that using a simple hand held 3 digit multimeter for such measurement will not guarantee a precision better than 0.5% ± 1 digit. Use of at least 4 digit measuring equipment is recommended.

Noise Analysis

Noise is a random quantum phenomenon and fundamentally unpredictable. However, during the last 150 years a monumental amount of theoretical and experimental work has been accomplished, allowing some clever thermodynamic and statistical approximations to be used, resulting in relatively simple relations by which the circuit noise behaviour can be assessed easily. In the old days of tubes valves and later discrete transistor amplifiers the circuit thermal noise had to be optimized by carefully setting the input devices’ working point and bias current, because of the different dependence of the noise current and noise voltage with bias. In modern low noise integrated circuits the current noise component is low and the noise voltage dominates. There is not much we can do about the circuit noise besides keeping all the impedances reasonably low. The choice of the cartridge will probably be made on its mechanical and electrical characteristics, but for the system noise performance we must consider also the sensitivity and the electrical impedance of the cartridge. Thermal noise voltage is proportional to the square root of the real part of the cartridge impedance, its load, and the bandwidth, so low impedance cartridges are preferred. However, the cartridge sensitivity is also a function of its impedance (the number of turns of the coil and the coil resistance), as well as the magnetic field strength. Thus a low impedance cartridge with a good magnet can be as sensitive as a higher impedance one with a poor magnet. The noise evaluation of the system starts from the well known thermal noise relation of the signal source, the noise voltage being proportional to the square root of the cartridge impedance and bandwidth:

nc B )? (75) where:  B × VAs K ...... Boltzmann thermal energy constant K ...... nominal ambient absolute temperature ...... thermal real part of the impedance ) c ? H  L ...... bandwidth of interest (20 kHz in audio)

But (75) is valid only if ) is independent of frequency. Because only the real part of the impedance generates thermal noise, and because the impedance varies with

— 31 — Ironing RIAA E. Margan

frequency, we must first calculate the equivalent impedance seen by the amplifier’s input, and then evaluate its real part within the audio spectrum. This gives the noise voltage spectral density, which is a function of frequency. The total impedance seen by the amplifier’s input is the cartridge internal impedance in parallel with its load impedance: = (76) c = b  pu= pu b We want to express this as the sum of its real and imaginary part. We first get rid of the double fractions:

b pu = pu = (77) c  =  = b pu pu bb Multiply the terms in the denominator:

b pu = pu = (78) c  =  =  b pu bbpu bbpu pu Rationalize the denominator by multiplying both the numerator and the denominator by the complex conjugate of the denominator:

bpu = pu  b pu  = bbpu  = bbpu  pu c = (79)  =  =  b pu bbpu bbpu pu We perform the multiplications in the numerator, cancel the terms with opposite sign, and with some reordering and normalization we group the real and imaginary parts:

pu= pu = pu = pu =b pu  =  b pu   == b pu  b pu bpu b pu c = pu pu = pu = b pu  =  b pu b b (80) The real part of the impedance is then:

pu= pu = pu = bpu  =  bpu b pu b c = pu (81) pu = pu = bpu  =  bpu b b Fig.23 shows the real part of the input impedance as the function of frequency, after (81) in comparison with the absolute value of (80). At low frequencies the value is approximately pu (600H ), then rises owed to the inductance pu to nearly b

(47 kH ) at the resonant frequency 1 b pu , and finally falls back owed to . b Because of this, the voltage noise spectral density follows a similar function:

nc n B c (82) ? and with the assumed values for an average cartridge and its nominal load the spectrum is shown in Fig.24 . It goes from about 3 to about 27 nVHz at resonance.

— 32 — Ironing RIAA E. Margan

5 10

Rpu 600 4 10 Cb Rb 120pF 47k |Zc()j |

] L pu

0.3H [

R = Zc()j R 3 10

2 10 1 2 3 4 5 10 10 10 10 10 f [Hz] Fig.23: The real part of the input impedance compared to the absolute value.

100

Rpu enZ = 4kBTZℜ ()jω 600 Cb Rb 120pF 47k L pu

10 0.3H

n e

1 1 2 3 4 5 10 10 10 10 10 f [Hz] Fig.24: Thermal noise voltage spectral density is proportional to {Z = }, (82 ). c The thermal noise of the RIAA feedback network must also be taken into account, however the feedback thermal impedance is equal to the real part of (39) with added, and all in parallel with . Because of the low value of 3 the thermal noise of the feedback network may be approximated by alone within the audio band (it falls eventually to beyond 50 kHz):

n B nV Hz (83) In addition to the thermal noise of the signal source impedance and its load, the amplifier’s input voltage noise and current must be taken into account. The amplifier’s input noise current must be multiplied by the absolute value of the input impedance (not juts the real part!) in order to obtain the equivalent noise voltage, therefore the absolute value of equation (80) must be used for c : = (84) n n c

— 33 — Ironing RIAA E. Margan

Likewise, a similar input noise current flows through the feedback network, so it should be multiplied by (simplified!) to obtain the equivalent noise voltage:

n n (85) However, modern integrated circuit amplifiers have very low input noise current, so even if c increases with frequency the equivalent voltage noise is relatively low. As an example, the good old NE5534 has a typical input noise current 2.5 pAHz at 30 Hz, and 0.6 pA Hz at 1 kHz and above. On the other hand its input noise voltage is about 7 nVHz at 30 Hz, and 4 nV Hz at 1 kHz. To develop a comparable voltage noise, the input noise current should flow through a resistance of 8 kH . Therefore the input noise current will be significant only above some 4 kHz. Similar, maybe slightly better results will be obtained with the OP37. But check the OPA627, OPA637, or the latest OPA827, the voltage noise is similar, n 4 nV Hz , but the current noise is 500× lower, about 2.2 fA Hz . This makes the influence of the current noise insignificant, more so because the different noise components are not correlated, and must be added by power:

  (86) nTi n n n n Note that both the amplifier input noise current and input noise voltage increase towards very low frequencies (owed to the so called noise component) and towards high frequencies (because of the excess noise component), and both influences are outside the audio band. But because RIAA equalization enhances low frequencies, and because some amplifiers have a relatively high corner of the spectrum, it might be important to model the amplifier voltage noise more accurately. With c being the corner frequency below which the noise starts to increase from the level at 1 kHz, the spectrum is modeled by:  kHzc (87) n n The corner frequency must be found by adjustment from amplifier’s data, since most manufacturers specify only the effective noise at 1 kHz and 30 Hz. Usually c will be between 10 and 100 Hz; here we use c 50 Hz. In addition, excess noise increases the amplifier noise in proportion to , but its corner frequency is often at 10 kHz or above, thus outside of the audio range. For the output noise spectrum, we multiply the spectrum of the total input noise by system gain (17) and low pass (51) and high pass (71) filters: nTi (88) nTo nTi B Since RIAA equalization decreases with increasing frequency, the output noise will be substantially lower. The output spectral noise density is shown in Fig.25 , along with the individual input components and the total input noise spectral density. To obtain the effective (root-mean-square, rms) noise voltage form the spectral density, the output spectral power (voltage squared!) density function must be integrated in frequency within the audio band, from L Hz to H kHz, and then the square root is taken to obtain the effective noise voltage:

— 34 — Ironing RIAA E. Margan

H no no (89) L

no no (90)

Using the OPA827 data, the effective output noise voltage is about 71 µVrms . Considering the nominal input signal level of 5 mV with the gain of about 50× gives 250 mV, so the signal to noise ratio is about 71 dB. By using a better amplifier with the input voltage noise density of just 2 nVHz , about 74 dB can be achieved, and further amplifier noise reduction will have no effect. This is because the input noise is dominated by the cartridge thermal noise. To achieve low noise a low impedance and high sensitivity cartridge is always preferred.

–5

10

]

)

z

H (

t –6 en Totout r

q 10

s

/

V

[

y

t

i

s

n

e

D

l –7 a

r 10

t

c

e

p

S

e

g

a

t

l o

V –8

e 10

s en Tot i in

o en Ain N en Zpu

en Zfb –9 10 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz]

Fig.25: Noise spectral density: nZpu is the thermal noise of the real part of the impedance of the cartridge and its load; nAin is the amplifier input voltage noise. The

amplifier current noise is not shown because it is far too low. n is the feedback network thermal impedance, simplified to just . The total input equivalent noise density is denoted by nTi . The output noise density nTout is equal to nTi multiplied by the gain , the low-pass filter and the high-pass filter . For example, the Grado Prestige Silver or Gold series can take the noise down by about 8 dB, mainly owed to its very low inductance (pu 40 mH) and high sensitivity (5 mV at 5 cm s at 1 kHz). With such a cartridge it makes sense using amplifiers with less than 2 nVHz , achieving no 26 µVrms, and a S/N ratio of almost 80 dB (see the example in Fig.27 and Fig.28 ). Note also that the actual dynamic range will often be greater than the S N ratio by at least 10 dB with high quality recordings. But note also that the vinyl noise will dominate, even with a poor cartridge and amplifier. Sadly, in too many cases with high

— 35 — Ironing RIAA E. Margan quality vinyl the analog tape recorder hiss will clearly be heard well above the vinyl noise! Therefore for a really low noise consider a CD instead of the LP. See Appendix 5 for the numerical integration of the noise spectrum in Matlab code.

A Couple of Interesting Variations

The conventional circuit configurations (Fig.3,4,5 ) are not ideal, but are good compromises. In the past, with the amplifier’s open loop gain and bandwidth low, the input impedance of the amplifier would present an additional load to the signal source, in particular with circuits of Fig.4,5 where the feedback varies with frequency. Modern amplifiers have adequate gain and bandwidth, so this became a non-issue. Nevertheless, non-inverting circuit configurations may suffer from input impedance asymmetry problems, since the feedback impedance is usually low and nearly constant (~ ), whilst the signal input impedance varies widely. The amplifier differential input actually senses a very small differential signal floating on a relatively large common mode signal, and under such conditions the impedance asymmetry may result in a certain degree of nonlinearity. In this application the input signal causing the common mode error is small, about 25 mVrms nominal at 10 kHz, but the purists among us may have their objections anyway. However, the impedance asymmetry allows another distortion ‘mechanism’ to appear, and it gets worse in phonograph preamplifiers because the signal increases with frequency. Since the cartridge impedance also increases with frequency, the input transistor internal capacitance (either from collector to base in bipolar junction transistors or from drain to gate in field effect transistors) changes nonlinearly with the signal, and the Miller effect (see Appendix 2 ) further amplifies this by the gain of the input stage, resulting in rather high intermodulation distortion (see Appendix 3 for details). Such errors can be reduced by using a very high impedance current source to provide bias for the input differential stage, and the cascode configuration to get rid of the Miller effect at the input, but this does not eliminate the distortion completely. The only way to get rid of common mode and dynamic nonlinearity errors is to use an inverting amplifier configuration, but ordinary inverting amplifiers have noise problems, because the input impedance is large (47 kH) throughout the spectrum, not just at the cartridge resonance, and to provide enough inverting gain the feedback impedance must be suitably larger, and large impedance means large thermal noise and large amplifier current noise components. But if the signal source can be made floating, Fig.26 shows an attractive inverting amplifier configuration having the advantages of both the non-inverting and inverting configuration, and disadvantages of none. The only problem with the floating source is that cartridges usually have their grounding and shielding tied to the left channel ground. This means that a rewiring of both the cartridge and the tone arm is necessary. Not many serious audiophiles will be prepared to perform such a delicate operation on their expensive equipment (with a possible exception of a few complete lunatics, like myself;o). Otherwise, the circuit components are the same in both cases, so there will be no change in the design philosophy. If you are apt using a sharp scalpel, and have a fine soldering iron, and other precision tools, a steady hand and good eye sight, you

— 36 — Ironing RIAA E. Margan might give it a try. In my case it worked perfectly, but to be honest I did not notice any dramatic changes in sound quality, most probably because the distortion of the basic circuit was already well below the distortion on the vinyl.

Rpu n R5 o 600 A a L pu Rb p 47k 2k2 300mH R11 47k Cb C2 C1 120pF C3 pu 10nF 34.5nF 1n5 R4 R2 R1 218 7k5 92.6k R3 206 R9 int 100k

Fig.26: Inverting configuration employing a floating signal source reduces input stage distortion.

For highest quality cartridges with low internal impedance and high sensitivity there is another circuit version is worth considering. It uses discrete jFETs for the front-end, and ICs for the rest of the circuitry, as shown below. Today’s best IC audio amplifiers in terms of both noise and distortion are probably the LME series (developed by National Semiconductor, now owned by Texas Instruments). In particular, the LME49990 offers 0.9 nVHz input voltage noise, 1.8 pAHz input current noise, along with a distortion figure with an impressive number of zeros before the first significant digit. If your favourite cartridge has high electrical impedance, the current noise component (as well as the input bias current) may still be too high for you, so the already mentioned OPA827, or the OPA1641, or the LME49880, all with a jFET input, and consequently negligible current noise, will be the natural choice, even if their voltage noise is slightly higher, about 4–5 nV Hz between 100 Hz and 10 kHz. Fig.27 shows a way around this dilemma if we consider using discrete or integrated pairs of jFETs for the amplifier input stage. The LSK170 is a single, and LSK389 a dual low noise jFET (both produced by Linear Integrated Systems; the devices are production process improved versions of the well known 2SK170 and 2SK389), with the input voltage noise of 0.9 nVHz at 1 kHz, and 2.5 nVHz at 10 Hz, and the input current noise down into the fA Hz level. A differential pair has a total noise voltage greater by . With these jFETs used to form the input differential amplifier stage, their output can be connected to an ordinary NE5534 in place of its own input stage, itself being disabled by connecting the input pins 2 and 3 to the negative supply rail. The input to the second stage is available at pins 1 and 8 of the NE5534, which are ordinarily used for offset correction. So we have a composite amplifier with extremely low input noise, very low distortion, a 600H load drive capability, and the circuit is easy to build. The connection, shown in Fig.27 , appeared in a data sheet catalogue of Siliconix jFETs in the late 1970s, using a 2N5911 dual jFET at that time.

— 37 — Ironing RIAA E. Margan

Vcc 100 Rd Rd 3k3 10 1µF 3k3 Vcc

33µF 6 LSK389 2 1 3 8 7 8 4 6 5 1 NE5534 o 2 5 2 6 4 n.c. p 4 LSK389 8 1 5 33µF n Iq R Vee t 10 1k0 Substrate 1–4 6 8 5 LSK389 2 4 1

1µF Rs Substrate 5–6 82 100 Vee Fig.27: Composite jFET and bipolar amplifier.

Fig.28 shows the noise performance of the circuit in Fig.27 , using the Grado Prestige Silver cartridge. Compare that to Fig.25 , where the noise of a OPA827 opamp with our typical average cartridge is shown.

–5

10

]

)

z

H (

t –6 r

q 10

s /

V en Totout

[

y

t

i

s

n

e

D

l –7 a

r 10

t

c

e

p

S

e

g

a

t

l o

V –8

e 10

s

i o

N en Ain en Totin en Zpu

en Zfb –9 10 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.28: Noise is much lower using a Grado Prestige Silver with a composite amplifier with jFETs.

— 38 — Ironing RIAA E. Margan

Note that jFETs, in contrast to bipolar transistors, exhibit their optimal noise performance at a relatively high drain current, about 2 mA according to LSK389 specifications. This means that drain resistors d of relatively low value must be added externally, since the internal resistors are 12 kH (as found in NE5534 specifications). The differential amplifier bias current Iq is set by the constant current source, itself realized by another pair of cascode connected jFETs with a source resistor s which can be adjusted for optimal bias current. And instead of a simple differential pair, a differential cascode can be used to further reduce distortion and increase the input impedance and bandwidth. See Appendix 3 for details. The LSK389 pair is relatively well matched, so the input differential stage will have a good common mode rejection. Nevertheless, as with any jFET differential stage, the input offset can be as large as 10 mV, so a proper DC reduction as described before is indispensable. Likewise, proper power supply decoupling is obligatory, given the low signal levels. Also in the case of using LSK389, there are two substrate pins on the chip, which must be connected to a suitable negative point in the circuit. Note that the LSK389 have relatively low gsoff , typically in the ~300 mV range, so a rather low resistor value is needed for s to obtain a 1 mA current per FET. As shown in Fig.28 , with such an amplifier very low input voltage noise can be achieved, lower than the thermal noise of the ~200 Ohm of . Such an amplifier is ideal for low impedance cartridges, like the Grado Prestige Silver (pu mH, pu H). Low inductance requires lower b for proper compensation and a low b for resonance damping. So with b 120 pF (which includes a 100 pF cable) and b kH the impedance peaking is low and is shifted up away from the critical 2–5 kHz region where the human ear is most sensitive. The resulting output noise voltage is around µVrms , giving a S N ratio of 81 dB. Fig.29 shows a further advantage of the low signal source impedance: the very high bandwidth extension up to 60 kHz.

35

30

25 Rpu

20 475

]

B

d [ 15 L pu n C i b Rb a 0.04H 120pF 27k G 10

pu 5

0

–5 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.29: A cartridge like Grado Prestige Silver with low inductance extends the bandwidth to 60 kHz.

To conclude, readers who like to experiment, or want to evaluate different cartridges and system setups, might want to build this adaptable circuit, shown in

— 39 — Ironing RIAA E. Margan

Fig.30 , which uses a triple switch to configure the circuit for accepting either a floating or a grounded signal source, as well as vary the input impedance to suit different cartridges.

The input impedance components bb and are broken into a fixed ( bb , ) and variable part (bv , bv ), the latter preferably adjustable in steps by jumpers or DIL binary switches. Note that the cable capacitance will be slightly higher in the grounded configuration, compared to the floating configuration, because of the cable shield, but with a low capacitance cable of 100 pF m, and a 50-60 cm length, it will be manageable.

Cb0 Rb0 4 1 Vcc Rpu S1 Ccab 7 p A o 3 mXLR 3 5 2 2 2 n V L pu Cbv R S2 ee bv 8 1 1 Cb0 Rb0 6 fb pu 3 RIAA S3 9 R3

R9

int Fig.30: A triple switch allows using a floating or a grounded signal source.

A differential output amplifier may be in interesting addition for professional audio use. Differential signaling is used to avoid ground loops and cancel any supply currents flowing between various ground points in form of a common mode signal. Here is a simple circuit which converts a single-ended input from the high pass filter into a differential signal. The circuit uses either an LME49725 or an OPA1632 fully differential amplifier, both capable of driving a 600H line. The only difference between the two is the connection of the chip thermal pad, see their data sheet. The LME may be preferred because its quiescent current is lower, only 5 mA. But other similar amplifiers can be used as well. All that is required at the receiving end is a differential to single ended converter in form of a usual opamp differential amplifier.

R1 R3 3k3 C 3k3 1 R5 1nF 15 ip on cm 3 Adiff mXLR 2 — op 1 in D

C 2 R6

R2 1nF R4 15 se 3k3 3k3 Fig.31: Differential output amplifier; can be LME49725, OPA1632, or similar.

— 40 — Ironing RIAA E. Margan

Appendix 1: A Zero-Pole Network for the Encoding Circuit Model

In circuit theory the transfer function of a network is expressed in a form of a ratio of two polynomials, with the complex frequency as the independent variable. The transfer function zero is the particular value of the independent variable at which the value of the numerator polynomial is zero. Similarly, the transfer function pole is that particular value of the independent variable for which the value of the denominator polynomial is zero (and hence the transfer function value is ). In general, zeros are associated with a phase lead, and poles with a phase lag. Fig.A1.1 shows a simple network suitable for exemplary analysis.

C1

i R1 o

R2

Fig.A1.1: Zero-Pole Network

If the voltage at the input i is non-zero, there will be a current through the network. In accordance with the Kirchhoff law the sum of the currents in the node o will be zero, so we can equate the incoming and outgoing current:  i o o (A1.1) 

We want to solve this for the ratio o i , which is the network transfer function. So we first try to get rid of the multiple fractions:  i o o (A1.2) 

i o  o (A1.3) We separate the voltages:

o   i (A1.4)  and we obtain the transfer function:  o (A1.5) i  

— 41 — Ironing RIAA E. Margan

The transfer function is a ratio of two polynomials of the first order in . But from (A1.5) it is difficult to get an insight, we want an expression like the general form:   Here is a frequency independent gain or attenuation, is the zero, and is the pole. We want to arrange the expression (A1.5) in a similar way. So we divide both the numerator and the denominator by :  o (A1.6) i    Then the zero is:  (A1.7) and the pole is:   (A1.8)  Alternatively, the time constant corresponding to the zero is:

7z (A1.9) and the time constant corresponding to the pole is:

7p (A1.10)  We first choose the value of the capacitor because capacitors are available in fewer values and tolerance. We select:

nF (A1.11)

From (A1.9) we obtain :

H (A1.12)

Then from the (A1.10) we obtain :

7p 7 p (A1.13)  7p 7 z  7 p

The value of is:

H (A1.14) Note that the resistance ratio is exactly:

(A1.15) because from (A1.9) and (A1.10) 7 7 3183µs/318.3µs  . z p

— 42 — Ironing RIAA E. Margan

In a similar manner we calculate the second network values for the 7z 75 µs and 7p 3.18 µs time constants. By selecting :

nF (A1.16) the values of resistors obtained are:

H (A1.17)

H (A1.18)

0 10 τ = 318.3µs p1 τp2 = 3.18µs

τp3 = 0.4µs

τz1 = 3183µs

-1 10 τz2 = 75µs

-2 10 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.A1.2: The responses of the zero-pole network of Fig.A1.1 for the two characteristic time constant pairs (red and blue), with the (optional) high frequency pole of the cutter driving amplifier (green). The combined responses give the realistic RIAA encoding curve.

In accordance with the relations above, we can model the RIAA encoding standard to serve as the reference circuit for checking the accuracy of the equalization network. In a circuit simulator programme we can simply use two networks as in Fig.A1.1 and separate them by dependent ViVo generators (voltage in, voltage out). Fig.A1.3 shows the configuration (with optional and ). Note that the gain of the dependent generator is set equal to the second stage attenuation at DC,  , bringing the system gain at 1kHz very close to unity.

C1 C2

33nF 10nF 1 R1 2 3 R3 4 5 R5 6 7 96454 7k5 E 39.78 E R2 E1 R4 2 C3 3 g 10717 1× 10nF 1× 23.562× 332.42

Fig.A1.3: Model of the RIAA encode network for circuit simulation testing.

— 43 — Ironing RIAA E. Margan

With the circuit in Fig.A1.3 an input signal with a 5 mV amplitude simulates the standard 5 cm s groove modulation reference level. In Fig.A1.4 t he combined frequency response of all the sections is shown:

6 — 7 5 — 1 1 10

—4 2 0 10 —2 1

-1 10 0 1 2 3 4 5 6 10 10 10 10 10 10 10 f [Hz] Fig.A1.4: Frequency response of the model of the RIAA encode network of Fig.A1.3 .

However, to test an actual RIAA amplifier in hardware we need a completely passive realization. Fig.A1.5 shows the configuration which provides a response identical to the response above. The circuit attenuates the signal g by about 200× at 1kHz, so 1V (0.5V at ) gives 5mV at . The circuit has a low output impedance at , going from 100H at l.f. to 76 H at h.f., so thermal noise will be low (<0.26 µV rms for 50 kHz bandwidth), and the cartridge thermal noise will be dominant. A suitable cartridge impedance (pu and pu ) can be added for a realistic test. Subtract 76 H from pu for correct high frequency damping. pu must be wound on a ferrite pot core, use a pot with a small air gap (~0.1 mm) for good h.f. response.

C1c

60pF (34.560nF) C1b

1n5 1 C1a C2 L pu 2 R4 3 Rpu 4 Rg 33nF 10nF 299.3 (R–75) 50 R3 C3 R1a R2 100 5.2nF 150k 7k5 g Rt 50 R1b S1 240k (92101 ) Fig.A1.5: Model of the passive RIAA encode network for testing an actual equalizer. g t H was subtracted from to get a correct response at high frequencies. optionally limits the bandwidth at 400 kHz. Attenuation at 1 kHz is about 200×. Optionally, pu and pu model the cartridge impedance.

— 44 — Ironing RIAA E. Margan

Appendix 2: Amplifier Gain and Bandwidth Analysis

We want to justify certain simplifications used in the circuit analysis regarding the difference between the real and ideal amplifier performance. Fig.A2.1 shows an amplifier with a differential input and some negative feedback (part of the output voltage fed to the inverting input):

p A(s) o n g

β

Fig.A2.1: A general differential amplifier model with feedback.

We express the output voltage o of a differential amplifier as a function of the input voltage difference p n , and the gain , itself a function of the complex frequency :  (A2.1) o p n The gain at DC (or at very low frequencies) has a value : (A2.2) At higher frequencies there is a cut off at a frequency where the output power is only of the power at very low frequencies. Since power is proportional to voltage squared, for the output voltage this represents a ratio (this is often being referred to as the  3 dB point, which is allowed to be expressed in dB only if the load impedance is independent of frequency, which is seldom the case). The frequency at which this cut off occurs is determined by the dominant pole d. For simple amplifiers the pole is real and negative:

d = d  1 d (A2.3) This is because we associate the negative half of the complex plane with passive components (energy loss), in contrast with the positive half, which represents active components (energy generation). In actual amplifiers the dominant pole is often determined internally by the effective input resistance of the second amplifying stage, and the total capacitance at the same node: = (A2.4) d The capacitance is either a sum of stray capacitances of both interconnected stages or is intentionally increased for stability reasons; more on stability later. If all other poles are well above the frequency at which the amplifier ceases to amplify, they will not influence the amplifier passband behaviour significantly. As is

— 45 — Ironing RIAA E. Margan shown in Fig.A2.2 , i nternally the amplifier can be modeled by three stages, with the first stage being a differential transconductance (current output) stage, the second is a voltage gain stage and the third stage is a unity gain power buffer.

p i o gm A2 1× n C R

Fig.A2.2: Internal amplifier model. The differential transconductance (current output) stage drives the voltage gain stage with its input impedance modeled by the parallel network, and the output is buffered by a unity gain power stage.

In accordance with this model, the total gain at DC must be a product of the transconductance gm by , and the voltage gain of the second stage :

gm (A2.5) whilst the frequency dependence is owed to the current g  driving the m p n parallel network: (A2.6)    Then the frequency dependence of the gain may be modeled mathematically by a Cauchy polynomial of the first order: (A2.7)  d where d = d  1 d  is the dominant pole (there are other poles at much higher frequencies, often above the transition frequency T , which is the frequency where the amplifier gain falls below unity, = ). T But the DC gain of expression (A2.7) varies with d , and we want the DC gain to be set by alone, whilst the frequency dependent part is determined by d . We therefore normalize this expression by first evaluating it at DC ( ): (A2.8) d  d and then take the ratio :   d d (A2.9)  d  d As a result we have the same expression as in equation (A2.6).

— 46 — Ironing RIAA E. Margan

Now we can express the gain by the frequency independent part and the frequency dependent polynomial in :

 d (A2.10)  d Therefore the output voltage can be written as:

=d o p  n (A2.11)  =d Note that this relation holds regardless of whether we are dealing with an amplifier with no feedback (open loop) or with some negative feedback (closed loop). The amplifier’s closed loop gain depends also on the feedback attenuation factor " , by which the output voltage is attenuated and fed to the inverting input:

n " o (A2.12) By inserting this back into (A2.11) we have:

=d o p" o (A2.13)  =d By separating the voltage variables:

=d = d o" p (A2.14) =d   = d we can define the closed loop transfer function:

=d o  = d (A2.15) =d p "  =d We get rid of the double fractions: = o d (A2.16) =  " p d and make the coefficients in the numerator and the denominator equal: =  " o d (A2.17) "  =  " p d and we have the definition for the system DC gain and its frequency dependence. By dividing the DC gain by we have the following form, from which it will be easier to recognize how the system response is affected by : =  " o d (A2.18) = " p " d With very high, say, or higher, the system cut off frequency is also very high: = =  " (A2.19) h d

— 47 — Ironing RIAA E. Margan and the system closed loop gain factor becomes: (A2.20) c "  " Fig.A2.3 shows the relations between the open and closed loop gain responses and the loop feedback factor.

105

p fd A(s) o n 104 g A0 |A(s)| β

103

n i

a |A(s)(β s)| G

102

fh 101 ––—1 | β(s) |

100 1 2 3 4 5 6 7 10 10 10 10 10 10 10 f [Hz] Fig.A2.3: Open loop and closed loop (" ) gain and frequency response comparisons.

Indeed, equations (A2.19) and (A2.20) tell us that the closed loop system gain will be closely approximated by the factor " over a very wide frequency range if the open loop gain is high enough. Alternatively, the same is true if the dominant pole can be made high, however, this is a technological issue with many limiting factors. There are of course secondary effects, and one of the most important is the slew rate limiting, which was the most severe distortion mechanism in early integrated circuits, and even in discrete power amplifiers. This mechanism is not immediately obvious from the internal amplifier configuration of Fig.A2.2 , yet it is fundamentally limited by that configuration. Fig.A2.4 shows a conventional input differential stage employing bipolar transistors. What is not explicitly shown in Fig.A2.2 is that the maximum current available from the gm stage is limited,  . The reason for this is the configuration of the input differential amplifier and its requirements. To understand this we must take a close look at Fig.A2.4 .

The transistors and form the differential amplifier. Its quiescent current bias is provided by the constant current source made by and . The transistors and form a current mirror, which provides symmetrical output current to the second stage, which consists of the and a current source .

— 48 — Ironing RIAA E. Margan

provides strong feedback around , thus keeping its collector current constant, and independent of the common mode signal  . Because of this, p n the impedance seen by the emitters of and is very high, allowing the emitters to share the bias current seamlessly, thus keeping low the error of the difference of the collector currents, c  c . This difference drives the second stage amplifier .

Q R 5 Q6 e2 i1 – i2

n Q p Q1 2 Q7

i0 Cc o 1× Q 3 Vref

Q4

Re1 i2

Fig.A2.4: A simplified schematic diagramme of a conventional differential amplifier.

Note that c is in the feedback of , which inverts the signal. For every mV of accumulated charge on the base side there are some  200 mV on the collector side of the capacitor c , and all this charge must be supplied by ? c . Therefore the Miller effect will increase the effective value of the loading capacitance by the gain (often between 200× and 500×). It is obvious that constant current is necessary for low differential error. But it is also obvious that the capacitance c slows the response. If the input voltage difference changes too quickly, the output voltage will not follow as quickly, and the result is momentary loss of feedback and saturation of the input differential amplifier. In such conditions one transistor of the , pair will be fully open and the other closed, thus the current difference becomes equal to and as a result the c will cause the voltage at the base of to increase linearly with time, instead of following the input signal variations. The frequency at which the output cannot follow the input depends on the input signal amplitude, as we are going to show. But the most important question is: can an RIAA amplifier (gain decreasing with increasing frequency!) suffer from slew rate problems?

The input resistance at the base of is equal to the emitter resistance e multiplied by the gain  ( is equal to the current gain):  (A2.21) b e The collector voltage is equal to o , and if the stage gain is , the base voltage must be ( inverts the signal!):

 o b (A2.22) For the difference current of frequency we can write:

— 49 — Ironing RIAA E. Margan

b  b o ?c  (A2.23) b c

If we assume eH and , the effective base resistance b will be about 20 kH . With a power supply of 15 V, the maximum output voltage o will be close to some 13 V, and with the base voltage b would change by only 0.065 V. The base current will then be b b b 3 µA. Now the input differential stage will have minimum noise if biased by of about 200µA, and ? cmax 0 . This means that the majority of input current will flow through the compensating capacitor c, and the influence of b can be neglected. So we can approximate (A2.23) with:  b b (A2.24)

c First we equate the voltages:

b  (A2.25) c and we can express the input admittance:

c  (A2.26) b Obviously, the effective input admittance is being increased by the system gain factor. This increase was first explained by John M. Miller ( J.M. Miller , Dependence of the input impedance of a three-electrode vacuum tube upon the load in the plate circuit, Scientific Papers of the Bureau of Standards, 15(351):367–385, USA, 1920), so the effect and the equivalent capacitance M are named in his honour:  (A2.27) M c Since the frequency operator is equivalent to a time differential, , we can also write this as: b (A2.28)  c The derivative b is the slew rate at the base of . Of course, the output slew rate o is greater times: o  b (A2.29) By assuming a sine wave of amplitude and frequency = , the output signal is:

o sin = (A2.30) The maximal slope of such a signal is obtained by a time differentiation: o =cos = (A2.31)

— 50 — Ironing RIAA E. Margan and since the cosine function has a maximum of 1 at , the slew rate is both amplitude and frequency dependent: o = (A2.32) max If we assume the total gain distributed as × and ×, the value of the compensation capacitance c pF, and the available maximum differential current µA, the output slew rate limit will be a generous 9 V µs. In contrast, an ordinary RIAA amplifier does not have to put out more than 3.5 Vpeak (+20 dBm) at 20 kHz, which is equivalent to 0.44V µs. Clearly, in normal operation an RIAA amplifier will never get near the limit, but for the slowest of classical operational amplifiers, like the µA741 (0.5 V µs). Also, in contrast to amplifiers with purely resistive feedback, the RIAA equalization amplifier of Fig.4 will have a feedback factor high and nearly constant with frequency, as illustrated in Fig.A2.5 , up to the highest frequencies of interest, because of the gain falling with frequency.

105 p f d A(s) o A0 n 4 10 g

RIAA

103 n i β(s)Ao (s)

a |Ao (s)| G

102

101 1 ––— R4 β(s) 1 + —— R3

100 1 2 3 4 5 6 7 10 10 10 10 10 10 10 f [Hz] Fig.A2.5: Because of the frequency dependent feedback the RIAA equalization amplifier has a feedback factor " high and changing very little with frequency (in contrast to an amplifier with purely resistive feedback, Fig.A2.3 , where the feedback factor is falling at a rate of  dB decade, becoming only at the system cut off frequency h ).

Because the system linearity is governed by the amount of feedback, having more feedback at higher frequencies means lower distortion. Of course, other distortion mechanisms may (in suboptimal designs) spoil the performance, but having enough feedback is always beneficial.

— 51 — Ironing RIAA E. Margan

Audiophiles still often engage in endless discussions on why and how does feedback reduce distortion. Why is feedback more effective for low frequencies, why it seems to be more effective with certain distortion mechanisms and less with others, what are its limitations, and how does it sometimes make the problem worse. The short answer is that an amplifier with a closed loop feedback amplifies any externally generated signals, but reduces any internally generated signal. Signals within the feedback loop, be it intentionally introduced signals, or a consequence of transfer function nonlinearity, or noise, are being all reduced by the feedback factor, that is what remains of the open loop gain when we take away the closed loop gain. But this is only a general rule of thumb, and to see how exactly the system behaves in some particular cases we need to do some modeling and model analysis. A simplified amplifier distortion mechanism model is shown in Fig.A2.6 . An ordinary amplifier is usually composed of an input differential voltage gain stage , followed by a unity gain power buffer stage, with the negative feedback loop closed by the resistive divider having an attenuation of " . Most of the distortion is usually generated by the output buffer in various forms: crossover distortion, current gain nonlinearity, gain difference between the output transistor pair, etc. All these mechanisms can be included in the model by adding a summing stage D , where some arbitrary distortion signal d is summed with the signal a from a distortionless voltage amplifier, and that sum appears as o from a distortionless output stage.

p A a o s n Σ +1 d

Rf

Rg R = ———g Rf +Rg

Fig.A2.6: Simplified amplifier distortion model: a distortionless differential input stage with the gain drives a distortionless summing stage D , followed by a distortionless unity gain buffer ( 1). A resistive divider closes the feedback loop, dividing the output signal by " . Any internal nonlinearity and noise is modeled by a generator producing the distortion signal d .

In this way the distortion as part of the output signal returns to the input by the feedback loop attenuated by " , and then amplified by  (phase inverted!), where it becomes part of the amplified signal a , which is again summed by the distortion signal d, and so forth. In this way the distortion signal is being cumulatively reduced by the feedback loop factor " . Following the input signal path in Fig.A2.6 p s we can write for the differential voltage gain stage:  (A2.33) a s n and for the output voltage:

o a  d (A2.34)

The feedback attenuates the output voltage to n which closes the loop:

— 52 — Ironing RIAA E. Margan

n " o (A2.35) By inserting (A2.35) into (A2.33) we have: " (A2.36) a s o and taking this result into (A2.34) we have: "  (A2.37) o s od This we solve for o , first by multiplying each part in the parentheses by :

o s " od  (A2.38) then transporting the factors containing o on the left hand side:

o " o sd  (A2.39) and extracting the common o factor: "  (A2.40) o s d and finally by dividing all by the feedback factor  " :  (A2.41) o" s  " d

We can now rewrite the term multiplying the input signal s in the following way: " (A2.42) "  " " By making very high the term " " . This can be thought of as a small error term (& ) of the closed loop gain " . So in the end we have the signal s amplified by the closed loop gain 1" (set by the resistor ratio), and in addition the distortion signal which is reduced by a factor  " :  (A2.43) o" s  " d or explicitly:

f  g o  s d (A2.44) g g  f  g

5 For example, by making f 9 g and , the closed loop signal gain will be very close to ×, and the distortion will be reduced by as much as  . Of course, the trouble is that is not constant, but decreases with frequency, as we have seen before. So instead of just maximizing it is often a better idea to increase the frequency of the dominant pole from the usual 10–100 Hz to 1 kHz, or higher if possible; this then provides more loop gain at high frequencies and allows the amplifier to react faster to any error. Of course, in RIAA correction the gain decreases with frequency too, leaving more loop gain for correction. As seen in Fig.A2.5 , at 1 kH the loop gain can be about 500× and at 10 kHz still about 100×.

— 53 — Ironing RIAA E. Margan

Appendix 3: A Discussion on Input jFETs

The book “Designing with Field effect Transistors” is a classical reference, published in 1981, written by the application staff of Siliconix, Inc., and edited by one of the corporation founders and the application department leader Arthur D. Evans, [9 ]. The following analysis is not a substitute for it, or any other book; I only present some of the important points in a didactic way for a quick reader’s insight. As a general rule, at the amplifier’s input a bipolar junction transistor (BJT) differential pair will be preferred for low impedance signal sources, and a junction field effect transistor (jFET) differential pair will be preferred for high impedance signal sources. The dominantly inductive (within the audio band) nature of a phonograph cartridge means that there is a low impedance at low frequencies and a high impedance at high frequencies. Since this impedance starts to increase from about 1 kHz, and the noise power also increases with frequency, and the human ear is most sensitive in the range between 2–5 kHz, the system noise should be made low within this region. Another reason for choosing jFETs at the input is that their performance with respect to noise becomes better at higher drain current, which also makes it easier to obtain a higher gain, higher bandwidth, and higher slew rate limit, thus also a lower intermodulation distortion. In addition their larger gs (compared to B 26 mV of a BJT) means larger signal handling, better linearity, and a more gradual saturation. In contrast, BJTs have usually their optimal noise performance at a relatively small collector current, compromising mostly the slew rate. On the negative side, matching of a JFET pair is usually worse than for BJTs, meaning a much higher DC offset. And because of their high quiescent current (desirable for noise) a lower drain resistance is necessary for adapting to the following amplifier stage, which means a somewhat lower system gain than with BJTs. Another point of concern might be the influence of the parasitic gate-drain capacitance gd , mainly at frequencies in the upper audio band, because of the high source impedance. Also, gd varies nonlinearly with the signal, causing larger intermodulation distortion at higher frequencies. This can be most problematic when the total system gain is inadequately low, since it falls with frequency anyway. But let us look at the equations relating the most important jFET parameters. We start from the ‘static’ transfer function, the drain current as a function of the gate- source voltage, , shown in Fig.A3.1 . An N-channel jFET is biased in a way d gs similar to a thermionic triode, a positive drain voltage dd , and a negative gate voltage gs (obviously, for P-channel jFETs the voltage and current polarities change). The gate is in the form of a reverse biased diode with the channel, and the resulting field modulates the effective channel width, and consequently the current through the channel. Like in a thermionic triode, the current through the device, d , has a maximal value, dss , when gs , and d when gs p , the so called pinch-off voltage (the gate voltage which causes a field strong enough to deplete the channel of charge carriers, so there can be no current; in manufacturing datasheet p is ordinarily labeled as gsoff ; in literature a T label can often be found, meaning a conducting threshold voltage).

— 54 — Ironing RIAA E. Margan

However, unlike a triode, the modulation of the channel width also changes the parasitic gate-drain capacitance gd and this change is nonlinear, so that will have some unwanted effects, which will be discussed a little later. The similarity with a thermionic triode extends also to the transfer function law: The drain current varies in an exponential manner with the gate-source voltage, which can be written as: gs d dss  (A3.1) p  The exponent can be experimentally found to be 2, so the law is approximately quadratic. In our analysis we shall assume for simplicity an exact quadratic function, but the results would not be very different with an actual value.

3.0 Idss

2.5 Vdd Rd gsf2 id out 2.0 Q1 out

WP2

]

A

m [

1.5

Vgs in

d

I

in 1.0

out WP1 0.5

Vp g in sf1 0 –2.0 –1.8 –1.6 –1.4 –1.2 –1.0 –0.8 –0.6 –0.4 –0.2 0 Vgs [V] Fig.A3.1: The jFET drain current as a function of gate-source voltage is approximately quadratic. The dynamic small transconductance is bias dependent and is greater at lower gate voltage and higher drain current.

We are interested in the small signal gain of a jFET, and therefore we need a derivative of the function (A3.1) at some particular DC bias setting (‘working point’). The common source forward transconductance gsf is found by first choosing some DC gs resulting in some DC d , and we introduce a small AC signal about that DC level, with the amplitude in? gs , and consequently out d ? d . To maximize the dynamic range of this simple amplifier we set the value of d such that dd dd .

out d ?d gsf (A3.2) in ?gs gs , d

— 55 — Ironing RIAA E. Margan

We need to separate the DC and AC variables. To make this easier we shall rewrite equation (A3.1) as: dss dss (A3.3) d  p gs p p gs gs p p and further: dss dss (A3.4) d dss   gs gs p p As we make the current difference and the voltage difference infinitesimally small, we are accustomed to write the derivative as instead of the (difference) ? . With differentiation we eliminate the DC term, with a constant and a linear term remaining: g d dss dss (A3.5) sf   gs gs p p

Note that when gs , then d dss , and g sf g sf , which means that the maximal transconductance achievable for a jFET is given by that constant term in (A3.5):

dss gsf  (A3.6) p and this figure is often stated by the manufacturer in the device’s data. FETs tend to have large tolerances for p , say a nominal  2 V value can vary from  0.5 V to 6 V in an actual device, with corresponding variations of dss , so g sf usually gives a more reliable performance estimation. Note also that the remaining gs term in (A3.5) is the DC bias value, and since the term has a sign opposite to the gsf , it shows how the g sf is reduced by making gs larger. The negative value of gsf means that the output signal is inverted with respect to the input signal. By combining (A3.5) and (A3.6) we can write:

gs gsf g sf  (A3.7) p  or alternatively:

d gsf g sf (A3.8) dss An often neglected aspect of jFET performance is the output conductance:

?d gos (A3.9) ?ds

Because ds dd  d d , it is obvious that the signal gain also depends on gos and consequently on the supply voltage and the drain resistance:

o d gsf (A3.10) g g os d so only if gos d can the signal gain be approximated as g sf d .

— 56 — Ironing RIAA E. Margan

This condition requires a suitably high supply voltage dd , so that the output signal variation o ? d d can be relatively small in comparison with dd .

45

40

35

30

25 n

i a 20 G

15

10

5

0 –0.5 –0.4 –0.3 –0.2 –0.1 0 Vgs [V]

Fig.A3.2: Gain as a function of gs , with dd 12V and d 3.3kH .

We must now discuss some dynamic effects. At high frequencies and large amplitudes the parasitic gate-drain capacitance gd becomes particularly important. The capacitance per unit area can be expressed as:

(A3.11) bi  g 

Here bi represents the ‘built in’ space charge potential, usually about 0.6 V, and is a constant determined by the channel geometry. For an abrupt junction the exponent , and for a linearly graded junction . A typical FET has a grading coefficient between these values. An acceptable approximation is .

A similar relation is valid for the gate-source capacitance gs . Because of the lower voltage across it (only gs ), gs is typically much larger than gd , and it also varies more with the gate voltage. However, the variation of gd will often be dominant because of the Miller effect, which was already discussed in Appendix 2 . To make the analysis a bit easier for the purpose of acquiring a feeling of what is going on, let us assume that the signal generator impedance is purely resistive, say G kH . Then the gate input capacitance will form a low pass filter for the signal, with a transfer function magnitude:

g (A3.12) G  1 in G where G is the signal generator voltage, g is the jFET gate voltage, and in is:   (A3.13) in gs gd

— 57 — Ironing RIAA E. Margan

and here we have accounted for the Miller effect caused by the voltage gain . Cgs and gd are functions of gs and gd , so we need to determine the bias condition and gain . In general a junction capacitance j varies with the junction voltage j : j (A3.14) j  bi 

Here represents a measured nominal capacitance for a specific bias, as given in the manufacturer’s data sheet. With j known for a certain bias, we can determine j for a different bias as:

bi  j j j (A3.15) bi  j 

We can determine the required gs from (A3.1), here assuming :

d gs p  (A3.16) dss 

Then is determined by (A3.10), and we can see that j gd :

gd dd  dd  g (A3.17) where g is the gate to ground potential, which in the case of a grounded source is equal to gs . For example, as shown in Fig.A3.3 , the LSK389 data specify the input capacitance as iss pF, and the reverse transfer capacitance rss pF. Note that those values are somewhat larger than gs and gd , respectively, but the ratio is similar. However, at a bias of gs 150 mV and d 1.8 mA the gain will be about 30×, and the effective input capacitance owed to becomes  , or gd gd about 35 pF. Of course, the variation of the capacitance with the signal is amplified by the same gain factor. Let us see what impact will that have on a sine wave of 5 kHz. The input signal amplitude (at nominal 5 cm s modulation) will be 17 mVpeak, so the gs bias of  150 mV is being varied by ±11%, which in turn modulates the total input capacitance by a few %. With the signal source impedance of our typical average cartridge, this will introduce a distortion of a few %, mostly of 2nd harmonic. Fig.A3.4 shows the input and output signal and their normalized difference. The signal gain is about 30×. Note however that this analysis is valid for a single jFET amplifier. But based on this some amplifier designers conclude that a similar distortion mechanism is present in differential amplifiers as well. Of course, the differential signal level is reduced by feedback by s few orders of magnitude, but in noninverting amplifiers the full signal amplitude is present in the form of a common mode signal, with equally devastating effects. The question is: how much truth is there is those claims? And if that is not so, why? First thing to note is that in a differential jFET pair the source of one device is loaded by the source of the other, acting in a complementary manner for the

— 58 — Ironing RIAA E. Margan

differential signal. This means that the nonlinearity effect of gs is greatly reduced, even in case of a mismatch between the two devices.

100 90 id Cgd 80 d 70 Cds ] g Q F

1 p [

60

m

C

Cgs 50 , d

Cm = Cgd(1+A) g

C

40 ,

s g

30 C

Cgs 20 10 Cgd 0 –0.5 –0.4 –0.3 –0.2 –0.1 0 Vgs [V] Fig.A3.3: Input capacitance of a typical low-capacitance jFET is the sum of the gate- source capacitance and the Miller capacitance  . The capacitances vary gs gd nonlinearly with the signal. The Miller effect makes the largest capacitance variation.

0.6 6 0.5 5 0.4 4 Vout

0.3 3

] ]

V 0.2 2

[

%

,

[

t

u

0.1 1 r

r o

Vout_err e

V

_

t

, 0 0

u

n

i

o V

–0.1 –1 V

× 0

3 –0.2 –2 –0.3 30×Vin –3 –0.4 –4 –0.5 –5 –0.6 –6 0 20 40 60 80 100 120 140 160 180 200 t [µs] Fig.A3.4: Distortion of a 5 kHz signal for a single jFET amplifier; see text for details.

Next, gd is also being modulated in a complementary manner, but the feedback impedance in an RIAA equalizer is always very low, whilst the input impedance varies widely. However, the cable connecting the cartridge to the amplifier will usually have 100 pF m, with some additional capacitance in parallel, necessary for the correct inductance compensation, and both appear in parallel with the amplifier input capacitance, so the variations of the input capacitance represent a much smaller fraction of the total.

— 59 — Ironing RIAA E. Margan

As the differential signal is reduced by feedback, so is the nonlinearity of the gain transfer function and of the effective input capacitance. This means that more feedback in a loop is a desirable factor, as long as the bandwidth is correctly taken care of, and any secondary poles of the amplifier are kept below the unity gain level, thus the amplifier stability is not compromised. What about the common mode signal? It is being reduced by the symmetry of the differential pair, but this can be also affected by the impedance of the current source which supplies the bias current to the pair. If the impedance of the current source is not high enough, the sources of the differential pair do not share the same current, some of the current is lost mainly through the drain capacitance and the real conductance of the current source. With spoiled symmetry, part of the common mode signal becomes a differential mode signal, causing trouble. A simple way of greatly increasing the impedance of the current source is to use the ‘cascode’ configuration. The name stems from the valve tube epoch circuits in which the anode of the first device was connected to the cathode of the second, forming a ‘cascade to cathode’. The configuration using semiconducting devices is similar, but different types require different bias method. The configuration using jFETs is particularly simple, Fig.A3.5 , because of the similarity of the gate voltage polarity with thermionic devices.

100 id 90 Cgd2 d2 80 Q 2 g2 C 70

gd1 ]

F

p [ d1 60

Cgs2 m

g1 Q C

1

50 ,

d

g

C

Cgs1 40 , s

Rs g 30 C

Cgs1 20

10 gd1 Cm = 2Cgd1 C 0 –0.5 –0.4 –0.3 –0.2 –0.1 0 Vgs [V] Fig.A3.5: A jFET cascode connection and its capacitances. Because the voltage on is equal to gs2 and changes very little, the effective input capacitances also changes very little. The Miller effect is greatly reduced by the low impedance of source loading the drain of , making the gain , so m gd .

The cascode connection has high linearity in the saturation region, also for very large signals. The Miller effect is greatly reduced because the drain of is loaded by the source of , making its gain , so the effective Miller capacitance is only m gd , and linearity is improved because the drain voltage of varies little. Therefore bandwidth and linearity are extended to high frequencies and high signal levels. Also the leakage current to the gate of is greatly reduced, because its dg is small, lower than the gs of .

— 60 — Ironing RIAA E. Margan

We are not going to deal with the cascode amplifier in full length, but only show how the gain depends on the gain of individual stages. The gain of (which acts as a common source stage) can be written as:

d d  gm (A3.18) g  d and the gain of (which acts as a common gate stage) can be approximated as:

d d d  gm (A3.19) s  d d where d is the drain resistance of . Two things become important here: first, reduces the loading of the drain of by gm d :

d  d s (A3.20) gm d and second, the system gain is the product of the gains of each stage:

d ddd gm g m (A3.21) g  ddd which by inserting () into () becomes: g g d d (A3.22) m m d g   d md d d Note that because the denominator is much greater than the numerator, the effective gain of a cascode stage is similar to that of a single common source stage, but its dependence on internal resistance variability is greatly reduced. Therefore it makes sense to employ the cascode also for the differential pair itself, as in Fig.27 , since such a simple circuit addition solves many problems.

0.6 30

ddif dse 0.4 20

in 0.2 10

Dse ]

] Ddif

%

V

[

[ 0 0

D

n i –0.2 –10

–0.4 –20

–0.6 –30 0 100 200 300 400 500 600 700 800 900 1000 t [µs] Fig.A3.6: A computer simulation, using model parameters of the SK170 jFET, compares the distortion of a jFET single-ended and differential cascode circuit. Note that the signal voltage in is not drawn to scale. The single-ended cascode has some 5% distortion, dominantly 2nd harmonic, whilst the differential cascode has only 0.5%, but dominantly 3rd harmonic, both at 0.4V peak output at 2 kHz. The loop gain of an ordinaary opamp will reduce this by at least 500×.

— 61 — Ironing RIAA E. Margan

Appendix 4: The Third Order 10 Hz High Pass Filter

f R12 R14 C11 C12 C13 A o 1 3 2 R11 R13

Fig.A4.1: Third order high pass filter of the Sallen–Key configuration

From the theory of active filters, in particular the Sallen–Key circuit topology we know that the component values spread and the system’s response sensitivity to component variations is minimized by making all the serial components (capacitors in this case) equal: . We have already derived the transfer function from (64) to (71): f o        If we compare this with the general third order high pass form :    3 (A4.1)        3 33 3 we note that the gain , whilst the system cut off frequency is obtained from =  . Still, we have four component values to define, but only three polynomial coefficients. But we can normalize the values by making , obtain the resistor ratios from the polynomial coefficients, and then denormalize the products for the required cut off frequency.

Anyway, the pole values are also given in normalized form to = rad s, either by tables for systems of different order, or by numerical algorithms to compute the values. The algorithm for Bessel poles is quite complicated, but the algorithm for polynomial coefficients is relatively simple. Bessel polynomials follow these rules:    (A4.2)   The coefficients of the resulting polynomial of order can be calculated as:   (A4.3)  ,,, ,  ,

— 62 — Ironing RIAA E. Margan

For the third order ( ) Bessel system the polynomial coefficients are:

   (A4.4)    (A4.5)    (A4.6)    (A4.7) The denominator of the transfer function will then be the following polynomial:

     (A4.8) The poles for this polynomial are:

 

 

 As stated in the main text, these are the poles for a low pass system, and for a high pass system we need to invert the poles, i . So the values to be used are:       (A4.9) Now we can solve the following set of equations:

   3  (A4.10)

 3  3  (A4.11) 

 3 (A4.12) To shorten the expressions and reduce the possibility of transcription errors we set:

   3 (A4.13)

 3  3 (A4.14)

 3 (A4.15) And for simplicity we also reassign:

(A4.16)

(A4.17)

(A4.18)

— 63 — Ironing RIAA E. Margan

Then, from (A4.11) and (A4.14) we have:  (A4.19) 

 (C.20)  From (A4.12) and (A4.15): (A4.21)  

(A4.22)   (A4.23)

 (A4.24) From (A4.10) and (A4.13):  (A4.25)  

 (A4.26)  

 (C.27)   

 (A4.28)     (A4.29) 

— 64 — Ironing RIAA E. Margan

  (A4.30)

  (A4.31)

  (A4.32)

   (A4.33)

   (A4.34)

We have now a third order equation for . To simplify it further, we can substitute:  (A4.35) (A4.36)  (A4.37) The equation (A4.34) becomes:

  (A4.38)

We solve this for by using a general form solution for the third order equation:

      sin arctan     (A4.39)

Note that there are also two complex-conjugate solutions for , but only the real value solution is needed. From a known we can then find:

 3  3  (A4.40)

(A4.41)

We can now find from a given  3 dB bandwidth limit = 3 : 0 1 = (A4.42) 3

1 (A4.43) = 3

— 65 — Ironing RIAA E. Margan

For Butterworth poles the procedure is identical, except that we start from the values for a Butterworth 3rd -order system:

 

 

 (A4.44) and we do not need to invert those, because those poles are on the unit circle (as for the whole Butterworth family), so the inverted values are the same.

— 66 — Ironing RIAA E. Margan

Appendix 5: Matlab Code Used for the RIAA Amplifier Design

% RIAA optimization % NOTE: the figure numbers are not the same as in the text!

% frequency vectors (100 samples/decade) f=logspace(0,6,601); s=j*2*pi*f; % discrete frequencies fp=[1,4,10,20,50,500,1000,2122,20000,50000,400000]; sp=j*2*pi*fp; % 1kHz f1k=1000; s1k=j*2*pi*f1k; % == s(301) % 50kHz f50k=50000; s50k=j*2*pi*f50k;

% time constants definitions: T1=3183e-6; % [s] .... f1=50Hz T2=318.3e-6; % [s] .... f2=500Hz T3=75e-6; % [s] .... f3=2122Hz T4=3.183e-6; % [s] .... f4=50kHz T5=0.4e-6; % [s] .... f5=400kHz

% Inverse functions % nominal DC attenuation for all inverse functions: ax=T2*T4/(T1*T3); % 3 time constants: Fi3=ax*(s*T1-1).*(s*T3-1)./(s*T2-1); % 4 time constants: Fi4=ax*(s*T1-1).*(s*T3-1)./((s*T2-1).*(s*T4-1)); % 5 time constants: Fi5=ax*(s*T1-1).*(s*T3-1)./((s*T2-1).*(s*T4-1).*(s*T5-1)); % Magnitudes: Mi3=20*log10(abs(Fi3)); Mi4=20*log10(abs(Fi4)); Mi5=20*log10(abs(Fi5));

% reference value at 1kHz for normalization: % Fi41k=(s1k*T1-1).*(s1k*T3-1)./((s1k*T2-1).*(s1k*T4-1)); % Mi41k=20*log10(abs(Fi41k)); figure(1) semilogx(f,Mi4,'-r' , ... f,Mi5,'-m' ) title('Input - inverting RIAA' ) xlabel('f [Hz]' ) ylabel('Attenuation [dB] ') grid

% RIAA equalizer reference values: % for T3=75e-6; R2=7500; C2=1e-8; % Theoretical (no T4): % R1=R2*(T1-T2)/(T2-T3); --> result too low! % artificial correction with T4: R1=R2*(1+T4/T3)*(T1-T2)/(T2-T3); C1=T1/R1; % feedback impedance Zfb=1 ./(1/R1+s*C1) + 1 ./(1/R2+s*C2); % at 1kHz: Zfb1k=1 ./(1/R1+s1k*C1) + 1 ./(1/R2+s1k*C2); % at 50kHz: Zfb50k=1 ./(1/R1+s50k*C1) + 1 ./(1/R2+s50k*C2);

— 67 — Ironing RIAA E. Margan

% nominal attenuation at DC: a_dc=T1*T3/(T2*T4); % calculate total R34=R4+R3: R34=(R1+R2)/(a_dc-1); disp(['--> R34 = ' , num2str(R34), ' Ohm' ]) % nominal gain requirement % output level: -10dBm (0.1mW at 600 Ohm) % input level: 5mV rms @ 5cm/s modulation velocity @ 1kHz Ar1k=sqrt(1e-4*600)/5e-3; R3=abs(Zfb1k+R34)/Ar1k; R4=R34-R3; disp('------' ) disp(['--> R2 = ' , num2str(R2*1e-3), ' kOhm' ]) disp(['--> C2 = ' , num2str(C2*1e+9), ' nF' ]) disp(['--> R1 = ' , num2str(R1*1e-3), ' kOhm' ]) disp(['--> C1 = ' , num2str(C1*1e+9), ' nF' ]) disp(['--> R4 = ' , num2str(R4), ' Ohm' ]) disp(['--> R3 = ' , num2str(R3), ' Ohm' ]) disp('------' )

% 50kHz output low pass filter 1st-order: Rf1=2120; Cf1=1.5e-9; Tf1=Cf1*Rf1; % complex frequency response: J1=1 ./(s*Tf1+1); % magnitude: Mj1=20*log10(abs(J1));

% 50kHz Butterworth low pass filter 2nd-order: % normalized poles: p2=(sqrt(2)/2)*[-1-j;-1+j]; % actual poles for 50kHz bandwidth: p2=p2*2*pi*5e+4; % complex frequency response: J2=prod(-p2) ./((s-p2(1)).*(s-p2(2))); % magnitude: Mj2=20*log10(abs(J2));

% combined effect of J1 and J2: J3=J1.*J2; Mj3=20*log10(abs(J3));

% equalizer gain Gr1 = 1 + R4/R3 + Zfb/R3; Mgr1=20*log10(abs(Gr1)); % with LPF J1: Gr2 = Gr1 .* J1; Mgr2=20*log10(abs(Gr2)); % equalizer driving with Fi4: % normalization to 1kHz: Fi4n=Fi4/Fi4(301); Mfi4n=20*log10(abs(Fi4n)); FGr1=Fi4n.*Gr1; FGr2=Fi4n.*Gr2; Mfgr1=20*log10(abs(FGr1)); Mfgr2=20*log10(abs(FGr2)); figure(2) semilogx(f,Mgr2, '--b' , ... f,Mgr1, '-b' , ... f,Mfi4n+Mgr1(301), '-m' , ... f,Mfgr1, '-r' , ... f,Mfgr2, '-c' , ... f,Mj1+Mgr1(301), '-k' , ... f,Mj2+Mgr1(301), '-g' , ... f,Mj3+Mgr1(301), '-g' , ...

— 68 — Ironing RIAA E. Margan

f,Mj3+Mgr1(301), '--k' ) axis([min(f), max(f), 0, 65]); title('Amplifier - RIAA Equalizer' ) xlabel('f [Hz]' ) ylabel('20*log10(Vo/Vi) [dB]' ) grid

Fc1=(Fi4/Fi4(301)).*Gr1; % Fi re 1kHz Fc2=(Fi5/Fi5(301)).*Gr1; % Fi re 1kHz Fc3=(Fi4/Fi4(301)).*Gr2; % Fi re 1kHz Fc4=(Fi5/Fi5(301)).*Gr2; % Fi re 1kHz Mc1=20*log10(abs(Fc1)); Mc2=20*log10(abs(Fc2)); Mc3=20*log10(abs(Fc3)); Mc4=20*log10(abs(Fc4)); figure(3) semilogx(f,Mc1, '-r' , ... f,Mc2, '-m' , ... f,Mc3, '-g' , ... f,Mc4, '-b' ) title('Input, Compensation, and Resulting Output' ) xlabel('f [Hz]' ) ylabel('20*log10(Vo/Vi) [dB]' ) grid put=4; % Pickup Z % ------if (put==1) % Stanton ST500E MkII Lp=0.400; % [H] Rp=635; % [Ohm] Rbn=47e+3; % [Ohm] Cbn=100e-12; % [F] Rbo=47e+3; % [Ohm] Cbo=250e-12; % [F] elseif (put==2) % Sonus Blue Label Lp=0.150; % [H] Rp=300; % [Ohm] Rbn=47e+3; % [Ohm] Cbn=200e-12; % [F] Rbo=47e+3; % [Ohm] Cbo=39e-12; % [F] elseif (put==3) % General Average Lp=0.300; % [H] Rp=600; % [Ohm] Rbn=47e+3; % [Ohm] Cbn=120e-12; % [F] Rbo=47e+3; % [Ohm] Cbo=90e-12; % [F] else % Grado Prestige Silver Lp=0.045; % [H] Rp=475; % [Ohm] Rbn=47e+3; % [Ohm] Cbn=250e-12; % [F] Rbo=27e+3; % [Ohm] Cbo=120e-12; % [F] end

% amp input impedance - nominal cartrdige load Zin=1 ./(1/Rbn + s*Cbn); % with optimized load Zio=1 ./(1/Rbo + s*Cbo);

— 69 — Ironing RIAA E. Margan

% cartridge + load transfer function Hpun=Zin./(Rp+s*Lp+Zin); Hpuo=Zio./(Rp+s*Lp+Zio); Mpun=20*log10(abs(Hpun)); Mpuo=20*log10(abs(Hpuo)); figure(4) semilogx(f,Mpun,'-g' , ... f,Mpuo,'-b' ) axis([min(f), max(f),-4,1]); title('Pickup with Loading' ) xlabel('f [Hz]' ) ylabel('Vpu [dB]' ) text(30,-0.8,[' Lp = ' , num2str(Lp*1000), ' mH' ]) text(30,-1.3,[' Rp = ' , num2str(Rp), ' Ohm' ]) text(30,-1.8,['Rbn = ' , num2str(Rbn/1000), ' kOhm' ]) text(30,-2.3,['Cbn = ' , num2str(Cbn*1e+12), ' pF' ]) text(30,-2.8,['Rbo = ' , num2str(Rbo/1000), ' kOhm' ]) text(30,-3.3,['Cbo = ' , num2str(Cbo*1e+12), ' pF' ]) grid

Fcxn=Fc4.*Hpun; Fcxo=Fc4.*Hpuo; Mcxn=20*log10(abs(Fcxn)); Mcxo=20*log10(abs(Fcxo)); figure(5) semilogx(f,Mc4, '-m' , ... f,Mpun+Mgr1(301), '-g' , ... f,Mpuo+Mgr1(301), '-m' , ... f,Mpuo+Mgr1(301), '--g' , ... f,Mcxn, '-k' , ... f,Mcxo, '-m' , ... f,Mcxo, '--k' ) axis([min(f), max(f), 30, 35]); title('Output, pickup, and combined response' ) xlabel('f [Hz]' ) ylabel('Vout, Vpu*Vout [dB]' ) grid

% DC integrator, HPF 1Hz Rint=47000; Cint=3.3e-6; wint=1/(Cint*Rint); K1=s ./(s-wint); Mk1=20*log10(abs(K1)); % HighPass Filter 3rd order % Bessel Low-Pass, normalized to 1Hz [z,p3]=bestap(3,'n'); % inversion for High-Pass, 1Hz p3=1 ./p3; % for 10Hz: p3=p3*2*pi*10; % High-Pass Response: K3=s.^3 ./((s-p3(1)).*(s-p3(2)).*(s-p3(3))); Mk3=20*log10(abs(K3)); % Butterworth, 10Hz [z,q3]=buttapx(3); q3=q3*2*pi*10; K3u=s.^3 ./((s-q3(1)).*(s-q3(2)).*(s-q3(3))); Mk3u=20*log10(abs(K3u)); figure(6) semilogx(f, Mk1, '-r' , ... f, Mk3u, '-g' , ... f, Mk3, '-b' ) axis([min(f), max(f), -4, 1]);

— 70 — Ironing RIAA E. Margan grid xlabel('f [Hz]' ) ylabel('Attenuation [dB]' ) title('Compare Bessel and Butterworth HPFs' )

% all together now: X=Fi4n.*Hpuo.*Gr1.*J1.*K1.*K3u; Mx=20*log10(abs(X)); figure(7) semilogx(f,Mx,'-b' ) xlabel('f [Hz]' ) ylabel('Gain [dB]' ) title('full system simulation' ) axis([min(f), max(f), -10, +40]); grid;

% Noise Analysis - equivalent input noise: % absolute Temperature: Ta=293; % [K], ==20°C % Boltzmann constant: kB = 1.3807e-23; % [VAs/K]

% Pickup impedance Zpun = 1 ./(1 ./(Rp + s*Lp) + 1/Rbo + s*Cbo); % Pickup thermal niose voltage spectral density: enZpu=sqrt(4*kB*Ta*real(Zpun));

% amplifier input noise voltage s.d., manufacturer data:

% [V/sqrt(Hz)] (opamps: NE5534, OP37, OPA656, OPA657, OPA857, LM49880) % enAmp=4e-9;

% [V/sqrt(Hz)] LSK398 dual jFET dif. pair enAmp=sqrt(2)*0.9e-9;

% 1/f corner frequency % fcn=300; % [Hz] - opamps general % fcn=20; % [Hz] - OPA827 fcn=50; % [Hz] - LSK398 % amp input noise + 1/f noise Fnamp=(fcn+f)./f; enAmp=enAmp.*Fnamp;

% amplifier input noise current s.d. inAmp=2.2e-15; % [A/sqrt(Hz)] inAmp=inAmp.*Fnamp; % 1/f noise einAmp=sqrt((inAmp.*abs(Zpun)).^2 + (inAmp*R3).^2);

% feedback network impedance simplified to R3: Rfbn=sqrt(4*kB*Ta*R3)*ones(size(f));

% total input noise: % Fntot=sqrt(enZpu.^2 + enAmp.^2 + einAmp.^2 + Rfbn.^2); % current noise einAmp too smal, neglected Fntot=sqrt(enZpu.^2 + enAmp.^2 + Rfbn.^2);

% output noise = input noise * RIAA equ gain Fnout=Fntot.*abs(Gr2.*K3u); figure(8) loglog(f,enZpu, '-r' , ... f,enAmp, '-m' , ... f,Rfbn, '-g' , ... f,Fntot, '-b' , ... f,Fnout, '-k' ) % f,einAmp,'-g') % neglected

— 71 — Ironing RIAA E. Margan

title('Noise Source Voltages S.D. and Total Input Noise S.D.' ) xlabel('f [Hz]' ) ylabel('V/sqrt(Hz)' ) grid

% output rms noise: % make the df vector: df=diff(f); df=[df(1), df]; % square the voltage and integrate noise power from 20Hz to 20kHz, % then take the square root: Vnrms = sqrt(sum(Fnout.^2 .* df)); disp('------' ) disp(['Vnrms = ' , num2str(Vnrms), ' Vrms' ]) snr=0.25/Vnrms; disp(['S/N ratio = 20*log10(0.25/Vnrms) = ', num2str(20*log10(snr)), ' dB' ])

— 72 — Ironing RIAA E. Margan

References:

[1] Switched On Bach, Original Recording, Format: Vinyl Johann Sebastian Bach (Composer), Walter Carlos (Performer) See also: One example of the very many WTC recordings: [2] Peter J. Baxandall [3] John Linsley Hood [4] On RIAA Equalization Networks Stanley P. Lipshitz Journal of the AES, Vol. 27, No. 6, June 1979, pp. 458–481 Comments on "On RIAA Equalization Networks" Peter J. Baxandall Journal of the Audio Engineering Society, 29(1), Jan 1981. Author's Reply to "Comments on 'On RIAA Equalization Networks'" Stanley P. Lipshitz Journal of the Audio Engineering Society, 29(1), Jan 1981. A High Accuracy Inverse RIAA Network Stanley Lipshitz and Walt Jung The Audio Amateur, Issue 1/1980, pp. 22–24 [5] AES Standard Playback Curve, Audio Engineering, Vol. 35, No. 1, January 1951, pp. 22 and 45 [6] A Collection of Wireless World Audio Articles [7] < http://www.keith-snook.info/wireless-world-magazine/Wireless-World- 1956/Disc%20Recording%20Characteristics%20RIAA%20-%20W%20H%20Livy.pdf > [8] Hendrik Wade Bode [9] Designing with Field Effect Transistors Evans, A.D. , (editor), Siliconix, Inc., 1981, McGraw-Hill

— 73 — Ironing RIAA E. Margan

— 74 —