Embedded C Programming
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:
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
