lab4 - Electrical, Computer, & Telecommunications...

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

View Full Document Right Arrow Icon
MicroComputers Spring 20073 0618-303 Lab #4 Lab # 4 : Subroutines Educational Objective: The educational objective of this laboratory is to investigate the use of subroutines in the AVR assembly language. Pre-Laboratory: 1. Design an assembly language program that outputs one-of-four square waves based on the mode selected by the user. The output waveform will be on output on pin PB0 of PortB and the mode will be selected by S1 and S2 of the mega128.2 board. 2. Using the AVR Studio 4 tool, write, assemble and simulate your program. The program must use at least four subroutines. The program should be fully commented, including a program header block, as to stand on its own with no reference to this lab handout. S2 S1 Output 0 0 T H = 4.0 mSec; T L = 1.0 mSec 0 1 T H = 3.0 mSec; T L = 2.0 mSec 1 0 T H = 2.0 mSec; T L = 3.0 mSec 1 1 T H = 1.0 mSec; T L = 4.0 mSec 3. Submit your fully documented program to the dropbox 1 hour prior to your lab section. Å
Background image of page 1

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

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

This note was uploaded on 01/10/2012 for the course ENG 0618-303 taught by Professor Christman during the Spring '07 term at RIT.

Page1 / 3

lab4 - Electrical, Computer, & Telecommunications...

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

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