• 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 » C2000™ Microcontrollers » C2000 32-bit Microcontrollers Forum » PMSM sensorless example for F28335
Share
C2000™ Microcontrollers
  • Forums
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
C2000 Resources
  • Product Folder
  • C2000 Training Portal
  • C2000 Technical Training Catalog
  • C2000 Datasheets, App Notes, User Guides
  • C2000 Hardware Design Kits
  • controlSUITE for C2000 Software Library


  • InstaSPIN Resources
  • What is InstaSPIN?
  • Videos and Support


  • InstaSPIN-FOC and InstaSPIN-MOTION Resources
  • What is InstaSPIN-FOC?
  • What is InstaSPIN-MOTION?
  • InstaSPIN Simulation Tool
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • PMSM sensorless example for F28335

    PMSM sensorless example for F28335

    This question is answered
    bluehash
    Posted by bluehash
    on Nov 16 2009 16:10 PM
    Intellectual810 points

    Are there any PMSM examples for the F283x series of controllers. I know there are some that exist for the F2808 and F2812.

    Thanks.

    F28335 PMSM
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Arefeen
      Posted by Arefeen
      on Nov 16 2009 16:31 PM
      Genius5170 points

      Haven't seen anything on this topic specific to this device .. may be something coming up soon. In the mean time 280xx examples should work unless you are trying floating point option. Please check the memory map and appropriate header files and you should be almost there........

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • bluehash
      Posted by bluehash
      on Nov 16 2009 17:11 PM
      Intellectual810 points

      Thanks. The F28335 has floating point capability. I will have to change the headers.I think the examples should work if I change the MATH_TYPE flag from IQ_MATH to FLOAT_MATH. Could anyone verify this.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Nov 17 2009 10:43 AM
      Mastermind24405 points
      F280xtoF2833xACI3_3dmcmigration.txt

      We have plans to release Delfino Floating Point versions of several DMC Systems next in Q2 next year to run on our new High Voltage ACI/PMSM/BLDC board that is about to be released.

      Also, for Piccolo and Delfino we are updating all of our DMC Libraries / Systems to use the macro optimizations as described here

      http://focus.ti.com/lit/an/spraak2/spraak2.pdf

      to increase performance.

      I've also attached an example of a migration one of our support guys did on the OLD (non-macro) version of the F280x ACI3_3 System to Delfino F2833x.  If you are in a hurry you can use this example to change any of the others.

      change the .txt extension to .zip.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • bluehash
      Posted by bluehash
      on Nov 17 2009 11:09 AM
      Intellectual810 points

      Thanks Chris. The file has been deleted. Itried changing from txt to zip but get the following error.

      "Microsoft Forefront Security for Exchange Server removed a file since it was found to match a filter."


      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Nov 17 2009 12:43 PM
      Mastermind24405 points
      F280xtoF2833xACI3_3dmcmigration.zip

      strange, let's see if a .zip goes through.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Nov 17 2009 12:57 PM
      Mastermind24405 points

      make sure you right click and save as....

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • bluehash
      Posted by bluehash
      on Nov 17 2009 13:05 PM
      Intellectual810 points

      I can download it...but it's corrupted.

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Nov 17 2009 13:14 PM
      Mastermind24405 points

      Argh. Let me get a new version, might be later today.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Nov 17 2009 13:30 PM
      Mastermind24405 points
      ACI33_F2833x_modified.zip

      Third Time's the Charm?

      I talked to the apps guy for this, and the system isn't verified. In fact there are still some references to 100 MHz throughout that would need to be changed (clocking issues).  We didn't want to spend much time on it as we're modifying everything for the new optimizations and new hardware.

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • bluehash
      Posted by bluehash
      on Nov 17 2009 13:56 PM
      Intellectual810 points

      Thanks. It worked this time. Hopefully a diff will help me make out the changes.

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Apr 13 2010 12:02 PM
      Expert1300 points

      Hi,

      Does anybody have a more update version of a motor project for the F28335 (such as sensored/sensorless FOC)? I took a look at the attachment, and "not verified" is kind of an understatement. The project does not have the floating point compiler option turned on, so it's still using the IQ libraries.

      If anyone has any news on this, I would appreciate knowing.

      Thanks,

      Tim

      F28335 FOC motor control
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • bluehash
      Posted by bluehash
      on Apr 13 2010 12:13 PM
      Intellectual810 points

      If you need to use the Floating point hardware in the chip, you will need to use the f32 compiler switch which is --float_support=fpu32"

      Also, the IQ library is a big bunch of macros. You can force the IQ library to use the floating point macros by using #define MATH_TYPE FLOAT_MATH

      Remember that whenever you need to write to hardware registers, you will need to multiply by 32768. You can find more detail in section 3.10 in the IQmath_v15a doc.

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Apr 13 2010 13:04 PM
      Expert1300 points

      Thanks for responding to my post.

      I have already done the points you mentioned. In addition, the fDMC_ml.L28 lib that is included from TI was built without the fpu32 option.

      Do you have a working project with the fpu32 option? I am trying to do the sensorless FOC project, but can't get the pid1_iq.Fdb to follow IqRef. Not quite sure what's wrong, but suspect it could be in the lib files.

      Tim

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • bluehash
      Posted by bluehash
      on Apr 13 2010 13:17 PM
      Intellectual810 points

      Hi Tim,

       There are three modules iq, id and speed which use the PID module. We have used the module here and it works ok. Make sure id is getting followed as it uses the same PID module.

      Did you modify pwm.MfuncC1 to:

      pwm.MfuncC1 = (int16)(32768 * svgen_dq1.Ta); etc

      Also, the clarke currents need to be modified to:

      clarke1.As = ((float)(adc1.Ch5Out)) /32768;   --> Adc channel depends on the one you are using.

      I'm sorry I'm unable to submit any files, but I can guide you on the work I've done.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim11828
      Posted by Tim11828
      on Apr 13 2010 14:23 PM
      Expert1300 points

      Did you subtract the offset in the current by:

      offset / 65536

      Thanks,

      Tim

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    12345»
    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