Answered step by step
Verified Expert Solution
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 illustrates the assignment. The period of the output PWM in HWCPWMPRGA TAOUT pin P is
measured by Timer in Capture mode.
TA CCIFG
Stop TA
vCount TAxCCR
Clear CCIFG
Clear TAR
Run TA
Figure In this assignment, PWM output P is connected to TACCIA P
to measure the time between two rising edges. Upon each rising edge, when TA
CCIFG is set, the Timer is stop, the value inside TACCRthat is the number of
TA counts from previous rising to the recent rising edge is read, TACCIFG is
cleared, TAR the Timer counter is cleared, and Timer restarts.
The steps need to be taken upon each rising edge is shown in Figure To have an hardware indicator to see if the
code is working based on our expectation, we can add # to this six steps. In steps 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 By adding an external indicator is shown in Figure
Report:
In a loop add the TACCR to a bit variable that was initializes with zero and repeat the loop at least for times.
Then print the following data in the console:
The report on the console:
Your first and last name
Current semester
EEL or 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
Apolgies for the lack of formatting but I was wondering if you can do the C coding for this one using the MSP 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!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started