Go Back   Home > Forums > Amplifiers > Solid State
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Solid State Talk all about solid state amplification.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 2nd May 2006, 01:41 PM   #1
percy is offline percy  United States
diyAudio Member
 
Join Date: Apr 2004
Location: MN
Default What could be causing this square wave distortion (pics inside)

I have a Turtle Beach Santa Cruz soundcard and it gives pretty good results with RMAA. Recently I did a loop record (Line Out to Line In) on the soundcard using a short loop cable for a square wave signal. I used Speaker Workshop and this is result I get.

100Hz -
Attached Images
File Type: jpg screenhunter_1005.jpg (38.4 KB, 401 views)
  Reply With Quote
Old 2nd May 2006, 01:43 PM   #2
percy is offline percy  United States
diyAudio Member
 
Join Date: Apr 2004
Location: MN
1000 hz -

Question is - What are the possible causes of the square wave shape skewing or ringing at the edges. Its without load. I also tried with a small load (100-200ohm resistor) and it did not mess up the shape/ringing any further. So what could it be ? Bad psu decoupling ? or psu noise ?

Sine waves record just fine - i.e. I don't see any obvious distortions in the curve. I have used this software and soundcard for speaker measurements for a while now and it has been performing just great.
Attached Images
File Type: jpg screenhunter_1007.jpg (45.0 KB, 333 views)
  Reply With Quote
Old 2nd May 2006, 02:08 PM   #3
jahonen is offline jahonen  Finland
diyAudio Member
 
jahonen's Avatar
 
Join Date: Jan 2002
Location: Kuopio, Finland
What you see is a Gibbs phenomenon (truncating the squarewave fourier series results ringing). Square wave does not converge nicely on reconstruction filter at soundcard output, as the real squarewave will require infinite bandwidth to be perfect. So that looks perfectly normal to me.

Regards,
Janne
  Reply With Quote
Old 2nd May 2006, 02:30 PM   #4
percy is offline percy  United States
diyAudio Member
 
Join Date: Apr 2004
Location: MN
hmm..reconstruction filter at the soundcard output.
Are your referring to the DAC's reconstruction filter or the output decoupling cap/filter after the output opamp ?
  Reply With Quote
Old 2nd May 2006, 03:22 PM   #5
jahonen is offline jahonen  Finland
diyAudio Member
 
jahonen's Avatar
 
Join Date: Jan 2002
Location: Kuopio, Finland
Quote:
Originally posted by percy
hmm..reconstruction filter at the soundcard output.
Are your referring to the DAC's reconstruction filter or the output decoupling cap/filter after the output opamp ?
I mean the DAC reconstruction oversampling filter (which is actually digital).

Regards,
Janne
  Reply With Quote
Old 2nd May 2006, 10:22 PM   #6
percy is offline percy  United States
diyAudio Member
 
Join Date: Apr 2004
Location: MN
What would be the typical effective bandwidth in that case ?

Even if the upper limit of the bandwidth was like 20Khz then are you saying a 100hz square would look about the same if measured in a fully analog environment too (no filters, conversion and such) ?

What would typically a 100hz square wave look like when fed and measured through an amplifier of that amount of bandwidth ?
  Reply With Quote
Old 2nd May 2006, 10:31 PM   #7
Eva is offline Eva  Spain
diyAudio Member
 
Eva's Avatar
 
Join Date: Oct 2003
Location: Near the sea
Send a message via MSN to Eva
As it has been pointed out, there is nothing wrong with these waveforms, they are the expected analog output from a bandwidth limited digital system.

On the other hand, bandwidth limiting in a plain analog amplifier will manifest itself as transient rounding in the square wave.

Also, tilting of the flat tops of the wave in the 100Hz measurement is a sign of low frequency rolloff.
__________________
I use to feel like the small child in The Emperor's New Clothes tale
  Reply With Quote
Old 2nd May 2006, 11:37 PM   #8
percy is offline percy  United States
diyAudio Member
 
Join Date: Apr 2004
Location: MN
Quote:
Originally posted by Eva
On the other hand, bandwidth limiting in a plain analog amplifier will manifest itself as transient rounding in the square wave.
probably that is what confused me - because this looks more like "ringing" than "rounding".

Quote:
Also, tilting of the flat tops of the wave in the 100Hz measurement is a sign of low frequency rolloff.
Interesting, the low frequency is rolloff is like -1db at 20hz (or even better), which was measured by rmaa.
  Reply With Quote
Old 3rd May 2006, 09:30 AM   #9
jahonen is offline jahonen  Finland
diyAudio Member
 
jahonen's Avatar
 
Join Date: Jan 2002
Location: Kuopio, Finland
The ringing is due to very steep roll-off. Any faster than gaussian roll-off yields to ringing. Symmetric ringing implies linear phase, which is normal. Analog roll-off is generally quite slow in contrast, thus no ringing, just "rounding".

Practically usable bandwidth is just below nyquist frequency, up to 0.45*fs/2, or something close. It is important to note that sampling theory considers only stationary signals, transient signals must be considered separately. So closer you get to nyquist limit, slower the transient response becomes, relatively speaking.

Regards,
Janne
  Reply With Quote
Old 3rd May 2006, 10:38 AM   #10
AndrewT is offline AndrewT  Scotland
diyAudio Member
 
Join Date: Jul 2004
Location: Scottish Borders
Hi,
the slope on the lower freqency (100Hz) square wave is an indicator of
Quote:
low frequency rolloff
or is it?

Is it the high pass roll off that causes the slope?
Is it the phase difference in the low end that causes the slope?
Is it the phase difference resulting from the high pass that causes the slope?

I was told a long time ago that a digital oscilloscope needed a sampling frequency about 10 times the required analogue bandwidth. Surely when working in reverse a similar ratio should apply. 44 kilosamples/second (ks/s) limits the bandwidth to about 4 to 5kHz.

However since square waves are the odd harmonics going to infinity then errors increase as the square frequency approaches 1/9 or 1/11 of the usable bandwidth. This would imply a maximum (upper) limit for a digitally generated square wave using 44ks/s of about 400Hz.
Why then, do we see similar errors at 100Hz and 1000Hz (ignoring the slope/tilt) either side of my implied frequency limit? Could it be due to a bad algorithm?
__________________
regards Andrew T.
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sine wave - Square & Triangle wave generator using Transistors / OP-Amps lineup Solid State 20 9th October 2006 01:15 AM
Microphone turns triangle wave into square wave? Circlotron Analogue Source 18 25th January 2003 07:44 AM


New To Site? Need Help?

All times are GMT. The time now is 10:33 PM.

Page generated in 0.10921 seconds (82.84% PHP - 17.16% MySQL) with 11 queries

Copyright ©1999-2012 diyAudio