Tough it could be written for any other AVR uC. This tutorial is written for working with the ATmega8. The best solution is of course an adjustable laboratory power supply. In the delivery scope is only a cable with the DC Connector and two bare ended wires. Unfortunately, the STK500 is delivered without power adapter. Because it's made by ATMEL the compatibility to the microcontroller is guaranteed and by using thisīoard, we can be optimistic that we will have no troubles with any kind of wrong wiring or any other possible error sources.Ī RS232 cable is delivered with the board. It's not the cheapest solution but probably theįastest. In this tutorial we use the STK500 development board of ATMEL. I've made good experiences with the adapter UC232A manifactured by Aten. If your computer doesn't have a serial port, you need an USB to serial adapter to load your program Requires a computer with serial interface or a USB to serial adapter. The STK500 developmentboard which we use in this tutorial, If your machine has a serial port it makes your life a littleĮasier because you don't need an USB to serial adapter. I use an old portable computer with Windows XP. It doesn't have to be a powerful machine. Of course we need a computer to program our AVR. Then,Īfter getting the most important datasheets, we write our first little program and make it running on an ATmega8.Ĭlick on the picture in this tutorial to watch them larger in a popup window.īevore we start you should get the following material: Then we install the AVR studio and the AVR GCC compiler (both are free). The shortest way to your first working program. This tutorial guides you step by step to find
Avr studio 5 tutorial how to#
It is possible to learn how to work with an ATmega8 within one evening. If you have all the needed equipment ready, It's not difficult to make a program running on an AVR microcontroller. This AVR Tutorial guides step by step to the first running C programm on your AVR microcontroller.