Thanks for answer guys, but I am not going to buy and play with arduino or any other higher level board. I have atmega8 + USBasp programmer, and with this stuff I want to understand the whole process of programming microcontroller.
My first question from first post haven't been answered yet, can somebody explain how the binary is send to microcontroller via programmer within these 4/5 pins connected ? How these data is saved ?
Regards.
Hi,
Yes we understand what you are saying about learning things in detail.
The process of sending your complied code out to the flash memory of the Amega8 chip is done in a serial mode.
However it is quiet complex and to be honest serves little in your wider understanding of a micro.
Although the principle of programming flash memory is basically the same, the exact detail can vary from chip to chip and maker to maker.
If you search for the Amega8 datasheets I expect you will find one on its programming specifications; though it doubtless will make heavy reading.
The reason for suggesting a ready made dev board like the Arduino Uno is that they are very cheap and importantly , complete ready to use solutions.
They allow you to get started straight away with good examples and tutorials so you can soon start writing your own code which in turns allows you to learn about the fuller features of the Megas.
If that is still not what you want to do, then I suggest you start programming using Assembly, the most basic language you can use, next to machine code.
This really gets you using all the micros registers in bit and byte detail.
Thats just my view, sure other will come in and give theirs ...