This e-book is about the structure and the basics of programming a typical microprocessor system. The functionality of the ATMEGA8A microcontroller is explained using code sequences as an example. Theoretical basics are also taught. The code examples can be used directly in the AVR development environment Atmel Studio and thus facilitate the practical implementation of what has been learned.