• 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 » Applications » Medical & High Reliability » Medical & High Reliability Forum » SM470R1B1M-HT I2C Issue
Share
Medical & High Reliability
  • Forum
Options
  • Subscribe via RSS

SM470R1B1M-HT I2C Issue

SM470R1B1M-HT I2C Issue

This question is not answered
Roy Tan
Posted by Roy Tan
on Nov 11 2011 01:34 AM
Prodigy50 points

Hi,

I have been trying to properly initialize the I2C port but with no success. Below is my initialization code:

******************************************************************************

void I2C2_init(){
  I2C2MDR = 0;  // Put I2C1 in Reset
  I2C2PFNC = 0;  // Set SDA and SDL Pins as I2C Function pins
  I2C2CKH = 34;  // Refer to above for SDL_clk timing
  I2C2CKL = 34;  // Refer to above for SDL_clk timing
  I2C2OAR = 0;  // Set address of MCU (Master)
  I2C2SAR = 0x1;  // Set address of DSP (Slave)
  I2C2PSC = 1;  // Module Clock = 7.5MHz [ICLK / I2C1PSC + 1]
  I2C2MDR = 0x600;//0 | (1<<10) | (1<<9);  // Master, TX, I2C1 in Operation
  I2C2MDR |= 0x20;//(1<<5)
}

********************************************************************************

I inserted a breakpoint at the end of the initialization to check the register values. Here is a screenshot:

 

From what I can tell, the I2C2CKL (addr 0xFFF7D90E) and I2C2MDR (addr 0xFFF7D926) is stuck. I2C2MDR is especially troubling because this indicates that the I2C is stuck at reset.

I've tried re-shuffling the initialization code sequence, tried I2C4, tested the initialization code on 3 different evaluation boards (IAR SM470 Eval board and TI HEAT board) but all to no avail.

What am I doing wrong? Any help would be greatly appreciated!

Best regards,

Roy

SM470 HT HEAT EVM
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Wade VonBergen
    Posted by Wade VonBergen
    on Nov 16 2011 10:31 AM
    Genius12300 points

    Roy,

    I wanted to update you on this.  I am trying to obtain some example code from the commercial team.

    I hope to have it soon and can up date you on config and settings.

    Regards,

    Wade

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Wade VonBergen
    Posted by Wade VonBergen
    on Nov 18 2011 11:11 AM
    Genius12300 points

    Roy, I have emailed you some information on example project for I2C.

    Regards,

    Wade

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jean_michel James
    Posted by Jean_michel James
    on Nov 21 2011 08:44 AM
    Prodigy145 points

    Hi Roy,

    At which frequency do you run the CPU ? it seems that the I2C module is highly restrictive :

    -> Operates with TMS470 core frequency from 6.7 MHz up

     

     

    -> Operates with module frequency between 6.7 MHz to 13.3 MHz

    (extract of SPNU223C)

    regards,

    JM

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Siddharth Shah70213
    Posted by Siddharth Shah70213
    on Dec 06 2011 11:14 AM
    Prodigy150 points

    Hello Wade,

    Could you please share the example project file.

    Thank you,

    Siddharth Shah

    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