<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: I2C Configuration in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/I2C-Configuration/m-p/247814#M877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Try using the attached code as an example. This was used with a demo with the TWR-LCD-RGB to talk to the CRTouch chip via I2C. Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Apr 2013 18:44:00 GMT</pubDate>
    <dc:creator>anthony_huereca</dc:creator>
    <dc:date>2013-04-04T18:44:00Z</dc:date>
    <item>
      <title>I2C Configuration</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2C-Configuration/m-p/247813#M876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;We are having issues getting I2C to transfer any data on SDA line.&amp;nbsp; We do following configuration for its most basic function to transfer a byte:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;STRONG style="color: #1f497d;"&gt;Enable I2C module:&lt;/STRONG&gt;&lt;SPAN style="color: #1f497d;"&gt; Clear I2Cx_IBCR_MDIS bit&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #1f497d;"&gt;Generate START condition: &lt;/SPAN&gt; &lt;/STRONG&gt;&lt;SPAN style="color: #1f497d;"&gt;Set (I2Cx_IBCR_MSSL | I2Cx_IBCR_TXRX)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.e&amp;nbsp;&amp;nbsp; I2Cx_IBCR has value 0x30&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;After this point voltage on both SCL and SDA lines is pulled low when START condition is generated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #1f497d;"&gt;Load Data Register: &lt;/SPAN&gt; &lt;/STRONG&gt;&lt;SPAN style="color: #1f497d;"&gt;I2Cx_IBDR = 0x30 (for TX to a slave at 0x18 address )&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;But no activity happens at this point, voltage on both lines remains pulled low and I can’t do anything further. I am connected to Aardvark slave and Beagle analyzer shows 0 bytes. No data shows up on line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;What could be possibly wrong with this fairly simple setup to try transfer a byte? I am doing following IOMUX settings:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;IOMUXC_PTB14 = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;0x002011A3&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;IOMUXC_PTB15 = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;0x002011A3&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;Clock enable: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;CCM_CCGR4_CG6 = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;Kindly let us know correct GPIO/ baud rate setting (to configure I2C for 100 or 400KHz data from 66MHz IPS clock) if they have got anything to do with this issue or anything else that might help resolve this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;Rizwan&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Mar 2013 11:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2C-Configuration/m-p/247813#M876</guid>
      <dc:creator>riz1231</dc:creator>
      <dc:date>2013-03-31T11:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Configuration</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2C-Configuration/m-p/247814#M877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Try using the attached code as an example. This was used with a demo with the TWR-LCD-RGB to talk to the CRTouch chip via I2C. Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 18:44:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2C-Configuration/m-p/247814#M877</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2013-04-04T18:44:00Z</dc:date>
    </item>
  </channel>
</rss>

