This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28335: Filter problem

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I have a Tms320f28335 processor on which I have to implement a filter.I need to take input from the function generator and display its output on the CRO. Since I have just started using this processor and I don't have much idea on how to go about it.Some insight would be greatly appreciated. 

  • Rohan,

    We don't have an example which does exactly this, but I can recommend a couple of resources which may help you.  Firstly, please download the latest version of C2000Ware.  This contains a DSP library which includes some filter functions.  If you install in the default location, these will be at...

    C:\ti\c2000\C2000Ware_1_00_05_00\libraries\dsp\FPU

    There is a 3-day hands-on workshop based on F28335 which may be useful.  You can download the materals at:

    Lab 9 contained an FIR filter which was fed from an ADC input and logged into memory.  The result would be displayed in a CCS window, however you could modify this to write the filter output to a PWM and RC filter that to display the result on a scope.  We don't have code for that - it's something you'd have to write yourself.

    I hope this helps.

    Regards,

    Richard

  • Hey Richard,thanks a lot for your help! Just wanted to know what exactly is C200Ware? Do we not have to use code composer studio?
  • Rohan,

    Yes, you will use the Code Composer Studio IDE to write code and program the device. C2000Ware is a suite of software resources for C2000: libraries, docs, ...etc. You can download it freely here:
    www.ti.com/.../c2000ware

    Regards,

    Richard
  • Thank you!
    I will surely look into this.
  • Hey Richard,

    I just checked out lab 9 folder as you mentioned above.But it has many different files in it.I'm not quite sure which file contains the actual code.Is it different for different functions? Like separate for adc and filter?
  • Rohan,

    In lab 9 the main file is "Main_9.c".  If you want to add filter functionality that is where you'll make most of your changes.  There is one file containing the ISRs ("DefaultIsr_9_10_12a.c"), and the remaining files mostly configure the device.

    I think it would be worthwhile going through the entire multi-day workshop resources I sent in an earlier post.  If you are new to C2000 and CCS, you may want to view the on-line training workshop video at:

    You will find this useful even though it's for a different device.

    Regards,

    Richard