Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment description: Figure 2 . illustrates the assignment. The period of the output PWM in HW 7 _ C _ PWM _ PRG _ A

Assignment description:
Figure 2. illustrates the assignment. The period of the output PWM in HW7_C_PWM_PRG_A (TA0-OUT1, pin P2.4), is
measured by Timer 1, in Capture mode.
TA. CCIFG ?1
Stop TA1
vCount - TAxCCR1
Clear CCIFG
Clear TA1R
Run TA1
Figure 2. In this assignment, PWM output (P2.4) is connected to TA1-CCI1A (P7.7)
to measure the time between two rising edges. Upon each rising edge, when TA1-
CCIFG is set, the Timer 1 is stop, the value inside TA1CCR1(that is the number of
TA1 counts from previous rising to the recent rising edge) is read, TA1-CCIFG is
cleared, TA1R (the Timer 1 counter) is cleared, and Timer 1 restarts.
The steps need to be taken upon each rising edge is shown in Figure 2. To have an hardware indicator to see if the
code is working based on our expectation, we can add #7 to this six steps. In steps 7, an output port, is toggled.
Then, by connecting that outport to a logic analyzer, we can see if the code is working or not. The complete version
of Figure 2. By adding an external indicator is shown in Figure 3.
Report:
In a loop add the TA1CCR1 to a 32-bit variable that was initializes with zero and repeat the loop at least for 100 times.
Then print the following data in the console:
The report on the console:
Your first and last name
Current semester
EEL4742 or 5930- Advanced Microprocessors
Date: ??
The Period of PWM is:
You submit two files: one pdf and one zip file.
"This is the problem itself. Some additional notes are here:
The PDF file is your source C code followed by a screen shot of console. The zip file is the archive made of your
project file. If I run your project, I should see the waveforms shown in Figure 3."
Apolgies for the lack of formatting but I was wondering if you can do the C coding for this one using the MSP432 libraries. Apologies if this is alot but can you please help me with this? Thank you so much if you can or are able to read this!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions