• 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 » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » SPI max clock speed on LM3S2948
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • SPI max clock speed on LM3S2948

    SPI max clock speed on LM3S2948

    This question is answered
    Darren Simons
    Posted by Darren Simons
    on Dec 24 2010 05:33 AM
    Prodigy40 points

    Can anybody confirm what the max spi clock speed this device can support is, I was working under the assumption it was set by the external device and the MCU clock, having seen comments like SPIcan opperate at upto 1/2 MCU frequency so for 50MHz clock --> 25MHz on the SPI.

     

    However, i don't seem to be getting near these rates and i also keep coming across comment in TI/Luminary like in the code samples

        // Configure and enable the SSI port for master mode.

        // Operate at 4.17MHz - the fastest rate LM3S8xx devices can support

     

     does this device have a ceiling?

     

    Thanks and Best regards

    Darren

     

    Stellaris SSI SPI
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Andy Neil
      Posted by Andy Neil
      on Dec 24 2010 09:23 AM
      Guru31995 points

      What does the Datasheet say?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • BrandonAzbell
      Posted by BrandonAzbell
      on Dec 24 2010 10:26 AM
      Suggested Answer
      Guru54880 points

      What Andy is referrring to is that there are really 2 answers to the maximum clock rate of the SPI interface on the LM3S2948.  This is dependent on whether the LM3S2948 is the master on the SPI bus, or a slave on the SPI bus.  This is documented in the datasheet in the Synchronous Serial Interface (SSI) Chapter and specifically mentioned in Section 13.2.1 entitled Bit Rate Generation.

      Based on your post, I would infer in your use case the LM3S2948 is a slave on the SPI bus.  Therefore, as indicated the aforementioned section of the datasheet, the maximum SPI clock rate is equal to the System Clock / 12.  In this case, if you are operating the system clock at 50MHz, the maximum SPI clock in slave mode is 50MHz/12, or 4.17MHz.

      For reference, when the LM3S2948 is the SPI master, the maximum SPI clock rate is equal to the System Clock / 2, or 25MHz.

       

      Brandon

      Stellaris SSI SPI
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Darren Simons
      Posted by Darren Simons
      on Jan 04 2011 02:19 AM
      Prodigy40 points

      Hi Brandon,

      Thanks for the feedback. I had read the data sheet ok about the speed being SysClock/2 when the LM3S2948 is the SPI master, the transfer rates we are getting seem slow in comparison to another device we are using, one of the team feedback that that the speed could not be set above 12.5MHz. 

      Hence I started out myself to get some background on this checked the eratta etc. The started coming across the comments

      comment in TI/Luminary like in the code samples

       // Configure and enable the SSI port for master mode
       // Operate at 4.17MHz - the fastest rate LM3S8xx devices can support

       

      So was really just after some confirmation that I had not missed something and the device does support 25MHz operation in master mode, looks like time to get the scope out.

       

      Best regards

      Darren

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jason Work
      Posted by Jason Work
      on Jan 12 2012 17:10 PM
      Expert7605 points

      Before finding this forum thread, I did the equivalent calculation for the LM4F111B2QR.  My procedure for calculating the results was the same.

      TI Stellaris Blizzard LM4F111B2QR Rev A3 SPI max data rate is 13.3 Mbps

      Here is the supporting documentation.

      Master mode
          System clock must be 2 times faster than SSIClk used for SPI
      Slave mode
          System clock must be 6 times faster than SSIClk used for SPI
      So, worst case SSIClk can be as fast as SysClk/6
      Max SysClk = 80 MHz (LM4F111B2QR Rev A3)
      Therefore SSIClk can be as fast as 80 MHz/6 = 13.3 MHz

      Stellaris LM4F111B2QR Microcontroller Data Sheet (Rev. A)  (PDF 5738 KB)  19 Dec 2011
      Page 210 of 1117
      Page 1070 of 1117
      Page 1072 of 1117
      Page 885 of 1117

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jason Work
      Posted by Jason Work
      on Jun 05 2012 02:35 AM
      Expert7605 points

      LM3S1W16
      Electrical Characteristics - Synchronous Serial Interface (SSI)
      "In master mode, the system clock must be at least twice as fast as the SSIClk; in slave mode, the system clock must be at least 12 times faster than the SSIClk."

      Max SysClk = 50 MHz

      Master mode
        SSIClk can be up to 50 Mhz/2 = 25 MHz
      Slave mode
        SSIClk can be up to 50 MHz/12 = 4.17 MHz

      Therefore the maximum SSIClk for use as both master and slave is 4.17 MHz.

       

      LM3S5T36
      Electrical Characteristics - Synchronous Serial Interface (SSI)
      "In master mode, the system clock must be at least twice as fast as the SSIClk; in slave mode, the system clock must be at least 12 times faster than the SSIClk."
      Max SysClk = 80 MHz

      Master mode
        SSIClk can be up to 80 MHz/4 = 20 MHz (25 MHz would be possible for SysClk = 50 MHz)
      Slave mode
        SSIClk can be up to 80 MHz/12 = 6.67 MHz

      Therefore the maximum SSIClk for use as both master and slave is 6.67 MHz.

      Reference: Data sheet - Synchronous Serial Interface (SSI) --> Functional Description --> Bit Rate Generation

      SPI max speed
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • cb1-
      Posted by cb1-
      on Jun 05 2012 06:24 AM
      Mastermind9110 points

      This reporter suspects that this - somewhat unexpected SSIClk speed issue - deserves "promotion" beyond the cheap seats (buried w/in data @ very rear of Manual) to bold-face emphasis very early w/in the SSI Data Chapter. 

      Certainly this spec belongs within the MCU detailed electrical/operational listings - as is now done - but additional "high-lighting" of the unusual saves user-clients time/money/effort.  Getting your users more quickly/efficiently to market translates directly to your bottom line!   (and even "unwelcome data" - such as this - will be "softened" when more openly conveyed...)

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Sue Cozart
      Posted by Sue Cozart
      on Jun 05 2012 08:19 AM
      Guru50195 points

      Hi cb1,

      The information is featured early in the SSI chapter - in section X.3.1 and highlighted as a "Note."

      Regards,

      Sue

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Henry3374
      Posted by Henry3374
      on Jun 07 2012 03:32 AM
      Prodigy90 points

      I definitely remember errata that says Stellaris SPI cannot be above 25mhz.  So 80/2=40mhz but min(40,25)=25.  Furthermore in my testing it appears stellaris cannot run at uneven clock so 80mhz cannot operate 25mhz clock because 80 mhz doesn't divide 25mhz so the fastest you can go is 20mhz with 80mhz clock.  Correct me if I am wrong.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Sue Cozart
      Posted by Sue Cozart
      on Jun 07 2012 10:20 AM
      Verified Answer
      Verified by Sue Cozart
      Guru50195 points

      Hi Henry,

      There is no erratum associated with the maximum SSI speed, but you are correct that there is a limit of 25 MHz which is detailed in the data sheet.  You are also correct that you must divide the system clock by an even integer, so 20 MHz is the fastest you can go with an 80 MHz clock.

      Regards,

      Sue

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jason Work
      Posted by Jason Work
      on Jun 08 2012 16:24 PM
      Expert7605 points

      Thanks Henry and Sue.  I stand corrected.  I've fixed the mistake by editing my previous post.

      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