• 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 » Piccolo F28069 Sys Clock Rate not 80 MHz, odd ePWM rate
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
  • Piccolo F28069 Sys Clock Rate not 80 MHz, odd ePWM rate

    Piccolo F28069 Sys Clock Rate not 80 MHz, odd ePWM rate

    This question is answered
    Braddon Van Slyke
    Posted by Braddon Van Slyke
    on May 03 2012 12:04 PM
    Prodigy70 points

    I've been using my F28069 control stick and using the EPWM1 to drive the ADC sampling rate.  I was assuming the chip was running at 80 MHz, but my sampling rate showed otherwise.  I see that a 6 MHz resonator is being used as the input to the pll (verified with scope).  I see the software comments and defines (in ...examples.h)
    indicate a 10 MHz input was expected - 10 MHz * 16 (PLLCR) / 2 (div) = 80 MHz.  So I'm guessing this explains part of the sampling rate difference.


    I wanted to run the DSC at a rate at least closer to 80 MHz, so I changed the PLLCR value to 12 and the divisor to 1 (defined in the ...examples.h file).  I thought this should give me a rate of 6 MHz * 12 / 1 = 72 MHz.  However, when when I set the TBPRD to 5000 (CMPR to 1/2 of that, set to count up mode I believe), I was expecting a sample rate of 72 MHz / 5000 = 14.4 kHz, but instead I get a sample rate of 12 KHz. 

    So, I don't know if the actual system clock rate is 60 MHz instead of 72 MHz (as I programmed), or if there is a division of the system clock to the EPWM clock that I don't know about. 

    I've checked the forums as best I can, but I don't see anyone saying they think their DSC runs slower than 80 MHz.  Am I missing something?

    By the way, I thought perhaps the info on PLLCR and divisor might be incorrect, so I changed both to give me the 14.4 kHz sample rate I expected, but the chip began to flake out (ITRAP, etc) so it makes me think I'm running the chip beyond 80 MHz.

    Do you have any insight as to why the sample rate is slower than expected?  If necessary, I can send code.

    Thanks,

    Brad

    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 May 03 2012 13:20 PM
      Verified Answer
      Verified by Braddon Van Slyke
      Expert6005 points

      Brad,

      You can scale the PWM time base clock with respect to system clock.  You may want to check your TBCTL[CLKDIV] and TBCTL[HSPCLKDIV] bit values.

      Kris

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Brett Larimore
      Posted by Brett Larimore
      on May 03 2012 13:39 PM
      Verified Answer
      Verified by Braddon Van Slyke
      Mastermind19165 points

      Brad,

      The 6MHz oscillator is used by the FTDI emulator chip. (not the F2806x device)

      The F28069 by default works off an internal 10MHz oscillator.


      Thank you,
      Brett

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Braddon Van Slyke
      Posted by Braddon Van Slyke
      on May 03 2012 13:42 PM
      Prodigy70 points

      After more digging, I think I might not be switching to internal oscillator 1, which does run at 10 MHz...

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Braddon Van Slyke
      Posted by Braddon Van Slyke
      on May 03 2012 13:44 PM
      Prodigy70 points

      Thanks Kris, I'll take a look at that.  I didn't realize one could scale the PWM time base clock.  And thanks for your quick reply, it's a big help! 

      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 May 03 2012 13:44 PM
      Expert6005 points

      Yes, you will be using a 10 MHz clock one way or the other.  To verify you can configure XCLKOUT on the GPIO mux and scope it out on a pin.  You will need to configure it to use a divider so the IO can output the signal accurately.

      Kris

      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