Lab 7: Event Manager
Run the Code – Duty Cycle Measurement
29. Be sure that the memory window is open to view the address label CAP_duty. (Use
&CAP_duty in address box).
30. With the wire still connecting the PWM1 (pin # P8-9) to CAP1 (pin # P8-6) on the
eZdsp™, run (real-time mode) the code again, and fully halt it after a few seconds.
Observe the values for
CAP_rising, CAP_falling, and CAP_duty in a memory window.
Notice that
CAP_duty is simply the difference between CAP_rising and CAP_falling
using 16-bit modulo signed math.
Questions:
•
What is the value of CAP_duty in memory?
• How does it compare with the expected value?
End of Exercise
C28x - Event Manager 7 - 41