<?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: Using PCA8574 with I2C in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576088#M22595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sun Apr 03 14:32:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;jharwood thanks for posting lcd.zip.&amp;nbsp; Your timing could not have been better as I was about to modify some other code to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm updating your code to use CMSISv2 but I haven't looked at the code carefully enough to determine what, if anything, will have to be changed.&amp;nbsp; This will be used on LPC11xx, LPC13xx, and LPC17xx.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I do use the dog series displays I still have a few 44780 compatibles as well and I don't have to throw them away yet.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm putting off the update to CMSISv2 until CodeRedSupport and NXP confirm the current CMSISv2 as being the correct release as noted in another thread.&amp;nbsp; The code works great as is with CMSISv1.30.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:33:43 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:33:43Z</dc:date>
    <item>
      <title>Using PCA8574 with I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576084#M22591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by serge on Sun Apr 03 09:25:33 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am an absolute newbie concerning the LPC1343 AND programming in C :rolleyes:. Previously i always used 8052 (and derivatives) which i programmed in assembler:p.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I would love to use a LPC1343 combined with a pca8574 (I2C port expander). The sequence i need to send to the pca8574 to toggle an output for example is 01000000 11110111. The first byte is the address &amp;amp;H40, the second byte is just a data byte &amp;amp;HF7. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The few example programs i found are great to use EEPROM's where you first send the address then the number of bytes to send whereafter the data follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also checked on the documentation (LPC1343 user manual section 12.5 page 192 and 193) where i find the same procedure: address, number of bytes to send (or read) and data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am i missing something in the documentation or do i mis-interpret the examplecode:p.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help me? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also need to figure out a way to connect an old-fashioned 2X40 char LCD (44780 compatible) to the LPC1343. I know it isn't fancy but i hope to get it to work. So if anyone has an idea how to connect it (32bit processors are new to me)...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576084#M22591</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using PCA8574 with I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576085#M22592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Apr 03 09:39:45 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What about I2C sample with PCF8594 in example folder (LPCXpresssoxx/Examples/NXP/LPC1000/LPC13xx/examples.lpc13xx.new.zip) ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;...I also need to figure out a way to connect an old-fashioned 2X40 char LCD (44780 compatible) to... &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Throw it away :) and use a modern 3.3V SPI display ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lcd-module.com/products/dog.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576085#M22592</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using PCA8574 with I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576086#M22593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sun Apr 03 09:57:48 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Throw it away :) and use a modern 3.3V SPI display ...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zero don't you want to encourage others to be green?:D&amp;nbsp; Recyle it and use the modern one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576086#M22593</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using PCA8574 with I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576087#M22594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jharwood on Sun Apr 03 12:19:33 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at [B]&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhttp%3A%2F%2Fknowledgebase.nxp.com%2Fshowthread.php%3Ft%3D538%26page%3D2" rel="nofollow" target="_blank"&gt;this thread&lt;/A&gt;&lt;SPAN&gt;[/B]. Rob65 posted a cleaned up version of the I2C example driver. (you'll need to port it from LPC11xx to LPC13xx though).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the IO expander, you would simply need to place the two bytes in the write (aka master) buffer, set the write length to 2 and call the I2CEngine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your LCD, I have attached a copy of the code I have for a 44780 compatible, 4 x 20 character display operating in 4 bit write only mode. You will need to include the CMSISv1p30_LPC13xx library in your project, and modify the port and pin definitions as well as the display characteristics.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576087#M22594</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using PCA8574 with I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576088#M22595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sun Apr 03 14:32:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;jharwood thanks for posting lcd.zip.&amp;nbsp; Your timing could not have been better as I was about to modify some other code to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm updating your code to use CMSISv2 but I haven't looked at the code carefully enough to determine what, if anything, will have to be changed.&amp;nbsp; This will be used on LPC11xx, LPC13xx, and LPC17xx.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I do use the dog series displays I still have a few 44780 compatibles as well and I don't have to throw them away yet.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm putting off the update to CMSISv2 until CodeRedSupport and NXP confirm the current CMSISv2 as being the correct release as noted in another thread.&amp;nbsp; The code works great as is with CMSISv1.30.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576088#M22595</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using PCA8574 with I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576089#M22596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by serge on Wed Apr 06 10:54:27 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you all for helping me out. As for the display... I was not going to use a 'fancy' display since the display will be used less than once each year. So a good old (and cheap:p) 44780 has to do the trick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Serge&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-PCA8574-with-I2C/m-p/576089#M22596</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:44Z</dc:date>
    </item>
  </channel>
</rss>

