Re: Chip with simple program for Toy
From: John Fields (jfields_at_austininstruments.com)
Date: 09/29/04
- Next message: Don Bruder: "Re: Blue LEDs? when did that happen?"
- Previous message: David Harmon: "Re: Creating PC boards"
- In reply to: john jardine: "Re: Chip with simple program for Toy"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Sep 2004 15:46:03 -0500
On Wed, 29 Sep 2004 20:57:00 -0700, "john jardine"
<john@jjdesigns.fsnet.co.uk> wrote:
>"RANDOM", Maybe easier said than done. A micro running a stored programme
>can't do it just on it's own.
> There's got to be available somewhere, a real random variable that the
>micro can then use as a 'seed' to maybe generate series of psuedo-random
>values.
--- For a toy, an 8 bit pseudo-random pattern is prob'ly good enough, since you can get 255 tenth-second values out of the thing which you load into an 8 bit down-counter, start the motor, and then count the counter down with a 100ms clock. When the counter counts down to zero, you send a clock to the pseudo-random sequence generator to generate the next pattern, load it into the counter, reverse the direction of the motor and run the counter down to zero again to start the next timeout with the new value from the PRSG. -- John Fields
- Next message: Don Bruder: "Re: Blue LEDs? when did that happen?"
- Previous message: David Harmon: "Re: Creating PC boards"
- In reply to: john jardine: "Re: Chip with simple program for Toy"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|