Originally Posted by fantasy1988
can you show me some pictures of your circuit do (into breadboard)?
The DIP version has different pinouts, so my breadboard layout probably won't help you much. I suggest that you carefully compare your layout to both the circuit in post #7 and
the ATmega8 datasheet.
You appear to be using a quartz crystal. Do you have a 22pF capacitor from each leg of the crystal to ground? Capacitors may be required to make the crystal oscillate at the correct frequency (ceramic resonators don't need them because they have built-in capacitors).