• 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 » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » FIR filtering using MSP430F5438A
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • Forums

    FIR filtering using MSP430F5438A

    This question is not answered
    Kedar Joshi
    Posted by Kedar Joshi
    on May 02 2012 10:53 AM
    Intellectual305 points

    Hi,

    I am using MSP430F5438A based system, and as a part of it I need to perform FIR filtering on it. Where I am using 3 eight tap filters one after the other, with certain processing involved in between. Can anyone suggest a way to use it with hardware multiplier as I need to perform it on 32 bit inputs with result being truncated to 32 bits.  

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • old_cow_yellow
      Posted by old_cow_yellow
      on May 02 2012 15:02 PM
      Guru25815 points

      If you use assembly code, you should have no problem at all.

      But you are probably using c. In that case, you could tell the c-compiler to not use the hardware multiplier. And you use c statements to read/write to the hardware multiplier registers directly.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Kedar Joshi
      Posted by Kedar Joshi
      on May 03 2012 09:09 AM
      Intellectual305 points

      Is it possible for you to just write a demo snippet? That would really help!! 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • old_cow_yellow
      Posted by old_cow_yellow
      on May 03 2012 13:58 PM
      Guru25815 points

      Examples in c can be found in slac357a.zip. But you really should read the users guide slau208j.pdf Chapter 23.

      Notes:

      1. The hardware registers are at most 16 bits wide. If your variables or constants in c are 32 bits wild and you try to split them to two halves to load the register, the code generated can be inefficient. You could use union to create 16 bits wide names for the lower and upper halves of those 32 bits wide names. Same precaution goes with unloading the 64 bit wide results.

      2. The MACS operation is very useful for DSP applications such as what you want to do. In one operation, it can do a signed 32-bit multiple another signed 32-bit and add the signed 64-bit result to a 65-bit signed accumulator (the 65th bit is an overflow/saturation indicator).

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jeff Tenney
      Posted by Jeff Tenney
      on May 03 2012 14:23 PM
      Guru10805 points

      Hi Kedar,

      Have you seen this:  http://www.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&tabId=1502&literatureNumber=slaa228&docCategoryId=1&familyId=914

      It was written for the old 16-bit HW multiplier, but the concepts are all the same.  This example even uses DMA, which is very nice because it increases performance of the filter and also frees the CPU for other tasks.

      Jeff

      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