<?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中的主题 lpc1114 i2c minimum setup, baremetal, difficulties</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1114-i2c-minimum-setup-baremetal-difficulties/m-p/530846#M10090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nxpuser100 on Tue Dec 22 20:27:44 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having difficulty getting initial interrupt raised using the i2c peripheral master transmit/start bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not using any toolchain (no cmsis, no other libraries, all baremetal).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm making the assumption that most of the lpc1114 default reset is adequate for my needs, the micro is running using IRC (no external crystal).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My i2c initialization is as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON_PIO0_4 |= 0x1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON_PIO0_5 |= 0x1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;5); /* I2C_ENABLE */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PRESETCTRL |= (1&amp;lt;&amp;lt;1); /* I2C_RST */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0CONCLR = (1&amp;lt;&amp;lt;2) | (1&amp;lt;&amp;lt;3) |(1&amp;lt;&amp;lt;5) | (1&amp;lt;&amp;lt;6);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0SCLL = 0x3c; /* I2C_PCLK 12MHz (i.e. internal IRC), Standard Mode */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0SCLH = 0x3c; /* I2C_PCLK 12MHz (i.e. internal IRC), Standard Mode */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_ISER |= (1&amp;lt;&amp;lt;15); /* enable NVIC Interrupt 15 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0CONSET = (1&amp;lt;&amp;lt;6); /* I2C0CON_I2EN */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I issue start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0CONSET = (1&amp;lt;&amp;lt;5); /* I2C0CON_STA */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I never receive the expected interrupt after issuing start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As mentioned I'm not using CMSIS, I am using the default IRC and I have not configured use of the PLL.&amp;nbsp; I'm doing this as a learning exercise but it appears I have more setup to do (or I've made some other error).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:30:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:30:07Z</dc:date>
    <item>
      <title>lpc1114 i2c minimum setup, baremetal, difficulties</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1114-i2c-minimum-setup-baremetal-difficulties/m-p/530846#M10090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nxpuser100 on Tue Dec 22 20:27:44 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having difficulty getting initial interrupt raised using the i2c peripheral master transmit/start bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not using any toolchain (no cmsis, no other libraries, all baremetal).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm making the assumption that most of the lpc1114 default reset is adequate for my needs, the micro is running using IRC (no external crystal).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My i2c initialization is as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON_PIO0_4 |= 0x1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON_PIO0_5 |= 0x1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;5); /* I2C_ENABLE */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PRESETCTRL |= (1&amp;lt;&amp;lt;1); /* I2C_RST */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0CONCLR = (1&amp;lt;&amp;lt;2) | (1&amp;lt;&amp;lt;3) |(1&amp;lt;&amp;lt;5) | (1&amp;lt;&amp;lt;6);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0SCLL = 0x3c; /* I2C_PCLK 12MHz (i.e. internal IRC), Standard Mode */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0SCLH = 0x3c; /* I2C_PCLK 12MHz (i.e. internal IRC), Standard Mode */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_ISER |= (1&amp;lt;&amp;lt;15); /* enable NVIC Interrupt 15 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0CONSET = (1&amp;lt;&amp;lt;6); /* I2C0CON_I2EN */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I issue start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C0CONSET = (1&amp;lt;&amp;lt;5); /* I2C0CON_STA */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I never receive the expected interrupt after issuing start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As mentioned I'm not using CMSIS, I am using the default IRC and I have not configured use of the PLL.&amp;nbsp; I'm doing this as a learning exercise but it appears I have more setup to do (or I've made some other error).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:30:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1114-i2c-minimum-setup-baremetal-difficulties/m-p/530846#M10090</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:30:07Z</dc:date>
    </item>
  </channel>
</rss>

