Login to Your Account

Basics of AVR microcontroller (specialy Atmega16)

  1. pdas204
    -> RISC Architecture 8-bit Micro controller

    RISC stands for reduced instruction set controller. that means it require less no of instruction for programming than CISC architecture

    ->32 x 8 General Purpose Working Registers

    ->Fully Static Operation, up to 16 MIPS Throughput at 16 MHz

    static operation means it will require a indefinite loop for its operation in programing

    ->Nonvolatile Program and Data Memories

    ->16K Bytes of In-System Self-Programmable Flash, Endurance: 10,000 Write/Erase Cycles

    ->Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes and One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode

    ->Four PWM Channels

    ->8-channel, 10-bit ADC

    ->32 Programmable I/O Lines
  2. pdas204
    Atmega16 can be programmed in two way
    1. using assembly language programming
    2. using c language
    letter is easy for writing complex programs. for c we need one integrated development environment(IDE). avr ide is one of the best software for that and it is free to download and easy. this software is freely available in atmel's website or one can easily find by just googling this. in next post we will see how to install it and use it. please give me your coment for improvement.....
  3. pdas204
    AVR Studio 4 is a professional Integrated Development Environment (IDE) for writing and debugging AVR applications in Windows 9x/NT/2000/XP environments. First download avr studio 4 from one of these sites:
    1. Atmel Corporation: Atmel Corporation - Home
    2. AVR Freaks: AVR Freaks
    After installing AVR Studio 4 on your computer.

    Step 1: Open AVR Studio 4 IDE. You should see the program banner .

    Step 2: When IDE opens, you will see the programming and simulator environment as well as a
    dialog box (Figure 3) requesting information: are you starting a new project or opening a saved

    Step 3: Click on the “New Project” button

    Step 4: In the next dialog box, choose the Atmel AVR Assembler as the project type:

    step5: then give the project name and continue
  4. pdas204
    A general c program has view like this:

    # header file

    but since atmega 16 is fullly static we have to give a infinite loop inside the main program to execute the program on a continuous manner.Such as


    since c is a well known language to all of us i will try to describe how to program atmega16 in c language.
  5. amogh_jes
    simplified tutorial easy to understand
Results 1 to 5 of 5

Poll of the Day
F Polls