Lab 8: IQmath FIR Filter
C2000 Microcontroller Workshop - Numerical Concepts 8 - 35
Lab 8: IQmath FIR Filter
Objective
The objective of this lab is to become familiar with IQmath programming. In the previous lab,
ePWM1A was setup to generate a 2 kHz, 25% duty cycle symmetric PWM waveform. The
waveform was then sampled with the on-chip analog-to-digital converter. In this lab the sampled
waveform will be passed through an FIR filter and displayed using the graphing feature of Code
Composer Studio. The filter math type is selected in the “IQmathLib.h” file.
Lab 8: IQmath FIR Filter
CPU copies
result to
buffer during
ADC ISR
ADC
RESULT0
ePWM2
connector
wire
ADCINA0
...
data
memory
Display
using CCS
TB Counter
Compare
Action Qualifier
ePWM1
ePWM2 triggering ADC on period
match using SOCA trigger every
20 µs (50 kHz)
FIR Filter
Procedure
Open the Project
1. A project named Lab8 has been created for this lab. Open the project by clicking on
Project Import CCS Projects. The “Import CCS Eclipse Projects”
window will open then click Browse… next to the “Select search-directory” box.
Navigate to: C:\C28x\Labs\Lab8\Project and click OK. Then click Finish to
import the project. All build options have been configured the same as the previous lab.
The files used in this lab are: