Devry ECET330 Week 6 ILAB Latest

Question

Dot Image

ECET330 Microprocessor Architecture

Week 6 ILAB  

Laboratory Number: 6

Laboratory Title: Embedded C Programming: Part I

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 with embedded C is 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.

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

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:

Having Trouble Meeting Your Deadline?

Get your assignment on Devry ECET330 Week 6 ILAB Latest completed on time. avoid delay and – ORDER NOW

Dot Image

Order Solution Now

Similar Posts