lab4 - Electrical Computer Telecommunications Engineering...

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

View Full Document Right Arrow Icon
Electrical, Computer, & Telecommunications Engineering Technology 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. Å T H Æ Å T L Æ
Image of page 1

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

View Full Document Right Arrow Icon
Electrical, Computer, & Telecommunications Engineering Technology
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ 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