Lab 7: Event Manager
Lab 7: Event Manager
Objective
The objective of this lab is to apply the techniques discussed in module 7 and become familiar
with the programming and operation of the Event Manager and its interrupts. General-Purpose
Timer 1 and Compare 1 will be setup to generate a 2 kHz, 25% duty cycle symmetric PWM
waveform. The waveform will then be sampled with the on-chip analog-to-digital converter and
displayed using the graphing feature of Code Composer Studio. Next, Capture Unit 1 will be
setup to detect the rising and falling edges of the waveform. This information will be used to
determine the width of the pulse and duty cycle of the waveform. The results of this step will be
viewed numerically in a memory window.
Lab 7: Event Manager
Lab 7: Event Manager
(EVA)
(EVA)
ADC
RESULT0
...
data
memory
po
in
te
r
re
w
in
d
CPU copies
result to
buffer during
ADC ISR
GP Timer 2
GP Timer 2 triggers
ADC SOC every
20
µ
s (50 kHz)
connector
wire
Compare 1
PWM Circuits
Output Logic
Capture 1
FIFO FIFO
GP Timer 1
Event Manager
ADC-
INA0
Procedure
Project File
Note:
LAB7
files have been provided as a starting point for the lab and need to be
completed
. DO NOT copy files from a previous lab.
1. A project named
Lab7.pjt
has been created for this lab. Open the project by clicking
on
Project Open…
and look in
C:\C28x\LABS\LAB7
. All Build Options
have been configured like the previous lab. The files used in this lab are:
7 - 36
C28x - Event Manager
Содержание C28 Series
Страница 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Страница 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Страница 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Страница 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Страница 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Страница 275: ...Appendix eZdsp F2812 eZdsp F2812 Connector Header and Pin Diagram C28x Appendix A eZdsp F2812 A 3 ...
Страница 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Страница 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Страница 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Страница 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Страница 281: ...Appendix JP7 JP8 JP11 JP12 Boot Mode Select JP9 PLL Disable DS1 DS2 LEDs C28x Appendix A eZdsp F2812 A 9 ...
Страница 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...