• 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 » Performance deterioration on migration from 2812 to Delfino
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?
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • Forums

    Performance deterioration on migration from 2812 to Delfino

    This question is answered
    Tim Richardson
    Posted by Tim Richardson
    on Aug 13 2012 10:13 AM
    Prodigy30 points

    We use the 2812 DSP for motor control. We recently migrated to Delfino and have hit a problem with SPI timings.

    The Delfino is about 1.7 times slower per byte. The added time occurs between the 8th clock cycle of a transmission and the 1st clock cycle of the next transmission. This part of the whole cycle takes 4 times as long on the Delfino

    On 2812, the timings on the scope are:

        280 ns  time between chip-select going low and first clock cycle

        749 ns  time for 8 clock cycles

        380 ns  time between the 8th clock cycle of a transmission and the 1st clock cycle of the next transmission

        160 ns  time before chip-select goes high

    On Delfino, the timings on the scope are:

        640 ns  time between chip-select going low and first clock cycle

        760 ns  time for 8 clock cycles

        1220 ns  time between the 8th clock cycle of a transmission and the 1st clock cycle of the next transmission

        760 ns  time before chip-select goes high

     

     

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Kris Parrent
      Posted by Kris Parrent
      on Aug 13 2012 11:15 AM
      Expert5985 points

      Tim,

      Can you send a waveform?  Is this the exact code you used on the 2812?  If you're sending data consecutively I wouldn't expect STE to return high.

      Kris

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tim Richardson
      Posted by Tim Richardson
      on Aug 13 2012 13:15 PM
      Prodigy30 points

      Hi Kris,

      I had actually included the wave form in the post but it got lost somehow.

      Here it is.

      Yes, the code is exactly the same as on 2812.

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Kris Parrent
      Posted by Kris Parrent
      on Aug 13 2012 13:19 PM
      Expert5985 points

      Thanks Tim,

      Can you tell me about the clocking for each system?  This includes Sysclk, LSPCLK, and SPICLK.

      Kris

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Rashad Kabbara
      Posted by Rashad Kabbara
      on Sep 12 2012 08:42 AM
      Prodigy40 points

      Hi Kris,

      I am Tim's colleague, a hardware engineer working on the same project. The answers to your questions are:

      Signal 2812 Delfino
      SYSCLKOUT

      PLLCR = 6;

      (50*PLLCR)/2 = 150MHz 

      PLLCR = 6;

      (50*PLLCR)/2 = 150MHz 

      LSPCLK LOSPCP = 0x0000;

      LSPCLK = SYSCLKOUT/1

      LSPCLK = 150MHz** (see note below)

      LOSPCP = 0x0000;

      LSPCLK = SYSCLKOUT/1

      LSPCLK = 150MHz** (see note below)

      SPICLK

      9.375 MHz (SYSCLKOUT/(SPIBRR+1)

      (150MHz / (15 + 1))

      9.375 MHz (SYSCLKOUT/(SPIBRR+1)

      (150MHz / (15 + 1))

      **Oh. I just nocticed that we are running LSPCLK at 150MHz in both cases which exceeds the maximum limit of 75Mhz as stated in the data manual. How did we get away with this?

      SPI clock 2812 Delfino
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Kris Parrent
      Posted by Kris Parrent
      on Sep 12 2012 13:29 PM
      Expert5985 points

      LSPCLK operation at 150 MHz is not guaranteed which is why we say don't use it.  This may be fine on some devices, but on the corners of the process you may run into a device where it causes problems.  There is no way to know what will be in the shipment, just that it passed the appropriate tests during manufacturing.  I don't think this is the source of the variation.

      Do me a favor, for each device, toggle an IO when you load the SPITXBUF register, scope that out along with the data, and let's see how that waveform looks.  Is this using the FIFO or no?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Rashad Kabbara
      Posted by Rashad Kabbara
      on Sep 27 2012 09:27 AM
      Verified Answer
      Verified by Lori Heustess
      Prodigy40 points

      Thanks for your support so far Kris,

      While we were trying to do the test you asked for, we realised that we have mistakenly placed one of our SPI-related functions in Flash (in 28335 code), whereas all other 28335 and 2812  SPI functions ran in RAM. Once we moved that function into RAM where it belongs, we got much more sensible timing figures.

      It all makes sense... :)

      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