Say I wanted to have a run/stop switch on a circuit controlled by a
micro-processor. Could I halt the chip by holding the clock line high?
Would this have to be done carefully (if at all) to not damage the clock
generator circuit?
Have a look at the microcontroller datasheet- specifically at the
clock signal requirements. *If* you can avoid violating *any* of the
requirements, the answer *might* be yes. Typically, for a modern
static CMOS micro, this would involve synchronizing the on/off signal
with an external oscillator (for example an oscillator module) using
something like a 74HC73 to avoid short cycles and resulting
malfunctions.
OTOH, if the micro has a clock monitor function and/or a watchdog
timer function (and if they are enabled) then it probably won't work.
Typically they will reset the micro within milliseconds after a
'failure' of the clock using internal RC oscillators or other timing
circuits.
Almost all modern micros have the latter functions, BTW, so your
chances are not very good IMHO.
Best regards,
Spehro Pefhany