DSPRelated.com
Forums

Generation of Pink Noise using 3dB/octave filters on digital white noise

Started by bademiya July 10, 2006
bademiya wrote:
> Hi. > > Once again, i have another query. I have written a program using Steve > Park's rngs file. By reading the rngs file, i understand that the output, > which is Random(), is any number between 0 and 1 in a double data type. > However, the one given Andreas has a possible range between -1 and 1 if i > set the amplitude as 1.
... Surely, you want zero mean. Why double? How many bits do you need? Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
bademiya wrote:

>>Calculate the amplitude so that the output of the soundcard is at maximum >>level. See my other posting. > > Thanks for your help. However, i am not using a soundcard to generate the > noise. I'm using the Analog Devices BF561 board to generate the white > noise.
Then check the documentaion of this board for the maximum integer value the DAC at the output can handle. Set the amplitude to this value. bye Andreas -- Andreas H�nnebeck | email: acmh@gmx.de ----- privat ---- | www : http://www.huennebeck-online.de Fax/Anrufbeantworter: 0721/151-284301 GPG-Key: http://www.huennebeck-online.de/public_keys/andreas.asc PGP-Key: http://www.huennebeck-online.de/public_keys/pgp_andreas.asc
Thank you all for your help. It has been very useful to me so far. 

Just another query. When i generate white noise, how do i know or check at
what sampling rate am i sampling the white noise? As of now, i'm just
generating the noise as explained in my earlier posts. I just want to
estimate the bandwidth of my white noise generated. 

Amit.
bademiya wrote:

> Just another query. When i generate white noise, how do i know or check at > what sampling rate am i sampling the white noise? As of now, i'm just > generating the noise as explained in my earlier posts. I just want to > estimate the bandwidth of my white noise generated.
If you clock out the generated data with fs, then in theory the bandwidth is fs/2 (as defined by the Shannon theorem). In practice the bandwidth will be lower due to the reconstruction filter behind the DAC. Check the manual for these limits. bye Andreas -- Andreas H�nnebeck | email: acmh@gmx.de ----- privat ---- | www : http://www.huennebeck-online.de Fax/Anrufbeantworter: 0721/151-284301 GPG-Key: http://www.huennebeck-online.de/public_keys/andreas.asc PGP-Key: http://www.huennebeck-online.de/public_keys/pgp_andreas.asc