[sdiy] Divide by 10^6?

ChristianH chris at chrismusic.de
Fri Aug 28 14:16:38 CEST 2009


On Fri, 28 Aug 2009 12:33:35 +0300 (EEST) Antti Huovilainen <ajhuovil at cc.hut.fi> wrote:
> > A tiny microcontroller would eat this job - single chip solution.
> > Use the 20MHz as the micro's clock and a simple program could even
> > supply a couple of LED flash rates (or 4 LEDs with quadrature drives?).
> 
> Beware that external clock often has restrictions on duty cycle and 
> rise/fall times. A better solution is to use asynchronous timer input 
> which is available in many MCUs.

Who needs a precision 20 MHz clock for flashing a LED anyway?
Just use an ATtiny (or whatever) with internal clock.

For us old farts (with 70s' electronics background) it may seem overkill,
but these days it sometimes is the simplest solution (if you have the
programming/flashing facilities, that is).

I made a noise generator this way. Took me about 30 minutes, including
writing the C program. And most of that time went for correctly
re-jumpering the Atmel STK board for burning the chip.

Chris




More information about the Synth-diy mailing list