Hi,
How can a filter with a certain cutoff frequency let say 5MHz sommth equaly the generated signals at low frequency or high frequency? that will be interested to know
One applicaton for very low THD and a wide range of frequency is (digital) audio. They did the theory and they deigned filters and so on. Good quality audio DACs (including filters) do this almost perfectly.
One fixed filter, one fixed sampling frequency but a big mixture of random audio frequencies.
About 10 octaves of bandwidth.
And another problem of audio: the huge dynamics in volume.
A CD is designed for 44100Hz sampling rate and 16 bits linear resolution. If you listen to veryquiet music you may go down -60dB of maximum level. This means the signal does not use 16bits anymore, but only 6 bits. Still it´s quite good quality.
***
The DAC output filter is a so called "reconstruction filter". It is designed to most perfectly reconstruct the waveform of the original analog sound.
It´s not a simple low pass filter. It´s a sin(x)/x filter. Indeed just a very good approximation, because the filter can not be designed perfectly, neither analog, nor digital. But they uses some digital filters in combination with output oversampling and - rather simple - analog filters.
***
But for sure an analog filter has it´s limits. When you have a detailed look to a rather low frequency sine wave you will see some "staircases". But if you do the distortion measurement, then the THD is still rather good.
***
How many table entries for a 10 bit DAC?
Honestly I don´t know.
I guess worst case is a "sine" just with 2 entries. Basically the DAC output is a square wave, then.
So without filter you may say a square wave is a sinewave with about 45% THD
use an almost perfect 1st order filter and get 17% distortion
2nd order ... about 8%
...
The critical problem is the first harmonic (3 x fundamental)
If you use more table entries you shift the overtone into higher frequencies and the same time you reduce the amplitude of the overtone. Additionally the filter has higher attenuation at higher frequencies.
So we have three factors that improve the THD.
So I won´t be surprised if the THD goes down with the power of 3 with increasing number of table entires.
(indeed I expect something between the power of 2 ... the power of 3)
So 32 entries are 16 times 2 entries. maybe the THD goes down (becomes divided) by 256 or higher.
I expect it should be quite easy to go below 0.1% THD with 32 entires and a (non perfect ) 2nd order filter.
Still you have to consider the THD of the digital table content of each overtone ... and how much the analog filter indvidually supresses each overtone.
***
Once I´ve generated a 1MHz sine with a 4 bit DAC (indeed 4 CMOS switches) controlled by an FPGA with simple 2nd order RC and a THD of about 0.1% .. used for a high precision LCR meter down to the femto-Farads. Still low cost but rather high mathematics effort. The better you know your target and the better you know your "enemies" the better you can optimize. Thus I always ask for requirements and specifications.
Klaus