<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: MCF 52259  Demokit - I2C problem</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF-52259-Demokit-I2C-problem/m-p/208044#M10013</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;&lt;/P&gt;&lt;P&gt;The Kirin3 has two I2C interfaces (0 and 1) and these can also be positioned on various different port pins. (Make sure that you have pull up resistors attached since the pins are open drain when in I2C mode).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks as though you are using I2C1 and configuring them on port QS [PQ0 and PS1] (pins 24 and 25 on the processor - connected to the QSPI bus on the demo board). These are however not connected to the pins that you are measuring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to configure for UC port use [PUC2 and PUC3] (pins 97 and 98 on the processor) - these are connected to the pins that you are measuring (J4-10 and J4-12).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You therefore need I2C1 to use port UC: First alternative functions on PUC 2 and 3:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_self"&gt;www.uTasker.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- OS, TCP/IP stack, USB, device drivers and simulator for M521X, M521XX, M5221X, M5222X, M5223X, M5225X. One package does them all - "&lt;EM&gt;Embedding it better...&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2009 20:23:28 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2009-08-18T20:23:28Z</dc:date>
    <item>
      <title>MCF 52259  Demokit - I2C problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF-52259-Demokit-I2C-problem/m-p/208043#M10012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using MCF 52259 Demokit. I have configured I2C channel 1. I have used J4 connector of DEMOCom &amp;nbsp;PCB.&amp;nbsp;I have attached I2C_init here.I am checking the frequency of SCL&lt;/P&gt;&lt;PRE&gt;
void init_i2c(void){ unsigned char temp; print("&amp;nbsp; initializing I2C channel\n");// MCF_GPIO_DDRQS = 1;//0; /* I2C pins configuration channel 1&amp;nbsp; -&amp;gt; Channel 1 I2c pins are available on connector J4*/ MCF_GPIO_PQSPAR = MCF_GPIO_PQSPAR_PQSPAR1(2)| MCF_GPIO_PQSPAR_PQSPAR0(2);//SDA1(Pin 10) and SCK1(Pin 12)&amp;nbsp; /*I2C Channel Frequency configuration*/ //MCF_I2C_I2FDR = 0x38;&amp;nbsp; //For 125 KHz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_I2C_I2FDR = 0x34;&amp;nbsp; //For 250 KHz /* start the I2C communication */ MCF_I2C_I2CR = 0 | MCF_I2C_I2CR_IEN; /* set Master address */ MCF_I2C_I2AR = MASTER_ADDR; /* if bit busy set, send a stop condition to slave module */ if( MCF_I2C_I2SR &amp;amp; MCF_I2C_I2SR_IBB) {&amp;nbsp;&amp;nbsp; MCF_I2C_I2CR = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear control register */&amp;nbsp; MCF_I2C_I2CR = MCF_I2C_I2CR_IEN |&amp;nbsp; /* enable module */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_I2C_I2CR_MSTA;&amp;nbsp; /* send a START conditionn */&amp;nbsp; temp = MCF_I2C_I2DR;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* dummy read */&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_I2C_I2SR = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear status register */&amp;nbsp; MCF_I2C_I2CR = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear control register */&amp;nbsp; MCF_I2C_I2CR = 0 | MCF_I2C_I2CR_IEN; /* enable the module again */ }&amp;nbsp; return; }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&amp;nbsp;on storage oscilloscope. But not geting any Signal Waveform.Please suggest any corrections.&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 17:14:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF-52259-Demokit-I2C-problem/m-p/208043#M10012</guid>
      <dc:creator>nms</dc:creator>
      <dc:date>2009-08-18T17:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: MCF 52259  Demokit - I2C problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF-52259-Demokit-I2C-problem/m-p/208044#M10013</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;&lt;/P&gt;&lt;P&gt;The Kirin3 has two I2C interfaces (0 and 1) and these can also be positioned on various different port pins. (Make sure that you have pull up resistors attached since the pins are open drain when in I2C mode).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks as though you are using I2C1 and configuring them on port QS [PQ0 and PS1] (pins 24 and 25 on the processor - connected to the QSPI bus on the demo board). These are however not connected to the pins that you are measuring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to configure for UC port use [PUC2 and PUC3] (pins 97 and 98 on the processor) - these are connected to the pins that you are measuring (J4-10 and J4-12).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You therefore need I2C1 to use port UC: First alternative functions on PUC 2 and 3:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_self"&gt;www.uTasker.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- OS, TCP/IP stack, USB, device drivers and simulator for M521X, M521XX, M5221X, M5222X, M5223X, M5225X. One package does them all - "&lt;EM&gt;Embedding it better...&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 20:23:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF-52259-Demokit-I2C-problem/m-p/208044#M10013</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2009-08-18T20:23:28Z</dc:date>
    </item>
  </channel>
</rss>

