Digtal Signal

I anuluar Postuar 6 vite mё parё Paguhet në dorëzim
I anuluar Paguhet në dorëzim

• Please create a new assignment folder in your working directory for each assignment, and a new problem folder in the assignment folder for each problem.

• Please backup your files in your own USB drive or your own network drive at the end of each class because the workbench computers may be reimaged without prior notice.

Problem 1. Blink LEDs with Timer0.

• Follow the Getting Started document “[url removed, login to view]” to create a new CCS project for the MSP432 LaunchPad. You may name the new CCS project as Lab2_1.

• Delete the “main.c” file if you have generated that file automatically when you were creating your new CCS project.

• Copy the source code file “Lab2_1_main.c” into your project folder.

• Build, load, and run your project on the LaunchPad.

• Observe the LED blinking pattern on LaunchPad. Explain the code line-by-line. The references

that you will need to read are listed on the page titled References in the lecture notes. You will need to develop a habit of keeping those references handy and look up information frequently from those files. What you need to explain in your report include what the code in that line does, where the function is defined, what is the definition of the function, what are the input parameters, why the parameters are given the values as in the source code.

• Stop debugging so your CCS returns back to the CCS Edit perspective.

Problem 2. Blink LEDs with SysTick timer.

• Follow “[url removed, login to view]” to create a new CCS project with the name of Lab2_2.

• Delete “main.c” if you have generated the file automatically.

• Copy the source code “Lab2_2_main.c” into your project folder.

• Build, load, and run your project on LaunchPad.

• Explain the code line-by-line in your report.

Problem 3. Square wave signal generation with SysTick timer.

• Follow “[url removed, login to view]” to create a new CCS project with the name of Lab2_3.

• Delete “main.c” file and then copy the source code “Lab2_2_main.c” into your project folder.

• Make the following changes in the “Lab2_2_main.c” file:

o Set DCO_FREQ to 48MHz

o In addition to using P1.0 as an output, configure P3.7 as output pin. Then, toggle output on

pin P3.7 at the same rate as P1.0.

1

• Make sure to turn off the power of (or disconnect) the LaunchPad. Then, connect wires to each of the header pins of P3.7 and GND on your LaunchPad. Next, connect an oscilloscope to the wires to measure the output signal between P3.7 and GND pins.

• Compile, load, and run your new program on LaunchPad.

• Change the value of SYSTICK_FREQ in the source code according to the table below, then

measure the signal frequency from oscilloscope to fill in the table below:

• Explain the results in the table above. What is the smallest signal frequency that you can generate correctly using the SysTick timer when MCLK clock frequency is set to 48MHz? Why?

Assignment Deliverables:

• Compile your report with pictures, plots, and the codes that you have written or modified.

• Explain in detail what you have done, why you have done in that way, and what you have learnt.

Follow the report format outlined in the Introduction lecture notes.

• Printout of your source code should be attached to your lab report printout as appendix. If your

source code goes beyond two pages, please only print the part of the source code where you have

newly written or modified.

• You also need to email your source codes to TA for grading.

Inxhinieri Elektrike

ID Projekti: #15196047

Rreth projektit

2 propozimet Projekti në distancë Aktiv 6 vite mё parё

2 profesionistë freelancer dërguan një ofertë mesatare prej $23 për këtë punë

leonardoecv

I'll complete your assignment within a day, and explain the code line by line (lab2_1, 2_2 and 2_3) so you could understand the core concept. Also will simulate the sample output you'll get. Relevant Skills and Experi Më shumë

$25 USD për 1 ditë
(0 Përshtypje)
0.0