programmer & compiler for AVR

Discussion in 'Embedded Systems and Microcontrollers' started by onlyvinod56, Apr 10, 2010.

  1. onlyvinod56

    Thread Starter Active Member

    Oct 14, 2008
    362
    1
    hello everyone...

    iam a hobbyist in electronics.....
    now iam turning towards the micro controllers...
    i have done some programs for 89c51 with keil....and i need a programmer for the realtime applications....i dont have aprogrammer...


    somebody said that AVR can be programmed with a simple circuit
    http://electronics-diy.com/avr_programmer.php

    i didnt find the ATMEGA8 in keil.....can u suggest a compiler for me...
    and where can i download it freely??

    Are there any other controllers which can be programmed easily??

    Basically iam an electrical student and i dont the difference between PIC and AVR?

    make me clear...
     
  2. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
    PIC and AVR are two different companies.. Like Ford and Chevy.

    Each drives a different way and has different options. Choose the one that suits your needs.

    AVR is built by a company called AMTEL

    PIC is built by Microchip.
     
  3. nanovate

    Distinguished Member

    May 7, 2007
    665
    1
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    I would add that WINAVR is an add-in to AVRSTUDIO4 (also free from atmel's website) so you will need to install the free AVRSTUDIO4 onto your PC before installing WINAVR.

    hgmjr
     
  5. onlyvinod56

    Thread Starter Active Member

    Oct 14, 2008
    362
    1
    Thanks for u all...HGMJR, NANOVATE & RETCHED...

    Ok fine about the answers and the links....
    How about the programmer......for PIC.
    Do i need to buy a special one or simply can i make it at home? like the link for AVR

    http://electronics-diy.com/avr_programmer.php

    Thankyou
     
  6. Arm_n_Legs

    Active Member

    Mar 7, 2007
    183
    10
    Need a programmer for 8051? Try the silabs (http://[URL="http://www.silabs.com"]www.silabs.com[/URL]) 8051. Program downloadable through jtag. For evaluation, can buy the lower cost toolstickbase and toolstick daughter card.
     
  7. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Since you are a student I will highly recommend that use the same type MCU as your university. As it will give you a big advantage in homework and other projects
     
  8. onlyvinod56

    Thread Starter Active Member

    Oct 14, 2008
    362
    1
    I found the atmega16/32 programmer
    http://kartikmohta.com/wiki/Tech/ATmega16Programmer
    and i have downloaded avrstudio4 too.
    I have started the programming. Iam facing errors as few 8051 commands are not working here in AVR.

    Can anybody send me a basic program links like LED blink.... working with i/o ports etc.,

    I have decided to try with the AVR 16
     
  9. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Are you planning to write in Assembler or C-language?

    hgmjr
     
  10. CVMichael

    Senior Member

    Aug 3, 2007
    416
    17
    MPLAB ICD 3, It's $200, but it programs almost all PICs
     
  11. onlyvinod56

    Thread Starter Active Member

    Oct 14, 2008
    362
    1
    C languauge... i dont know assembler....
     
  12. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    That being the case, have you downloaded the WINAVR add-in for AVRSTUDIO4?

    If not all you need to do is go to www.sourceforge.net and search for WINAVR and download the latest version. Yes, its free.

    hgmjr
     
  13. onlyvinod56

    Thread Starter Active Member

    Oct 14, 2008
    362
    1
    I have downloaded WINAVR and AVRSTUDIO4....

    one more doubt....... do the ATMEGA8535 works with the software?
    As i have the atmega8535 hardware right now at my work bench.....

    Iam attaching the picture.....

    If i get success in doing a simple program(blinking of one led), then i can go for the following project....

    http://www.instructables.com/id/LED-Cube-4x4x4/
     
  14. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    AVRSTUDIO4 and WINAVR both support developing code for the ATMEGA8535. I am not familiar with your programmer so I cannot say for certain. If you are using ponyprog as you programming software then you will probably be ok.

    hgmjr
     
  15. onlyvinod56

    Thread Starter Active Member

    Oct 14, 2008
    362
    1
    ok then...

    can u send me a basic tutorial link for ponyprog.......
    I want the very basic tutorial like how to dump the code using ponyprog...
     
  16. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    I am sure there are several tutorials out there. Here is a link to but one. Google with keywords tutorial and ponyprog.

    hgmjr
     
  17. onlyvinod56

    Thread Starter Active Member

    Oct 14, 2008
    362
    1
    Hello I have seen some tutorials.....
    here are some doubts.....

    1. What is a "make file"?
    2. Is it common for all the programming softwares like ponyprog, winavr..etc?
    3. What is the difference between HEX file and MAKE FILE....
    I have done a very few programs on 8051...i never saw such a make file...
    4. How can i build such a make file with my basic knowledge?
    I have one atmega16 and its programmer and ponyprog, winavr & avrstudio
    too

    see the links
    http://kartikmohta.com/wiki/Tech/ATmega16Programmer

    http://kartikmohta.com/tech/avr/programmer/Makefile.txt
     
  18. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
  19. onlyvinod56

    Thread Starter Active Member

    Oct 14, 2008
    362
    1
    Can i run a program without a make file??????
     
Loading...