konguk:
I get it now! The Atmega8 has in internal oscillator but to use it you need an external crystal as well? Am I on the right tracks?
Greetings konguk,
Yes, you are. All devices require a clock and for the AVR
devices there are several options. Some AVRs (including
the Mega8) have internal oscillators that require no
external parts. These are limited to 8MHz max. Each
device is calibrated at final test and has a cal byte unique
to that chip.
All AVRs can operate with an external crystal to control
the internal oscillator, and this requires two pins. All
AVRs (AFAIK) can be driven from an external clock,
which requires one pin.
It would be wise for you to download and read the full
[AVR Mega8 data sheet. It’s over 300 pages and even if
you only skim it or need help with details you’ll have a
better handle on what this powerful microcontroller can
do.
konguk:
So if I programmed the Atmel and then set the high and low fuse bytes correctly and the chip is no longer responding to the ISP then would this point to the fact that maybe my 12mhz crystal on the circuit is not funcitoning correctly?
Possibly. Regardless of your application program, the
external crystal should show activity with a scope. This
may not be the case if the AVR “fuses” are set for internal
oscillator, or external oscillator input, or the Xtal pins
are set for general IO function instead of clock.
Comments Welcome!](http://www.atmel.com/dyn/resources/prod_documents/doc2486.pdf)