| 3706/5164 |
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)
, design by dr. Imre Bartfai, 8/30/1999
+--------------------------------------------------------------------- Vdd
| 220k 220k 5V
| +---\/\/\---+ +---\/\/\---+------+
| | | | | |
| | |\ | | +------+ \
| EFT317 PNP +-----+----|- \ | | | / 220k
| C | | | >-+----| |----+ | |\ \
| |/ \ +-------|+ / 47n | +-----|- \ |
+--B| 220k / | | |/ | | | >--+
|\ \ | | 1/2 LM358 +----------|+ / |
|E | | | | | |/ \
+----| |----+--+ + + + / 47k
| 47n | | | | 1/2 LM358 \
\ \ \ \ \ |
4k7 / 1M / / 2k2 1M / / 2k2 + out
\ \ \ \ \
| | | | |
+-----------+-----+-----------------------+----+---------------- Vss
Standard TTL can not be driven, but CMOS (and maybe LS) are o.k.
The power supply must be filtered thoroughly due to the high gain!
See also:
Archive:
| file: /techref/microchip/rand.htm, 3KB, , updated: 2006/4/9 10:21, local time: 2008/7/6 09:32,
38.103.63.16:LOG IN
|
| ©2008 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? Please DO link to this page! Digg it! <A HREF="http://piclist.com/techref/microchip/rand.htm"> PIC Random </A> |
| Did you find what you needed? |
|
o List host: MIT, Site host massmind.org, Top posters @20080706 Apptech, Jinx, Xiaofan Chen, Alan B. Pearce, David VanHorn, William \Chops\ Westfield, Bob Axtell, Cedric Chang, olin piclist, Gerhard Fiedler, * 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: Shultz Electronics, Larry Williams, David VanHorn, Bryan Whitehouse, Timothy Weber, David Challis. Peter Todd. on-going support is MOST appreciated! * Contributors: Neil Narwani, David Cary, Elemer AM Nyiry, Philip J Taylor, Gus Calabrese of Omegadogs.com, Gautama Venegas, Patrick B. Murphy, William Chops Westfield, Peter Todd, Leslie Ellis |
|
.