ECET 330 Week 6 Lab Devry
schoolbench
Laboratory Report Cover Sheet
DeVry University
College of Engineering and Information Sciences
Course Number: ECET330
Professor:
Laboratory Number: 6
Laboratory Title: Embedded C Programming: Part I
Submittal Date:
Objectives:
To learn how to write a C program using CodeWarrior IDE
To learn how to program I/O instructions in C language
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
To learn how to write inline assembly language in C
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
Questions:
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.
- 9 years ago
Purchase the answer to view it
- week6lab.docx