[sdiy] Pseudo Random Noise Generator in an AVR?

Martin Klang mars at pingdynasty.com
Wed Jan 9 11:05:10 CET 2013


Haven't done it myself but shouldn't be a problem if you've got one of the hardware timers to spare. Which atmega is it?
Also have a look at LCR's [1], another simple, fast pseudo-random generator.

/m

[1] http://en.wikipedia.org/wiki/Linear%5Fcongruential%5Fgenerator

On 9 Jan 2013, at 05:10, Jim Patchell wrote:

> I am trying to elimnate parts in my current project.  I have every thing on the board, except the analog noise generator (you know, reversed biased e-b junction.  Gaining enough realestate may not be possible, and I don't want to add any more square inches.  So, I was thinking, why not move the noise generator into the ATmega that is also on the board.  Making a 32 bit linear feedback shift register in the firmware should not be a problem.  Running it fast enough might be  I would want to run it at a minimum of 40K shifts per second.  Not even sure if that is fast enough.
> 
> Anybody else every try something like this, and how did it work. Otherwise, I am going to have to break out the old STK500/501 and write some code. ;^)
> 
> -Jim
> 
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at dropmix.xs4all.nl
> http://dropmix.xs4all.nl/mailman/listinfo/synth-diy




More information about the Synth-diy mailing list