Keyboard Shortcuts
Likes
Search
Good settings for RIAA square wave
On Fri, Mar 28, 2025 at 12:32 PM, Carlos E. Mart¨ªnez wrote:
Un, what are you asking?? ?
What is an "RIAA square wave"?
?
What is your PULSE waveform intended for?? That should lead you in the direction of answering your own question.
?
We can not read your mind.? I have no idea whether your PULSE waveform is "fine" or not.
?
However, here is one little point about it:? Your "square wave" is not a square wave.? I am not referring to the fact that the rising and falling edges aren't instantaneous, which is of course impossible.? I refer to the fact that it does not have a 50% duty cycle.? The pulse is high for 25.01 microseconds, and low for 24.99 microseconds.? To correct that, change the "Ton" time to 24.99 us, which is 25 us minus your 10 ns rise and fall time.? Then it will be symmetrical, 50% high and 50% low.
?
Also, do you really need to limit the PULSE train to only 10 cycles?? If you don't want to limit the number of cycles, leave that field (Ncycles) blank.
?
Andy
? |
I want to know if my Pulse settings are correct. Correct point in not
using 20KHz, but something more in the listening range. Like 100Hz to 15KHz Carlos On Fri, Mar 28, 2025 at 1:41?PM Andy I via groups.io <AI.egrps+io@...> wrote:
|
¿ªÔÆÌåÓýOn 28/03/2025 17:32, Carlos E. Mart¨ªnez
via groups.io wrote:
Not sure what you hope to learn from 20kHz square wave testing of an RIAA preamp, but it would depend on whether the 75¦Ìs pole is implemented passively, or in the main feedback loop. Are you testing it with an inverse RIAA network? Not that it probably matters, but your pulse specification isn't quite square. To correct that, it should be: PULSE(-400m 400m 0 10n 10n {25u-10n} 50u 10) -- Regards, Tony |
On Fri, Mar 28, 2025 at 12:47 PM, Carlos E. Mart¨ªnez wrote:
I want to know if my Pulse settings are correct. Correct point in notFor a 100 Hz square wave, set Tperiod = 10m.? Do you have a calculator?? 1/100 = 0.01 = 10e-3. ?
Then set Ton = Tperiod - (Trise+Tfall)/2.
?
That square wave would generate harmonics extending well past 15 kHz.? I don't know if this meets your needs, so I can't answer that question.? But it seems logical to start with a "square" wave at or near the lowest frequency within the band of interest, and use its harmonics which go up from there, through the audio band.
?
I still can't read your mind.? We can't tell you whether your PULSE settings are "correct", because we do not know what "correct" means to you in this particular situation.
?
Andy
? |
On Fri, Mar 28, 2025 at 12:51 PM, Tony Casey wrote:
Not sure what you hope to learn from 20kHz square wave testing of an RIAA preamp, but it would depend on whether the 75¦Ìs pole is implemented passively, or in the main feedback loop. ... If this is for testing a preamp, it might also depend on whether the preamp has filtering for beyond-audio frequencies, including RFI.
?
Andy
? |
¿ªÔÆÌåÓýIt doesn't seem right to use a pulse signal
for an audio application. On 2025-03-28 16:32, Carlos E. Mart¨ªnez
via groups.io wrote:
--
OOO - Own Opinions only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
On 3/28/25 11:32 AM, Carlos E. Mart¨ªnez via groups.io wrote:
Hi,I would use an AC analysis. Produces a nice plot of frequency response that you can compare to the RIAA curve. That is what I did when I looked at the Carver C1 preamp stage. -- David Schultz "The cheeper the crook, the gaudier the patter." - Sam Spade |
Carlos,
?
Walter Jung had developed a SPICE file many years ago that uses the LAPLACE function in SPICE to define the precise time constants.? You run your RIAA circuit through his inverse RIAA circuit.? Do a frequency sweep, the plotted output will show the frequency error of your circuit.? You can find it here: ? |
For AC simulation use VOLTAGE-source connected with E-source with string LAPLACE=(1+T3*S)*(1+T5*S)/((1+T4*S)*(1+T6*S)*SCALE_1KHz) in Value field
Place .param T3=3180uS T4=318uS T5=75uS T6=0uS SCALE_1KHz=9.898078642 on schematic
?
E-source output connected with L and R (use parameters from cartridge you use, 370mH and 815 Ohm for Shure V15 Model 5, for example)
--
Kind regards, Victor |
RIAA is intended for audio applications. ?Why in the world would you even think of square wave input? OK, transient over-load behavior might be one reason, but I think that the OP is a long ways from that, yet.
?
Jim Wagner
Oregon Research Electronics
?
?
?
On 03/28/2025 9:32 AM PDT Carlos E. Mart¨ªnez via groups.io <carlo.mar.ll@...> wrote:
|
?
Actually, you can tell quite a lot about even an audio circuit's performance, by looking at its square wave response.? Tilt in the flat tops or ringing on the edges tells you that something is amiss with the low frequency or high frequency response, respectively.? It's a quick-and-dirty way to judge the broadband response. ?
That is, of course, assuming that you include an accurate inverse RIAA network.? Without that, it would be meaningless and pointless.
?
Andy
? |
I've learned there's two anti-RIAA filters you put at the input of
preamp to be simulated: the laplace on and and RC passive one. All my sims with RIAA premps have the passive filter at the input, where I feed the AC signal through. According to one of my colleagues at DIYaaudio, "Laplace is the most accurate but can only be used in the .AC mode. For the .Tran mode you will have to use the RC model. As you mentioned on the use of Square Waves: you can tell quite a lot about even an audio circuit's performance, by looking at its square wave response. Tilt in the flat tops or ringing on the edges tells you that something is amiss with the low frequency or high frequency response, respectively. It's a quick-and-dirty way to judge the broadband response. That's what ignited my curiosity, and the recent tests with square waves and a scope in an actual built preamp on the thread by one of our pals. I did try some of the SW settings that you suggested, and for now found different responses according to the opamp being used. Now I need someone to translate those results into actual distortions or limits, and if possible play with the variables. On power amps, SW testing helped trim the parallel small caps on the feedback, which later showed as distortion changes in THD sims. This is the passive Jung filter I use on all my RIAA sims. (Lipshitz_and_Jung_1980)_RUS.png Carlos On Sun, Mar 30, 2025 at 1:21?AM Andy I via groups.io <AI.egrps+io@...> wrote:
|
On Sun, Mar 30, 2025 at 08:23 AM, Carlos E. Mart¨ªnez wrote:
According to one of my colleagues at DIYaaudio, "Laplace is the most That is not quite true.
?
The Laplace version has the disadvantage that the Laplace transform from frequency domain to time domain sometimes does not produce the right result - but sometimes it does, and the reasons why it works or does not work are not well understood.? It seems to be a problem with fine-tuning the Laplace settings in the simulator.? Those settings are WINDOW, NFFT, and MTOL.? This is described (tersely) in LTspice's Help.? As it states there:
In other words, it might work, but you may need to manually adjust the settings to get a good transform to the time domain.? It is incorrect that "you will have to use the RC model", but it is probably better and easier if you do.? An RC model with correctly calculated components has exactly the same response as the Laplace form anyway.
?
Your colleagues at DIYaudio are incorrect when they say that "Laplace is the most accurate."? It is not more accurate than the RC version.? ?It is just easier to calculate since you know in advance where the poles and zeros should be.
?
I did try some of the SW settings that you suggested, and for nowCan you do that yourself?? Since this is your project, you ought to be able to examine your preamps' distortions and other effects.? Or, you could pay someone to do it for you.? :-)? Wouldn't it be better to work on it yourself?? Getting assistance is good, but don't expect someone else to do all the work. ?
Andy
? |
I never pretend or intend for someone else to do the hard work. That
is for me to try, because that way I learn. What I did need help on that thread was with adding a HP filter for a specific very low frequency rumble some Thorens TTs had. And I was trying to use a two stage passive RIAA filter, as shown on Walt Jung's book and later, and another passive/active design, also two stage, inspired on a discrete RIAA preamp by Erno Borbely in The Audio Amateru magazine. One pal on the thread, Marcel, helped me with that. Designing a RIAA filter is much beyond my knowledge. I'm not sure someone here would like to see the .asc sims, with and without filters, as that's not a matter for this "problem solving" site (to describe it somehow). If someone is interested, do let me know. Going to that DIYaudio thread would be much better, and suggestions from those that ask and respond to questions here would be very useful there. When I ask for help on something, everywhere, I do not expect others to do the hard work. That is what I want to do. Carlos On Sun, Mar 30, 2025 at 10:04?AM Andy I via groups.io <AI.egrps+io@...> wrote:
|