{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

2intro-atmel - Introduction to the ATmega128 Atmel 1...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to the ATmega128 Atmel - 1 © San José State University Dept. of Mechanical and Aerospace Engineering rev. 3.4 01FEB2008 Introduction to the Atmel ATmega 128 Microcontroller Purpose: To introduce students to the Atmel ATmega 128 microcontroller, STK500 and STK501 interface boards, and associated hardware. To introduce the components of AVR Studio, a freeware programming environment for the ATmega 128. To learn how to write a serial communications program in C-language using the AVRlib examples. To learn how to compile a program using the GNU-C compiler for AVR processors. To learn how to download and run a program on the ATmega 128 microcontroller. Components: Qty. Item 1 Atmel ATmega 128 microcontroller mounted to a STK501/STK500 interface board 1 Serial programming cable 1 12 VDC power supply 1 6-pin ribbon cable 1 2-wire jumper with female plugs on both sides Introduction: A microcontroller can be a powerful tool when building electro-mechanical systems. Like a mini, self- contained computer, it can be programmed to interact with both the hardware and the user. Even the most basic microcontroller can perform simple math operations, control digital outputs, and monitor digital inputs. As the computer industry has evolved, so has the technology associated with microcontrollers. Newer microcontrollers are much faster, have more memory, and have a host of input and output features that dwarf the ability of earlier models. Most modern controllers have analog-to- digital converters, high-speed timers and counters, interrupt capabilities, outputs that can be pulse-width modulated, serial communication ports, and the list goes on. The ATmega 128 microcontroller is one of the more recent versions of Atmel’s 8-bit RISC processors in AVR family. It is a fairly inexpensive controller (about $15) with plenty of features that you will explore throughout the semester. Thanks to the Atmel Corporation, you will be able to borrow a microcontroller evaluation board for the semester that can be used to program the ATmega 128 and other Atmel microcontrollers. In this lab, you will gain an understanding of the basic hardware of the microcontroller and interface boards. You will learn how to build, compile, download, and run a project written in C- language, and you will learn how to use AVRlib, a library of pre-written C functions. The compiler and programming environment, as well as the libraries for AVR processors are freeware, best downloaded from the web at http://sourceforge.net/projects/winavr . In industry, you can expect to pay anywhere from $50 to $400 for just the microcontroller and up to $1000 for a professional compiler and programming interface! SO BE CAREFUL AND RESPECTFUL of the microcontrollers and interface boards! Like any electronic device, they are sensitive and may be damaged easily ! DO NOT make connections with the power turned on! Always turn off the power to the microcontroller before you disconnect any wires, too. BE CAREFUL of static charges! USE COMMON SENSE, and FOLLOW THE INSTRUCTIONS in the lab assignments. You will
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • '08
  • Combs,Charles
  • Serial port, San José State, Atmel AVR, Atmel Corporation, San José State University Dept. of Mechanical and Aerospace Engineering

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern