PDA

View Full Version : Step by Step guide to C programming of AVR



sumandeep1984
09-19-2005, 08:05 PM
Step1
Configure the ISP programmer as ahown in the circuit. It's wonderfull, costs less than Rs 40.
http://elm-chan.org/works/avrx/stk200.png

Step2
Download the pony prog programming software for the above STK200 programmer
http://www.lancos.com/ppwin95.html

Step3
Install WinAVR (includes avr-gcc & Visual C++ like IDE) for a real cool programming interface
http://winavr.sourceforge.net/

Step4
Install AVRLib C Library for AVR family of processors
http://www.procyonengineering.com/avr/avrlib/

Step5
Go through the documentation & examples of Pony Prog, WinAVR, AVRLib ... it's required ... won't take more than a week in worst case

Step6
Get ready to program your AVR with C code. First write the code in the Programmer's Notepad distributed along with WinAVR ... Include necessary files of AVRLib function library. Compiler settings can be changed using the makefile utility of WinAVR. Compile .... once you have the .hex file .... burn it onto your AVR through the Pony Prog / STK200 using the ISP interface of the AVR ....

Post on the forum if u face any other difficulties !

Note: Do not PM me for solutions, post on the forum... let others see the question and the solution

Hope this helps !

abhijit8
10-17-2005, 02:03 PM
where could i buy a avr board????
i nid one urgently


nyway the ckt diag link is broken(i think)

robosmart
11-28-2005, 04:11 PM
HI SUMANDEEP ,
i am a bit confused about the programmer . some of the schematics i found from google show a ZIF socket. can u tell me whether it has to be incorporated in the circuit.
thank you
subo

Vivek
11-28-2005, 07:20 PM
youd dont need a ZIF socket. it is very expensive and you can use a simple IC socket instead.

get good quality IC socket -- (round pin type)

cheers!