• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » Code Composer Studio » Code Composer Forum » about FIR BP filter design in CCS
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Forums

    about FIR BP filter design in CCS

    This question is answered
    Preeti Bhaskar
    Posted by Preeti Bhaskar
    on Mar 31 2012 00:12 AM
    Prodigy50 points

    Hi to all

    I have been designing FIR  BP filter using following code in CCS 3.1

    #include "bs2700.cof" //coefficient file

    #include "dsk6713_aic23.h" //codec-dsk support file

    Uint32 fs=DSK6713_AIC23_FREQ_8KHZ; //set sampling rate

    int yn = 0; //initialize filter's output

    short dly[N]; //delay samples

    interrupt void c_int11() //ISR

    {

    short  i;

    dly[0]=input_sample(); //input newest sample

    yn = 0; //initialize filter's output

    for (i = 0; i< N; i++)

    yn += (h[i] * dly[i]); //y(n) += h(i)* x(n-i)

    for (i = N-1; i > 0; i--) //starting @ end of buffer

    dly[i] = dly[i-1]; //update delays with data move

    output_sample(yn >> 15); //scale output filter sample

    return;

    }

    void main()

    {

    comm_intr(); //init DSK, codec, McBSP

    while(1); //infinite loop

    }

    //bs2700.cof FIR bandpass coefficients designed with MATLAB

    #define N 89 //number of coefficients

    short h[N]= {-14,23,-9,-6,0,8,16,-58,50,44,-147,119,67,-245,

    200,72,-312,257,53,-299,239,20,-165,88,0,105,

    -236,33,490,-740,158,932,-1380,392,1348,-2070,

    724,1650,-2690,1104,1776,-3122,1458,1704,29491,

    1704,1458,-3122,1776,1104,-2690,1650,724,-2070,

    1348,392,-1380,932,158,-740,490,33,-236,105,0,

    88,-165,20,239,-299,53,257,-312,72,200,-245,67,

    119,-147,44,50,-58,16,8,0,-6,-9,23,-14};

    but i m getting an compilation error..i,e.

    fatal error :could not open source file "dsk6713_aic23.h"

    please help asap..

    thanking u in advance..

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on Mar 31 2012 21:07 PM
      Verified Answer
      Verified by Ki-Soo Lee
      Guru116865 points

      Hello,

      Preeti Bhaskar
      fatal error :could not open source file "dsk6713_aic23.h"

      You are missing an include search path to the header file.It is located in .\c6000\dsk6713\include

      Update the include search path field in your project build options for the compiler to have the full path to the file

      Thanks

      ki

      -----------------------------------

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Preeti Bhaskar
      Posted by Preeti Bhaskar
      on Apr 02 2012 17:17 PM
      Prodigy50 points

      hi,

      thanks..

      Must we connect target board while programming in CCS? what i meant to say is "isn't it possible to compile and build the the C-code without connecting the taeget?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on Apr 03 2012 09:56 AM
      Verified Answer
      Verified by Ki-Soo Lee
      Guru116865 points

      Preeti Bhaskar
      Must we connect target board while programming in CCS?

      No

      Preeti Bhaskar
      "isn't it possible to compile and build the the C-code without connecting the taeget?

      Yes. You don't need to be connected.

      Thanks

      ki

      -----------------------------------

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use