Re: Random timer!



On Sat, 02 Jun 2007 16:25:48 +0100, Baron
<baron.nospam@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

John Fields inscribed thus:


1. When the START button is pushed, a four-bit pseudo-randomly
generated number is loaded into a four bit binary delay counter
and the counter enabled.

This is the bit that I am struggling with !


Jasen's original suggestion makes a great pseudo-random generator.
Just have a 4-bit counter counting a fast clock. When the START
button is hit, the counter will be at some random value (random
due to the random timing of the START press relative to the
high-speed clock). You just have to switch off that clock and
switch to a low-speed clock for your count-down. (You can
switch the timing values in a single clock, or have 2 separate
clocks for this.)

Best regards,


Bob Masta

D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, Signal Generator
Science with your sound card!
.


Loading