R
Rich Grise
---
The problem with that approach is that the clock divider needs to function
in real time, so even if there's a free-running internal peripheral
counter in the chip which can generate interrupts, an ISR needs to be
written which will generate the divide-by and output the 22kHz signal. If
there are other time-critical events which the µC is supposed to take
care of, then it can easily become a nightmare to try to keep everybody
happy. In either case, it's a little more involved than just writing "one
more little loop". ---
Well, I'm actually rather an adept programmer, even if it doesn't show all
the time.
the code. It's written in PicBasic, for heaven's sakes - how time-critical
can it be?
---
_And_ the temperature, _and_ the supply. Might as well get a 7555 if you
want to go that route and get some insensitivity to supply voltage and
ambient temperature variations.
---
Very good point. I was a little on the glib side there.
Thanks!
Rich