ECET330 week 6 ilab

Question # 00067931 Posted By: solutionshere Updated on: 05/10/2015 02:08 PM Due on: 05/10/2015
Subject General Questions Topic General General Questions Tutorials:
Question
Dot Image

lorLaboratory Report Cover Sheet
DeVry University
College of Engineering and Information Sciences



Course Number:ECET330

Professor: Alireza Kavianpour

Laboratory Number: 6

Laboratory Title:Embedded C Programming: Part I

Submittal Date:

Objectives:

1. To learn how to write a C program using CodeWarrior IDE

2. To learn how to program I/O instructions in C language

3. To learn how to organize a C program to read data from input ports, process the data, and display the result on a simple output device

4. To learn how to write inline assembly language in C

Results:

While programming withembedded Cis the mindset; for embedded applications, we need to optimally use the resources, make the program code efficient, and satisfy real time constraints, if any.

Conclusions:

I was able to run the program successfully.

Team:

May Saw

EET

Name

Program

Signature

Observations/Measurements:

1. IV. 1-A. Cut and paste the Memory window.

Text box:


IV. 1-B.Cut and paste the Memory window to show the value of result.

Text box:

IV. 1.C - What is the value displayed on the LEDs after you single step the line PTT = ~result?


IV. 2. A. What are the LED values?


IV. 2. B. Calculate the delay size and show your work.


IV. 3. A. Cut and paste the source code.

IV. 3. B. Cut and paste the Memory window.

IV. 3. C. Describe the values of LEDs. What is the last value that you see?

IV. 4. A. Cut and paste the source code.

IV. 4. B. Describe the values of LEDs. What is the last value that you see? Does the loop end?

.

IV. 5. . Does the loop end? Describe the reason.

IV. 6. Cut and paste the source code.

Questions:

1. When we write a C program, in some cases, we need to write some part of the code in assembly language. What do we call an assembly-language code written in a C program? Describe a situation where assembly-language code is preferred over C.

2. Discuss the reason why we used unsigned char for a loop counter of Problem 4 as opposed to int.

Grade:

Deliverable

Points Available

Points Achieved

Laboratory Cover Sheet

8

Working Circuit(s)/Program(s)

8

Observations/Measurements

6

Questions

8

Total Points

30

Comments:




Dot Image
Tutorials for this Question
  1. Tutorial # 00063823 Posted By: solutionshere Posted on: 05/10/2015 02:08 PM
    Puchased By: 3
    Tutorial Preview
    input ports, process the data, and display the result on ...
    Attachments
    Saw-M-ECET330_W6_iLab.docx (93.86 KB)
    Recent Feedback
    Rated By Feedback Comments Rated On
    Spa...002 Rating tutorial help in all the subjects 09/11/2015

Great! We have found the solution of this question!

Whatsapp Lisa