• 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 » Digital Signal Processors (DSP) » C6000 Multicore DSP » Keystone Multicore Forum (C66, 66A, AM5) » About C6678's GPIO interrupt
Share
C6000 Multicore DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • KeyStone Multicore DSP + ARM Product Folder
  • Keystone II MCSDK Download
  • Keystone II MCSDK User's Guide

  • KeyStone Multicore DSP Product Folder
  • Keystone I BIOS-MCSDK Download
  • Keystone I BIOS-MCSDK User's Guide

  • Keystone I & II Training

  • C6000 Multicore DSP Product Folder
  • C6000 Multicore Devices

  • DESKTOP-LINUX-SDK 01_00_00_07 Download
  • MCSDK-VIDEO 02_01_00_08 Download

  • C6472 and C6474 Online Training
  • Check out
    Multicore Mix blog
    • $core_v2_blog.Current.Name

      Wireless base stations – why monitor the backup battery?

      Posted 4 days ago
      by Raj Radjassamy
      2G, 3G and 4G LTE base stations use lead-acid batteries as the...
    • $core_v2_blog.Current.Name

      Innovation through smart integration – achieving lower power, high performing small cells

      Posted 5 days ago
      by Debbie Greenstreet
      Wireless small cell market activity is accelerating lately and...
    • $core_v2_blog.Current.Name

      Four for Friday: What’s up at the Small Cells World Summit?

      Posted 18 days ago
      by Debbie Greenstreet
      If you are a follower of the wireless technology, you have probably...

    About C6678's GPIO interrupt

    About C6678's GPIO interrupt

    This question is not answered
    bin chen
    Posted by bin chen
    on Apr 11 2012 09:02 AM
    Prodigy130 points

    Hello, everyone!

    I  have encountered the following questions when i set the GPIO's interrupt, please help me.

    My steps are as follows:

    (1)INTC module initialization;

    (2) Enable NMIs;

    (3) Enable global interrupts;

    (4) Open the INTC Module for Vector ID:4 and Event ID: 89( because I was set to GPIO_15 as an interrupt input );

    (5)Register an call-back handler which is invoked when the event occurs;

       EventRecord.handler = &intIsr;
        EventRecord.arg = 89;
        if (CSL_intcPlugEventHandler(hTest,&EventRecord) != CSL_SOK)
        {
            printf("Error: GEM-INTC Plug event handler failed\n");
            return;
        }

    (5) Enabling the events;

    (6) set the GPIO_0 ----GPIO_7 to input, and GPIO_15  to input;

    sets specified GPIO_15 to rising edge interrupt, and clears GPIO_15 rising edge interrupt

    (7) enablethe GPIO's interrupt

    (8) in the interrupt service routine I do is read from the GPIO_0 to the GPIO_7 state of the input, uses the method is to read the state of an IN_DATE register. GPIO_0 to GPIO_7 input I is through external periodic continued to enter 0 or1

    Results in the cache to see is that state0 0 255 255 0 0 255 255... ... ....

    The correct resultshould be 0 255 0 255 0 255 0 255 ..........Is there something miss in my steps? please help me ,Thinks!.

    your sincerely

    Bin Chen

    6678 6678l
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Karthik Ramana Sankar
      Posted by Karthik Ramana Sankar
      on Apr 16 2012 15:44 PM
      Intellectual1735 points

      Bin Chen,

      If your able to get into the GPIO ISR successfully, then I do not see any issues with the steps what you mentioned above. Comparing the current output and the expected output, I can see the GPIO_15 line toggling twice (resulting in triggering 2 interrupts), where as the GPIO0-7 lines status do not change (remains '0' or '1'). This is the reason why you get the same value twice in your capture buffer. Hence, to get the expected output, check the frequency of the signal connected to GPIO_15 and make it equal to twice the frequency of the periodic input going into GPIO0-7. Currently, the frequency of GPIO_15 signal might be 4 times of the frequency of GPIO0-7.

      I hope this helps. 

      Thanks,

      Karthik

      -------------------------------------------------------------------------------------------------------------------------------

      If you need more help, please reply back. If this answers the question, please click  Verify Answer , below.

      C6678 GPIO
      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