• 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 GPIO Problem
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 GPIO Problem

    This question is answered
    Joel Clasquin
    Posted by Joel Clasquin
    on Apr 25 2012 11:18 AM
    Intellectual400 points
    screen.png

    Hi,

    I'm trying to use GPIO128 through GPIO135 (names later changed to GPIO192 through GPIO199?), but I keep having problems with bit 1 of that port.  I can't clear that bit out of GPEDAT once it is set. See image below.  I just ran the line that set GPEDAT to 0x2 and that worked, and then I ran the line that should have made it 0x4, but instead, it is 0x6.  

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Santosh Athuru
      Posted by Santosh Athuru
      on Apr 27 2012 11:28 AM
      Verified Answer
      Verified by Joel Clasquin
      Expert7400 points

      Joel,

      interesting, are you 100% sure that if you use GpioG1DataRegs.GPBSET.bit.GPIO35 = 1, you don't see any error? are you scoping hte signal out to really make sure it is HIGH?

      Best Regards

      Santosh

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Santosh Athuru
      Posted by Santosh Athuru
      on Apr 27 2012 15:49 PM
      Expert7400 points

      Joel,

      GPIO35 is one of the boot mode IOs, so please check your schematic and board if there is a contention. I tried to repeat the same experiments on my board, I don't see any issue with GPIO35- I'm able to toggle it properly and GPEDAT is not dependent on GPIO35.

      Best Regards

      Santosh

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joel Clasquin
      Posted by Joel Clasquin
      on Apr 27 2012 15:53 PM
      Intellectual400 points

      Santosh, 

      Your question actually lead me to the answer.  I had been watching signals on a scope, but not after I found that the problem involved writing to GPBDAT to change GPIO35. Now I have uncovered a hardware problem on my board. 

      Here's a final summary:

      First, I noticed that bit 1 in GPEDAT was stuck on.  I couldn't do anything to clear it.  Including writing to group 2 GPEDAT in code, manually changing GPEDAT in a watch window, and setting bits in GPECLEAR.

      Then, I noticed that the bit did NOT get stuck if I didn't write to group 1 GPBDAT to change the state of GPIO35.

      Then, I started using GPBSET instead of writing to GPBDAT directly, and that kept bit 1 in GPEDAT from getting stuck high.

      Today I went back and looked at GPIO129 (now called  GPIO193) on the scope, and I noticed that it was 3.3V when turned on, but only about 1.7 when off.  I had a hardware problem causing this.  This pin corresponds to GPEDAT bit 1.  Apparently, group 2 GPEDAT was picking up on the state of the actual pin, which really was stuck high.  But this only happened after writing to group 1 GPBDAT.  Very strange.   

      Now with the hardware problem resolved, I can go back and write to the GPBDAT register directly instead of using GPBSET, and everything works.  GPEDAT is fine.

      Thanks for all your help.  I really appreciate it.

      Joel  

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Santosh Athuru
      Posted by Santosh Athuru
      on Apr 27 2012 16:14 PM
      Expert7400 points

      Joel

      Glad to hear that you found the root cause. Good luck and feel free to post your findings, feedback and questions.

       

      Best Regards

      Santosh

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Joel Clasquin
      Posted by Joel Clasquin
      on Apr 30 2012 09:34 AM
      Intellectual400 points

      Santosh,

      I only have GPIO35 tied to the inputs of a few logic chips.  There shouldn't be any contention.

      However, my hardware problem was causing contention on GPIO129.  Two pins on a 74HC273 logic chip were reversed, so GPIO129 was being driven high when it was supposed to be an output.

      So that was the root cause of the problem.  But the behavior of GPEDAT was very strange.  Bit 1 got stuck high only after writing to GPBDAT, and it would only get "unstuck" if I powered off the board.  

      In order to actually recreate this situation you'd have to externally drive GPIO129 high while it is configured as an output.  

      Thanks,

      Joel 

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