REPEAT - San Jos State University Department of Mechanical...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: San Jos State University Department of Mechanical and Aerospace Engineering Introduction to the Atmel ATmega 128 Microcontroller 9/23/08 Report Author: Lab Date: 9/16/08 Summary This report describes how to get familiarized with the Atmel ATmega 128 microcontroller; STK500 and STK501 interface boards and associated hardware. It also familiarize with the components of AVR Studio, a freeware programming environment for the ATmega 128 are introduced in the procedure. A serial communications program in C-language using the AVRlib examples is slightly introduced as well. We compiled it using the GNU-C complier for AVR processors. The display of the output is then downloaded and run on the ATmega 128 microcontroller. ___________________________ Results/Discussion The procedure is described as follow; Jumper setting on the STK500 is checked to the default value. Then the ISP6PIN header on the STK500 to the SPROG header on the STK501 board with this cable. Figure 1. AVR Studio New Project Window. Figure 2. Project File Manager . In AVR studio, project name is saved as Figure 1. And then the source file and header files are added to the project file manager as Figure 2. 1 San Jos State University Department of Mechanical and Aerospace Engineering Figure 3. Project Options . Figure 4. AVR Programmer Toolbar. The project options are entered as displayed as Figure 3. After the power on the SKT500, AVR program is connected to the processor as showed in Figure 4. 2 San Jos State University Department of Mechanical and Aerospace Engineering Figure 5. AVR Fuse Selection. Figure 6. STK500 ISP Settings. In Tool > Program AVR, these fuses under the Fuse Tab for STK500 is carefully checked, according to Figure 5. Some of the options are not available in window, thus we chose the closest possible value to make it work. Then in the Board Tab, STK500s frequency and ISP frequency are entered as displayed in Figure 6. Figure 7. STK500 Programming Dialog Header. 3 San Jos State University Department of Mechanical and Aerospace Engineering HEX file must be selected to execute the program of our new project. And the PE1 and PE0 are connected for ATmega. Now the following display is created on the screen HyperTerminal Program. In ATmega 128, 8-channel of 10-bits A/D converters exist with different input stage with in- system reprogrammable flash of 128K bytes. //***************************************************************************** // File Name______________________________: rprintftest.c // // Title__________________________________ : example usage of rprintf library functions // Revision_______________________________ : 1.0 // Notes__________________________________ : // Target MCU____________________________: Atmel AVR series // Editor Tabs_____________________________: 4 // // Revision History: // When_________________________________ Who Description of change // -----------_______________________________----------------------------------...
View Full Document

This note was uploaded on 09/08/2010 for the course ME 106 at San Jose State University .

Page1 / 6

REPEAT - San Jos State University Department of Mechanical...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online