1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

AVR Microcontroller tutorial

Discussion in 'AVR' started by rameshrai, Mar 16, 2014.

  1. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    ONLINE
    I don't seem to be able to do it.... My programs get bigger and bigger and bigger.... Separation of Concerns!! I get carried away!! LOL.. I'll never be a good programmer...
     
  2. misterT

    misterT Well-Known Member Most Helpful Member

    Joined:
    Apr 19, 2010
    Messages:
    2,697
    Likes:
    368
    Location:
    Finland
    I do it too, but I am obsessed with quality programming.
    When I have some inspiration for a project, I just go for it and then the code is straight forward... it is fun to get the hardware doing what it is supposed to as fast as possible.
    But, I have many C modules that compiles easily for avr, pic, linus, unix.. without modification. And that helps to put projects up and running fast.
    It is nice to compile same file (module) that handles top level communications in microcontroller and in PC.. and they work together.
     
  3. Mosaic

    Mosaic Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    2,611
    Likes:
    129
    Location:
    Caribbean
    I need to start learning C in an Mcu environment. My backgnd is BASIC and asm. I understand the hardware very well. This way I can choose the MCu thats appropriate for the app, C being portable and all.
    I hear that AVR has the better C dev environment tools?

    Can you guys guide me here as to which is the better C environment to learn in?

    thanks
    Ancel

    Edit:And suggest a development board to use as well!
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. kubeek

    kubeek Well-Known Member

    Joined:
    Mar 11, 2006
    Messages:
    1,510
    Likes:
    189
    Location:
    Prague, Czechia (not Chechnya)
    ONLINE

    I´d say that AVR is better off, as the compiler (avr-gcc) for it is free and unlimited by code size or anything else, with wide range of supporting libraries.
    Since there always has been just a single C compiler (now there are more, but mostly not free) the supporting libraries are not shattered by being compatilble only with this compiler and not that one, and the features of the compiler and libraries are well documented and tested.

    As for the development board, I would use any of the arduino boards and simply load them with your own code. Again they are well proven. Personally I would go with the Arduino Mega 2560 if you plan on going big, otherwise choose any of the smaller chips that fit your needs.
    Or get a TQFP adapter PCB, solder in some of the Xmega series chips, they have even more peripherals available. You don´t need much hardware to support these chips, just a few caps and a power supply.
     
  6. Mosaic

    Mosaic Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    2,611
    Likes:
    129
    Location:
    Caribbean

Share This Page