I would like to write programs on to an Atmega 8. So that i can use the MCU and accessories circuits on another board. I only want the blank atmeg8 to run a single program that i have written in the arduino software. Can you please let me know the steps i need to follow to achieve this??
Please consider this as a newbees inexperience and please help...
If you're using a bare ATmega8 (not on a pre-made PCB), you need to check one of the many, many tutorials about using Arduino on a Breadboard. Check the Playground for starters.
If you've never written Arduino code before, you should probably look up the first-time walkthroughs on Ladyada's site, or similar.
If you've never written C code before, you might be biting off more than you can chew. I'm sure some have learned C through Arduino, but IMO there are more appropriate introductory environments that don't require electronics experience, serial communications adapters, and flash memory write cycles.
I have been experimenting on my Arduino Uno for some time. I am aware of C++ programming but not C but i guess they are similar. What I want now is that i want to write a simple blink program to a atmega 8. From my understanding if we load the arduino bootloader then we may transfer the program written in Arduino IDE to the atmega 8 (please correct if I am me wrong). I want to know how we can transfer the bootloader to atmega 8.
I am aware of C++ programming but not C but i guess they are similar
Guess not its C only ,c++ is actually known as C with 'Classes' actually named as this way by Bjarne Stroutstrup who worked on c to extend it to classes plus all this, C++ is a object oriented language that means that one programmer works on it by making and working on instances of objects with implication of concepts like Encapsulation, Inheritence(one more is there just not on my mind) etc..
that i want to write a simple blink program to a atmega 8.
Just write the code for blinking for any of ATmega168 and ATmega328 and you can after compiling the sketch load the Binary out of it to the ATmega8 by using a traditional programmer like MKII/AVR isp programmer you can get this in south India for about 500 to 1000 bucks its pretty much useful and will work because internal architecture of all these chips is same they only differ in the fact of flash memory, EEPROM ,pinout is same.
If you want to load this ATmega8 with bootloader then you can load it by using the Arduino as a ISP programmer, more on that you can learn on the site examples/playground.