>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >Sent: 23 June 2005 15:48 >To: Microcontroller discussion list - Public. >Subject: Re: [PIC] Simple pseudo random code generation > > >> I am trying to generate some pseudo random code to add >> some randomness for the pulse generation. > >Some time last week I was thinking about randomness and such >and I came up with an idea. I haven't had time to research it, >but I do find it intriguing. What if you took two separate >oscillators (possibly drifty RC oscillators with widely >different tempcos) and fed them into a shift register -one as >data the other as clock. Since they're not directly related to >each other, their relative phase will continually drift - >producing a continuous stream of uncertainty on the shift >register. The relative frequencies of the two oscillators will have a constant frequency difference in the short term so the output bit stream will be very predictable and most unrandom IMHO. The BE junction of a bipolar transistor in reverse breakdown is a strong noise generator that has been traditionaly used as a RNG. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist