<?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: MKE18F512  LPI2C not Work in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/MKE18F512-LPI2C-not-Work/m-p/1069245#M2470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did something wrong. this file is&amp;nbsp;right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PCA9555_INIT(void)&lt;BR /&gt;{&lt;BR /&gt; uint32_t flags = flags = 0U;&lt;BR /&gt; status_t reVal = reVal = kStatus_Fail;&lt;/P&gt;&lt;P&gt;lpi2c_master_config_t masterConfig = {0};&lt;/P&gt;&lt;P&gt;LPI2C_MasterGetDefaultConfig(&amp;amp;masterConfig);&lt;BR /&gt; masterConfig.baudRate_Hz = LPI2C_BAUDRATE;&lt;/P&gt;&lt;P&gt;LPI2C_MasterInit(LPI2C1, &amp;amp;masterConfig, CLOCK_GetIpFreq(kCLOCK_Lpi2c1));&lt;/P&gt;&lt;P&gt;g_master_buff[0] = 0x06;&lt;BR /&gt; g_master_buff[1] = 0x00;&lt;BR /&gt; g_master_buff[2] = 0x00;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; reVal = LPI2C_MasterStart(LPI2C1, PCA9555ADDR, kLPI2C_Write);&lt;/P&gt;&lt;P&gt;reVal = LPI2C_MasterSend(LPI2C1, &amp;amp;g_master_buff[0], 1);&lt;BR /&gt; reVal = LPI2C_MasterSend(LPI2C1, &amp;amp;g_master_buff[1], 1);&lt;BR /&gt; reVal = LPI2C_MasterSend(LPI2C1, &amp;amp;g_master_buff[2], 1);&lt;/P&gt;&lt;P&gt;reVal = LPI2C_MasterStop(LPI2C1);&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2020 09:33:31 GMT</pubDate>
    <dc:creator>shenjian</dc:creator>
    <dc:date>2020-05-13T09:33:31Z</dc:date>
    <item>
      <title>MKE18F512  LPI2C not Work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/MKE18F512-LPI2C-not-Work/m-p/1069244#M2469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use MKE18F512&amp;nbsp; &amp;nbsp;LPI2C &amp;nbsp;to&amp;nbsp;drive the PCA9555 ,is I2C to 16 GPIO, I use&amp;nbsp;SDK_2.6.0_MKE18F512xxx16 &amp;nbsp;&lt;/P&gt;&lt;P&gt;the IDE is MDK Keil 5.14&lt;/P&gt;&lt;P&gt;the demo modify from&amp;nbsp;SDK_2.6.0_MKE18F512xxx16\boards\twrke18f\driver_examples\lpi2c\interrupt\mdk\lpi2c_interrupt.uvprojx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it not work,can anybody help me? thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2020 06:53:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/MKE18F512-LPI2C-not-Work/m-p/1069244#M2469</guid>
      <dc:creator>shenjian</dc:creator>
      <dc:date>2020-05-11T06:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: MKE18F512  LPI2C not Work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/MKE18F512-LPI2C-not-Work/m-p/1069245#M2470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did something wrong. this file is&amp;nbsp;right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PCA9555_INIT(void)&lt;BR /&gt;{&lt;BR /&gt; uint32_t flags = flags = 0U;&lt;BR /&gt; status_t reVal = reVal = kStatus_Fail;&lt;/P&gt;&lt;P&gt;lpi2c_master_config_t masterConfig = {0};&lt;/P&gt;&lt;P&gt;LPI2C_MasterGetDefaultConfig(&amp;amp;masterConfig);&lt;BR /&gt; masterConfig.baudRate_Hz = LPI2C_BAUDRATE;&lt;/P&gt;&lt;P&gt;LPI2C_MasterInit(LPI2C1, &amp;amp;masterConfig, CLOCK_GetIpFreq(kCLOCK_Lpi2c1));&lt;/P&gt;&lt;P&gt;g_master_buff[0] = 0x06;&lt;BR /&gt; g_master_buff[1] = 0x00;&lt;BR /&gt; g_master_buff[2] = 0x00;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; reVal = LPI2C_MasterStart(LPI2C1, PCA9555ADDR, kLPI2C_Write);&lt;/P&gt;&lt;P&gt;reVal = LPI2C_MasterSend(LPI2C1, &amp;amp;g_master_buff[0], 1);&lt;BR /&gt; reVal = LPI2C_MasterSend(LPI2C1, &amp;amp;g_master_buff[1], 1);&lt;BR /&gt; reVal = LPI2C_MasterSend(LPI2C1, &amp;amp;g_master_buff[2], 1);&lt;/P&gt;&lt;P&gt;reVal = LPI2C_MasterStop(LPI2C1);&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 09:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/MKE18F512-LPI2C-not-Work/m-p/1069245#M2470</guid>
      <dc:creator>shenjian</dc:creator>
      <dc:date>2020-05-13T09:33:31Z</dc:date>
    </item>
  </channel>
</rss>

