<?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>LPC MicrocontrollersのトピックRe: LPC54018 I2C timeout register issue</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1511674#M49954</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; First of all, I have initialized the I2C bus. Then send data through i2c interrupt concept. Hereby I have attached the code for your reference.&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;AHBCLKCTRLSET[1] = 1 &amp;lt;&amp;lt; 12;&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;PRESETCTRLSET[1] = 1 &amp;lt;&amp;lt; 12;&lt;/P&gt;&lt;P&gt;SYSCON&lt;/P&gt;&lt;P&gt;-&amp;gt;PRESETCTRLCLR[1] = 1 &amp;lt;&amp;lt; 12;&lt;/P&gt;&lt;P&gt;FLEXCOMM1-&amp;gt;PSELID = 0x101073;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;CFG = 0x01;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;CLKDIV = 0x07;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;TIMEOUT = 5000;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;MSTTIME = 0x56;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;INTENCLR = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 25);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; And the following i have used it while transmitting data through I2C interrupt.&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;INTENCLR = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 25);&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;STAT = (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 25);&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;INTENSET = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 25);&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;MSTDAT = I2C_Slave_addr | write_bit;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;MSTCTL = 0x02;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 10:15:10 GMT</pubDate>
    <dc:creator>Renuga_AKAS</dc:creator>
    <dc:date>2022-08-25T10:15:10Z</dc:date>
    <item>
      <title>LPC54018 I2C timeout register issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1508595#M49890</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have tried to timeout the i2c communication but failed to achieve through i2c interrupt method. First i enabled the SCLTIMEOUT and EVENTTIMEOUT bit in INTENSET register and configured the TIMEOUT register as 500, then i disconnected the clock PIN from the evk board. The EEPROM IC didn't acknowledge the slave address and it was held in a loop for long time. Can you suggest me how to achieve the timeout in i2c interrupt communication?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Aug 2022 06:47:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1508595#M49890</guid>
      <dc:creator>Renuga_AKAS</dc:creator>
      <dc:date>2022-08-19T06:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 I2C timeout register issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1510108#M49934</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Because there is pull-up resistor on both the SCL and SDA pin, if you disable SCL, the SCL pin will be high, and SDA is also high, this is idle mode, timeout mechanism does not take effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;For a test, during the I2C transferring process, you can connect the SCL to GND manually, then the timeout will take effect.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 09:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1510108#M49934</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-08-23T09:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 I2C timeout register issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1510127#M49935</link>
      <description>&lt;DIV&gt;Hi,&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Thanks for the reply. Actually I already tried this&amp;nbsp;option too by connecting the SCL PIN directly to GND still it doesn't work. And I have one more doubt if I set I2C-&amp;gt;TIMEOUT = 5000, then set baudrate in standard mode (100kHz). While debugging I2C-&amp;gt;TIMEOUT shown as 5007. Is any&amp;nbsp; other way to attain I2C timeout?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Aug 2022 10:23:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1510127#M49935</guid>
      <dc:creator>Renuga_AKAS</dc:creator>
      <dc:date>2022-08-23T10:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 I2C timeout register issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1511470#M49952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls try to post your code so that we can have a review.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 06:49:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1511470#M49952</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-08-25T06:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 I2C timeout register issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1511674#M49954</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; First of all, I have initialized the I2C bus. Then send data through i2c interrupt concept. Hereby I have attached the code for your reference.&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;AHBCLKCTRLSET[1] = 1 &amp;lt;&amp;lt; 12;&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;PRESETCTRLSET[1] = 1 &amp;lt;&amp;lt; 12;&lt;/P&gt;&lt;P&gt;SYSCON&lt;/P&gt;&lt;P&gt;-&amp;gt;PRESETCTRLCLR[1] = 1 &amp;lt;&amp;lt; 12;&lt;/P&gt;&lt;P&gt;FLEXCOMM1-&amp;gt;PSELID = 0x101073;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;CFG = 0x01;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;CLKDIV = 0x07;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;TIMEOUT = 5000;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;MSTTIME = 0x56;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;INTENCLR = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 25);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; And the following i have used it while transmitting data through I2C interrupt.&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;INTENCLR = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 25);&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;STAT = (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 25);&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;INTENSET = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 25);&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;MSTDAT = I2C_Slave_addr | write_bit;&lt;/P&gt;&lt;P&gt;I2C1-&amp;gt;MSTCTL = 0x02;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 10:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1511674#M49954</guid>
      <dc:creator>Renuga_AKAS</dc:creator>
      <dc:date>2022-08-25T10:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 I2C timeout register issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1521822#M50141</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have not seen the NVIC module configuration, pls try to use the instructions.&lt;/P&gt;
&lt;P&gt;__NVIC_EnableIRQ(FLEXCOMM0_IRQ1);&lt;/P&gt;
&lt;P&gt;__NVIC_SetPriority(FLEXCOMM0_IRQ1,0x00);&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 08:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-I2C-timeout-register-issue/m-p/1521822#M50141</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-09-14T08:43:36Z</dc:date>
    </item>
  </channel>
</rss>

