• 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 » Applications » Motor Drivers » Motor Drivers Forum » LM628's PID data structure question
Share
Motor Drivers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

LM628's PID data structure question

  • Brian Dang
    Posted by Brian Dang
    on May 03 2012 20:10 PM
    Prodigy40 points

    The LM628.pdf datasheet  http://www.ti.com/lit/ds/symlink/lm628.pdf,  page page 11 says: "The integral signal is maintained to 24 bits, but only the top 16 bits are used." This means the Integral part is right shifted by 8 (divided by 256). Then it coninues " The 16 bits are right-shifted eight positions and multiplied by filter coefficient ki to form the term which contributes to the motor control output." Does this mean the Integral part is right shifted by 16 now? However, Fig.19 of the app guide http://www.ti.com/lit/an/snoa184c/snoa184c.pdf shows the integral part is R shifted only 8bit before mult with Ki. Does anyone know for sure that it's shifted by 8 or 16 bits? I had posted my question to TI, and they refered me to this forum.

    This is my first post, and I appreciate all of your helps.

    Thanks,

    Brian

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ryan Kehr
    Posted by Ryan Kehr
    on May 07 2012 11:00 AM
    Genius13845 points

    Brian,

    I need to track down someone that is familiar with this device.  Please give us some more time.  

    Ryan Kehr

    Motor Drive Application Manager

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vijay Choudhary86929
    Posted by Vijay Choudhary86929
    on May 08 2012 11:34 AM
    Expert3490 points

    Hi Brian,

    The two documents are saying the same thing. Right shifting 8 positions is same as using 16msb of a 24 bit register in this case. Hope that clarifies things.

    Thanks and regards,

    Vijay

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brian Dang
    Posted by Brian Dang
    on May 08 2012 13:49 PM
    Prodigy40 points

    Hi Vijay,

    It's not clear on the datasheet as I stated in my post, and here I repeat again:

     " The 16 bits are right-shifted eight positions and multiplied by filter coefficient ki "

    The above statement means to me as the 16bits are futher right shifted again 8 bit , and this mean the original 24bit data had been shifted 16 times to the right -- not 8 as you see. Do you see the datasheet said it had been right shifted twice for a total 16 times?

    Brian

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vijay Choudhary86929
    Posted by Vijay Choudhary86929
    on May 08 2012 16:23 PM
    Expert3490 points

    Hi Brian,

    I see that there is a possibility of confusion. Perhaps the language should have been clearer. I read it like this:

    "The 16 (most significant) bits are right shifted eight positions and multiplied b filter coefficiency ki".

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brian Dang
    Posted by Brian Dang
    on May 08 2012 18:07 PM
    Prodigy40 points

    Hi Vijay,

    If indeed the author wanted to use the top most significant 16 bits of the 24 bit result, then it should say like this "the 24-bit result is right shifted 8 positions and multiplied to the filter coefficient Ki", and should not say like this

    "The 16 (most significant) bits are right shifted eight positions and multiplied b filter coefficiency ki".

    because I read it as "the 16 bits are right shifted 8 position" and so the result is 8 bits, not 16, which is multiplied to Ki.

    Brian

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brian Dang
    Posted by Brian Dang
    on May 09 2012 13:28 PM
    Prodigy40 points

    Also, on  page 18 of the app guide http://www.ti.com/lit/an/snoa184c/snoa184c.pdf, Fig 18 shows the Kp is multiplied with the top 16 bit of the 24 bits register. Does this means error signal e(n) is right shifted by 8 before multiplied with kp? This is contradict with the datasheet. The more I read the document more it becomes unclear.

    Brian

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • James Rose
    Posted by James Rose
    on May 23 2012 10:36 AM
    Expert3850 points

    Hello Team,

    Can I please get an update on this for the customer?

    Any assistance you can provide is greatly appreciated.

     

    Best regards,

    James Rose

    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