Why NON-OS?

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
Re: Re: Re: Re: On topic

guido said:

Have to dig up my books from 'digital signal processing' classes i had 10 years ago. Must be possible to put this into formulas.
:D

So i found my books and had a look. :xeye: This was too long ago for me, so i did the obvious: i asked around. So the effect is.... a FIR filter, so indeed nothing to do with interpolation (ray is right once again). Should have known, it WAS explained.

http://www.diyaudio.com/forums/showthread.php?postid=335744#post335744

Which leads to the conclusion that i swapped non-os and this fir filter. Listing/measuring at one while thinking it was the other. So a non-os dac is not as bad as i thought.... Mind you i never heard another one to compare and my measurement equipment is acient.

---oops---

So the curve i got from the non-os dac (which i thought was the 'oversampled' dac) can be explained by the non-os effect (i thought it was due to the transformer and buffer). And other curve going steep down at high freqs shows that one can build a fir filter this way ;)

The maths give:

non-os: -0.8dB at 10kHz, -3.5dB at 20kHz
fir h=[1 1]: -3.5dB at 10kHz, -16dB at 20kHz.

Anyone for a filter? :D


So what is lost....?

Nothing much, only what was left of my pride :rolleyes:

The experiment was only performed with some extra lines of code in the GAL, the dac was designed as non-os. This delaying was an add-on i did at a later stage. Am working on a cpld design for all logic and i remember i was suspicious about this non-os/delayed jumper when i was 'porting' the logic. Should have looked more into it then.

As a filter it is quite good: "a very good time-domain response with no ringing, and it will reduce aliasing distortion quite significantly." to quote the expert.

I'll look into compensating for the hugh rolloff in the analog domain, -2.5dB at 10kHz is v. audible.

Maybe then it is better than non-os :confused:
Oops, here i go again:D
 
Re: Re: On topic

guido said:


Get two, delay data of one with one full cycle (64bck) and put them in parallel. Gone is the treble roll-off....:cool:

edit, does this qualify as os or non-os:xeye:

Do I understand that right:
Delay one whole sample ?
That would mean at 22 kHz with 44kHz sampling frequency one sample represents +halfwave and next sample -halfwave.
If one chip gets no delay and the other gets 1 sample delay, outputs will cancel.
 
Re: Re: Re: On topic

Bernhard said:


Do I understand that right:
Delay one whole sample ?
That would mean at 22 kHz with 44kHz sampling frequency one sample represents +halfwave and next sample -halfwave.
If one chip gets no delay and the other gets 1 sample delay, outputs will cancel.

Mmm,

If you read through the whole thread and at my last post above, you will understand that i did not (until the last post) :cannotbe:

I just have a non-os dac, the other 'option' is a fir filter.

Guido
 
* Why is hardware os better working with SAA7220 in front ?

* This one schematic ( I can not find the link, it was japanese, 2 pictures ) shows original + 1/4 sample + 1/2 sample + 3/4 sample delay give a staircase.

But while playing around with possibilities, I found that original + 1/3 sample + 2/3 sample + 1 sample delay looks more like a sine.
 
Bernhard said:

* Why is hardware os better working with SAA7220 in front ?


Linear interpolation such as that shown in the schematic assumes each point is joined by as straight line. That may well be a reasonable assumption at 100hz where you have 441 samples per cycle or even at 1KHz but not at 10Khz where you only have around 4 cycles. The SAA7220 provides more samples by increasing the effective sample rate by 4. Depending on the model, Wadia preceded the linear interpolation by a DSP based oversampling filter up to ,IIRC, 32Fs and Philips achieve 256Fs oversampling in Bitstream by combining a 16x FIR filter with 16x linear interpolation.
 
Hi,

I thought the linear interpolation in the saa7220 was only used when an error was detected.

Well that's what the datasheet seems to refer to the purpose of interpolation.


If your right though it explains alot (atleast to me). When i did my satellite image processing course at college we always started from raw data values (calibrated to sensors), and never from bilinear or cubic convultion manipulated images. The bilinear filtered images often 'sharpened' the image but u hadto take into account that this was created by an equation applied to the surrounding pixels so the data structure was changed.

Kind regards,


Ashley.
 
Bernhard said:


Thanks, I still do not understand what bad thing may happen if there is no os filter


It may sound awful but nothing bad will happen. This is audio, nothing bad ever happens which is why we have umbongo dots and shaftme stones.


and I do not understand that sentence.


Consider a wave form that has been sampled such that the first sample point is at zero, the next at the positive peak, then zero again, then the negative peak and back to zero again. You now have a single cycle. What kind of wave is it?
 
rfbrw said:


It may sound awful but nothing bad will happen. This is audio, nothing bad ever happens which is why we have umbongo dots and shaftme stones.




Consider a wave form that has been sampled such that the first sample point is at zero, the next at the positive peak, then zero again, then the negative peak and back to zero again. You now have a single cycle. What kind of wave is it?

Awful is bad enough.

It is a kind of squarewave :xeye:

Now to see what happens, I draw the picture on the left side:

Original wave , 1/3 sample delay, 2/3 samples delay, 1 sample delay.

All added together give something that looks already very much like a sine, ( right side upper blue curve ) weather this is desireable or not...
Phase shift is exactly 1/2 sample.

As it is proposed in sidewinder, but only 3 times: Original wave , 1/3 sample delay, 2/3 samples delay, right side lower red curve gives the expected triangle.

So still can not see the problem not to have os filter.

hardwareos.jpg
 
rfbrw said:
Consider a wave form that has been sampled such that the first sample point is at zero, the next at the positive peak, then zero again, then the negative peak and back to zero again. You now have a single cycle. What kind of wave is it?
For all intents and purposes, it's sine... at a frequency of half nyquist.

You could synchronously sample a triangle wave or a sine wave and get the same result, but a triangular wave would imply the presence of 3rd/5th/etc harmonics - these are lost during the sampling process since they're above nyquist.
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.