Egcp-450 lab report california state university fullerton


Lab Report -

1. Problem/Objective - State the problem statement and/or objective of the lab. This must be a complete paragraph (i.e., at least 5 sentences).

The purpose of this lab is to learn simple programming structures in assembly. In this assignment we mainly learn about the time delay, which is a very important concept in microcontroller. We have to blink the LED1 (P1.0) after every 100ms until the user presses the switch2 (P1.4) again. The 100ms is the time delay. We will use the clock profiling feature in CCS to estimate the time delay. We also use the concepts like masking for reading and writing, toggling the output, so that we can make the LED blink, subroutine and looping which generic concepts are in ASM programing.

2. Background - Briefly describe what you did in the lab including technical detail. It must be at least two complete paragraphs to receive full credit.

In this lab the program starts with lighting LED1 to ON state , then when the user presses the switch 2 (P1.4), it will be in the same state i.e., ON because the switch is a negative logic switch. A negative logic switch means the P1.4 signal will be 1 (high, 3.3V) if the switch is not pressed, and the P1.4 signal will be 0 (low, 0V) if the switch is pressed. When the user presses the switch again (OFF), then it starts blinking. The time gap between each blink is 100ms, this is the time delay we have implemented in this program. The output is positive logic which means that red LED will be ON (glow) , if the software outputs a 1 to P1.0 (high, 3.3V) and if the software outputs a 0 to P1.0 (low, 0V) the red LED will be OFF. We have used the clock frequency of 3MHz and from that we have derived the time delay. One of the simplest way in which we manage time delay is using the software/coding, but we can also implement the time delay directly using the hardware. We are supposed to implement a delay of 100ms which corresponds to 150000 looping for a maximum of 4 cycles per loop, as explained below in details.

3. Questions/Deliverables:

a) What is a "Reset Vector" and why do you need it?

b) In this lab, you were asked to create a delay based on the number of cycles. Use this to calculate the estimated time delay in seconds. Show your work to receive full credit. If you want, you can hand write your work, take a picture, and paste the image here. One app that I would suggest to easily do this is "CamScanner".

Solution Preview :

Prepared by a verified Expert
Dissertation: Egcp-450 lab report california state university fullerton
Reference No:- TGS02916735

Now Priced at $50 (50% Discount)

Recommended (93%)

Rated (4.5/5)