i bought an atmega8 from the shop(its totally blank)
i want to write some arduino codes in that.
how do i do it?
(i have made the circuit using 2 capacitors and a 16mhz crystal. )
Start here:
You will use the Arduino UNO as an ISP programmer, sketch ArduinoISP
You will need the bootloader code for the Atmega8 ... try this reference:
Here is a good overview:
Good luck. You may need to do some googlin' to fill in your knowledge.
Ray
You can try using optiLoader.
And here's a guide on how to do it
http://3g1l.com/blog-burn-bootloader-blank-atmega328atmega328p-arduino-uno