• 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 » Concerto ControlCard echo-back example using DSP SCIA
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

    Concerto ControlCard echo-back example using DSP SCIA

    This question is answered
    Igor Kordunsky
    Posted by Igor Kordunsky
    on Apr 09 2012 23:23 PM
    Prodigy170 points

    The ControlSuite has an example of echo-back program using M3 UART, so someone typing on HyperTerminal would see echo. This works just fine, the blue LEDs are flashing with transmissions.

    The ControlSuite also has an example of internal loop-back program using C28 SCIA, which is also working.

    I am trying to create echo-back program using C28 SCIA. The program compiles but I do not see any activity on the serial -to-USB port (no blue LEDs).

    Probably I need to initialize I/O pins correctly

    Does anyone have a working example of echo-back program using C28 SCIA, similar to echo-back program using M3 UART?

    Thanks,

    Concerto C28 SCIA
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Trey German
      Posted by Trey German
      on Apr 10 2012 08:07 AM
      Suggested Answer
      Genius14440 points

      Igor,

      We do not supply an example like this, but it would not  be hard to take one of the existing SCI examples and turn it into an echo back example.  You are absolutely right that you will need to modify the GPIO configuration.  The M3 and C28 UART/SCI are available on the same pins (GPIO28 and 29), so you'll need to first give control of GPIO28 and 29 to the C28 core and then you will need to configure the GPIO Mux registers so that these pins are associated with the SCI signals.  All of this is described in the technical reference manual.

      Trey

      Trey German

      C2000 Applications

      If a post answers your question, please mark it with the "verify answer" button.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Igor Kordunsky
      Posted by Igor Kordunsky
      on Apr 10 2012 15:24 PM
      Prodigy170 points

      Tray,

      Thanks for info, I just hoped someone already has done this configuration and I can re-use port setup. With limited numbers of Concerto pins and multiple pin functions it is not so easy.

      I am actually transferring code written for F28335 into Concerto. This code has control part and user interface via serial port part. At the beginning, I want this code to work  on C28 core only, than change user interface to M3  using the same CPIO28,29 pins, and let C28 core to do control only. That's why I need to setup SCIA port

      I did start with comparison of C28 internal loop-back with echo-back code for 28335 and modifying internal loop-back. I did choose GPIO Mux registers with the help of PinMux utility, GPAMUX2=0x05000000. I assume that because I started from C28 internal loop-back code, M3 core actually already gives control to C28.

      How can I verify or force processor to "give control to C28 core of GPIO28, GPIO29 pins"?

      Thanks,

      Igor

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Trey German
      Posted by Trey German
      on Apr 10 2012 15:26 PM
      Genius14440 points

      Take a look at the setup_m3 project in the control examples folder.  This sets up all the GPIOs to be controlled by the C28.  Try running this example on the M3 before you run your C28 code.  If you have the C28 GPIO mux setup correctly you should be able to see pins toggle from the C28 core.

      Trey

      Trey German

      C2000 Applications

      If a post answers your question, please mark it with the "verify answer" button.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Igor Kordunsky
      Posted by Igor Kordunsky
      on Apr 26 2012 23:23 PM
      Verified Answer
      Verified by Igor Kordunsky
      Prodigy170 points
      scia_echoback.zip

      Tray,

      I finally have this example working.

      I had difficulties with setup of GPAMUX2 - in the manual was not mentioned that this register is EALLOW protected.

      I attach project for reference if someone needs it, which should go into "C:\TI\controlSUITE\device_support\f28m35x\v120\F28M35x_examples_Control\scia_echoback"

      Igor

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Igor Kordunsky
      Posted by Igor Kordunsky
      on Apr 26 2012 23:47 PM
      Prodigy170 points

      Some additional note to this project:

      For some reason (SYSCLKOUT settings is NOT 150MHz, or CLOSPCP description is wrong, or SCIHBAUD, SCILBAUD description is wrong) BAUD is set 1/2x lower than in description, page 1140 in spruh22b "Technical Reference manual".

      NOTE: For M3 core was used standard setup_m3 project. It set c28 clock to 150MHz, and default divider /4 in CLOSPCP is used to get LSPCLK = 37.5MHz.

      This formula: "BRR  = LSPCLK / (SCI Asynchronous Baud * 8) -1" (page 1140 i)

       for 115200 buad rate gives BRR value of 0x27

      When 0x27 value has been tried, SCI actually had 57600 baud rate.

      So, program example has setting SCILBAUD = 0x13

      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