• 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) » OMAP™ Processors » OMAP-L13x, AM1x and C674x Processors Forum » I2C1 on Omap-L138
Share
OMAP™ Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • OMAP-L1x DSP+ARM9™-based Processors Product Folder
  • OMAP3525/30 DSP+ARM Cortex™-A8-based SOCs Product Folder

  • Top OMAPL Wiki Links
  • OMAPL3x Schematic Review Checklist
  • OMAPL13x Boot resources

  • OMAPL Document Resources
  • OMAPL137 Technical reference manual
  • OMAPL138 Technical reference manual
  • OMAPL Boot loader App Notes
  • Forums

    I2C1 on Omap-L138

    This question is not answered
    Boris Ruvinsky
    Posted by Boris Ruvinsky
    on Mar 01 2012 17:05 PM
    Expert1260 points

    Dear E2E:

    I can't get  I2C1 interface working for some reason.

    Can you please answer my questions:

    1.  Will I2C1 work in muster mode (continuously transmit for example) if the data register - ICDXR is not lloaded by CPU or DMA?

    2. I need to have the I2C1_SCL as an output from I2C1.

    3. The I2C1_SCL is required for the period of ~10 second.

    4. What mode would you recommend for I2C1?

    I used the following settings:

    1. ICCNT = 0 for 65536 data count

    2. ICMDR[10]=1 for the "Master"

    3. ICMDR[9] = 1 for Transmit

    4. ICEMDR[1] = 1 for “Ignore NACK"

    5. ICPSC = 0x9 for I2C clock frequency = 80/10=8MHz (SYSCLK4=80MHz) 

    6. I2C is enabled through the PSC1_11. PSC1_11 status register retunes 0x1E03 which means I2C1 is ON.

    7. PINMUX4 = 0x22442244 - UART_TX/RX, I2C1_SDA/SCL, I2C0_SCL/SDA, GP1[6:7].

    The serial port I2C0 works OK.

    But I2C1 does not generate the SCL - looks dead.

    Can you give me an idea what is going wrong?

    Thank you for your help,

    Boris Ruvinsky

    i2c OMAP_L138
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Franklin Cooper
      Posted by Franklin Cooper
      on May 03 2012 14:21 PM
      Prodigy290 points

      Hi Boris,

      Have you followed the steps outlined under section 23.2.10 and 23.2.11 of the OMAPL138 Technical Reference Manual. I am assuming that you have since you were able to get I2C0 to work but it is worth double checking the steps mentioned in the document.

      Page 190 of the OMAPL138 Users Guide shows that the I2C registers are the same except the page address for I2C0 starts at 0x01C22000 and I2C1 starts at 0x01E28000. Therefore, if your able to get I2C0 working try copying the same changes to I2C1. I am not sure how your code looks but it might be as simple as changing the I2C register base address from 0x01C22000 to 0x01E28000.

      So the only thing that differs between the two will be the PinMux and Power Management settings. Your PinMux settings look correct so it is most likely a Power Management problem. On page 182 technical reference manual, there is a little note at the bottom:

      "There are no LPSCs for peripherals in the Async2 clock domain (this includes RTC, Timer64P0/P1, and I2C0); from a power savings stand point, clock-gating these peripherals does not result in significant power savings."

      It looks like I2C0 is always powered on which isn't true with I2C1. What does your code look like to powerup the I2C1 module? By default the I2C1 clock is disabled on powerup.

      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