Re: Random timer!
- From: NoSpam@xxxxxxxxxxx (Bob Masta)
- Date: Sun, 03 Jun 2007 12:18:26 GMT
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!
.
- Follow-Ups:
- Re: Random timer!
- From: Jasen
- Re: Random timer!
- From: Baron
- Re: Random timer!
- From: Baron
- Re: Random timer!
- References:
- Random timer!
- From: Baron
- Re: Random timer!
- From: John Fields
- Re: Random timer!
- From: Baron
- Re: Random timer!
- From: John Fields
- Re: Random timer!
- From: John Fields
- Re: Random timer!
- From: Baron
- Random timer!
- Prev by Date: Re: -5v and -12v Serial Ports
- Next by Date: Re: Random timer!
- Previous by thread: Re: Random timer!
- Next by thread: Re: Random timer!
- Index(es):
Loading