Preview

Avr Tutorial

Good Essays
Open Document
Open Document
1845 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Avr Tutorial
The AVR Microcontroller
Introduction Application and programmer boards WinAVR Basic I/O ADC, timers USART, LCD
Mehul Tikekar Chiraag Juvekar Electronics Club September 29, 2009

What is a microcontroller?
 

It is essentially a small computer Compare a typical microcontroller (uC) with a typical desktop
ATmega16 Typical desktop

Clock frequency CPU data size RAM ROM
I/O

16MHz 8 bits 1KB 16KB
32 pins

3GHz 32 bits 1GB 160GB
Keyboard, monitor 65W

Power consumption 20mW

2

Why use a micro-controller?
It is programmable.  A code (typically written in C) decides what it does  Easier to write a code than design and make a custom circuit for complex jobs  e.g. In a micromouse, a single uC controls the motors, finds distance from the walls, explores and solves the maze  The same muC can be used in hundreds of applications  http://instruct1.cit.cornell.edu/courses/ee476/Final Projects/ has 407 projects just on AVR microcontrollers as of 2009.

3

AVR microcontroller
• •

Lots of micro-controller families o 8051, PIC, AVR, MSP430, ARM, etc.

http://www.instructables.com/id/How-to-choosea-MicroController/ • AVR: Cheap, easy to use, fast and lots of features • ATmega16: o 16KB flash memory o 1KB SRAM o Up to 16MHz clock o Four 8-bit I/O ports o ADC, timers, serial interface, etc. o 40 pin DIP, VDD = 5V
4

ATmega16 pin diagram

Port B Programming interface

Port A

Port D

Port C

5

Hardware and Software needed
Application board  Programmer board  WinAVR


6

Bare bones of the Application Board
7

On a bread-board

IC1

R2 LED1 C1 R1 Programming interface
8

Complete application board

9

USBasp – USB Programmer

www.fischl.de/usbasp for more information and usb driver

10

USBasp

11

WinAVR
A complete package for Windows

◦Programmer’s Notepad (user interface) ◦avr-gcc (C/C++ compiler) ◦Mfile (makefile generator) ◦avrdude (programmer software)
Totally free! :

You May Also Find These Documents Helpful

  • Satisfactory Essays

    CEIS100 W4 ILab Report

    • 181 Words
    • 2 Pages

    The conclusion I after accessing it completely this small computer can run word-processing software, email clients and web browsers.…

    • 181 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1110 Module3 SA

    • 365 Words
    • 1 Page

    The processor would be the brain of the computer and it is where all the computing is done. Memory is where the computer stores all of the information. Chipset would be in link between the processor and the outside world of the computer. It handles hard drives, USB ports, the keyboard and mouse, etc. Expansion slots are allow you to add additional cards to the computer. Some examples would be modems, sound cards, and things the motherboard doesn’t provide. Input/output devices allow you to connect devices to the computer such as printers, monitors, keyboards, mouses, speakers and a lot of other devices.…

    • 365 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    A desktop computer is a fully functional computer designed for you to carry around and run on battery power.…

    • 1389 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Computer Purchase

    • 553 Words
    • 3 Pages

    | * 8x DVDRW Drive * N 2230 WLAN * 3 USB 2.0 Ports * 8-in-1 Memory Card Reader…

    • 553 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Each device is constructed with inexpensive electronic hardware and operates on software suitable for embedded systems with limited memory and computational power.…

    • 592 Words
    • 3 Pages
    Good Essays
  • Good Essays

    internaltional marketing

    • 780 Words
    • 3 Pages

    A desktop computer usually has a standard configuration and specification with consisting of a CPU, monitor, keyboard, and mouse.…

    • 780 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Chapter 2 Review

    • 762 Words
    • 4 Pages

    Net-top: is an inexpensive desktop computer designed to be smaller and lighter and to consume…

    • 762 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    When most people think of computers, they do not visualize the components inside that make up the computer system. Most state-of-the-art systems have the same components as a personal computer to meet the user’s needs. Although state-of-the-art computers offer more memory and storage capabilities, my personal computer offers some of the same components but is less expensive.…

    • 430 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Computer Class

    • 916 Words
    • 4 Pages

    2. The computer has something that enables it to figure out what to do with the input you give it: software.…

    • 916 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Computers have had a dramatic change from the way they used to be, when a computer would take up an entire room and weighed tons of pounds and had the same amount of power as a scientific calculator. Now, computers come in all shapes and sizes to suit your personal needs, weather it be a laptop, or a normal pc with a flat screen anything really.…

    • 559 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Processor, Intel Core i5-3317U, 1.7 GHz speed, 2MB cache, 24GB SSD, 750 GB HDD, 6GB RAM DDR3 1600MHz.…

    • 2100 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Foundation of Democracy

    • 348 Words
    • 2 Pages

    A computer dedicated to shaaring resources among 2 or more computers and managing large amounts of data.…

    • 348 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    BIOS and CMOS are two terms that many people think they know but cannot differentiate between. BIOS and CMOS are two different and distinct things in a computer, but being closely related, they are spoken of almost interchangeably. BIOS (basic Input Output System) is a program containing instructions for the start up of a computer, whereas CMOS (complimentary metal oxide semiconductor) is where all this BIOS information such as date, time, and system configuration details that are needed to start the computer are stored. Yes, they are closely related and perform very important functions at the startup of a computer but they cannot be more dissimilar also. Let us find the difference between BIOS and CMOS that seems to be so very confusing. In the simplest of terms, BIOS is a computer program that controls the computer when you switch on the power until the time the operating system of the computer takes over. Since BIOS is a firmware, it cannot store even this small bit of information, and CMOS it is that is used by BIOS to store the variable data.…

    • 456 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    E Commerce vs M Commerce

    • 2602 Words
    • 11 Pages

    levels in which they can operate in the same capacity as a home or office computer. The M…

    • 2602 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    Some of the major parts of a personal computer (or PC) include the motherboard, CPU, memory (or RAM), hard drive, and video card. While personal computers are by far the most common type of computers today, there are several other types of computers. For example, a "minicomputer" is a powerful computer that can support many users at once. A "mainframe" is a large, high-powered computer that can perform billions of calculations from multiple sources at one time. Finally, a "supercomputer" is a machine that can process billions of instructions a second and is used to calculate extremely complex calculations.…

    • 534 Words
    • 3 Pages
    Good Essays