Quick little 8 bit random number generators
Random number generator for the 16F876 using timer 0
A few of the lowest order bits of an existing A2D value can be used as a random number or at least as a seed for one of the generators above. This works best when a high resolution A2D is being used to measure a high noise signal (where the signal is resolved by averageing)
Linear Congruential Sequence
|file: /Techref/microchip/rand.htm, 1KB, , updated: 2008/8/19 19:31, local time: 2013/6/18 23:36,
|©2013 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/microchip/rand.htm"> PIC Random </A>
|Did you find what you needed?|
PICList 2013 contributors:
o List host: MIT, Site host massmind.org, Top posters @20130618 RussellMc, IVP, alan.b.pearce, veegee, Bob Blick, John Gardner, Isaac Marino Bavaresco, Sean Breheny, John Ferrell, Carl Denk,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: None at this time. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!