hi,all now, I met a problem,I want to use DSP(TMS320C6711)to gererate the white noise,but i don't know how to do it,is there a function to do it?Can you tell me how to do it?thank you very much! wjf |
|
how to generate white noise?
Started by ●December 12, 2003
Reply by ●December 12, 20032003-12-12
It is not possible to generate truly "random" white noise with a
DSP processor. Usually, a pseudo-random noise generator with a "long enough" repeat time is sufficient. There are numerous pseudo-random number generators available. They vary in regards to the repetition length, spectral content, distribution, range, and efficiency. A multiplicative congruential implementation (this is an algorithm that is used in many standard libraries) is often used. If the seeds are chosen correctly, it should repeat every 2^N - 1 (where N is the number of bits) values. Its major drawback is that the spectral content of a subset of the sequence is not flat (i.e., not "white" noise). For more information, Knuth's Art of Computer Programming covers this in detail. Also see: http://www.mathworks.com/moler/random.pdf And http://www.agner.org/random/theory/chaosran.pdf To avoid spectral problems, we use an exclusive or and rotate PRNG. But the proper choice of algorithm depends on your specific requirements. Bill > -----Original Message----- > From: wucim [mailto:] > Sent: Thursday, December 11, 2003 8:21 PM > To: > Subject: [c6x] how to generate white noise? > hi,all > now, I met a problem,I want to use DSP(TMS320C6711)to gererate > the white noise,but i don't know how to do it,is there a function to > do it?Can you tell me how to do it?thank you very much! > wjf > |