<?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: Use 16x2 LCD With I2C over LPC1769</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Use-16x2-LCD-With-I2C-over-LPC1769/m-p/819106#M32792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not used the PCF8574, but I have done it with a 74HCT595 on several different LPC devices (needs 6 pins in total). The 74HCT595 is quite a &amp;nbsp;bit cheaper than a PCF8574! Connect the HCT595 outputs to D0-D7 on the display and write to it using the SPI port (it just needs SCK and MOSI)&lt;/P&gt;&lt;P&gt;Then use four other GPIO lines to do RW, R0 and E connecting RW to the OE pin of the 74HCT595, and E to STCP. Set RW and R0 before writing the data to the HCT595 then pulse E when the SPI write is completed.&lt;/P&gt;&lt;P&gt;This implements an 8-bit output-only port, but you also need to read back the busy pin, but you only need read D7, so connect that to the fourth GPIO line.&lt;/P&gt;&lt;P&gt;Trap for the unwary: LCDs and OLEDs like a 5V supply, and don't like the logic levels from a 3.3V processor. Hence using an HCT595 on a 5V supplies, the HCT (rather than the HC) accepts 3.3V logic levels happily.&amp;nbsp;&lt;/P&gt;&lt;P&gt;R0, RW and E will also need a 3.3V to 5V level shifter (two sections of a 74HCT04 per pin)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2018 20:22:05 GMT</pubDate>
    <dc:creator>ianbenton</dc:creator>
    <dc:date>2018-10-23T20:22:05Z</dc:date>
    <item>
      <title>Use 16x2 LCD With I2C over LPC1769</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Use-16x2-LCD-With-I2C-over-LPC1769/m-p/819105#M32791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need build a project using a 16x2 display interfacing with&amp;nbsp;pcf8574. I´m using a LPC1769&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find a lot of documentation about how do this but only over Arduino.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has someones any idea about how i can do on the LPC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 22:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Use-16x2-LCD-With-I2C-over-LPC1769/m-p/819105#M32791</guid>
      <dc:creator>cnicolaide</dc:creator>
      <dc:date>2018-10-22T22:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use 16x2 LCD With I2C over LPC1769</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Use-16x2-LCD-With-I2C-over-LPC1769/m-p/819106#M32792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not used the PCF8574, but I have done it with a 74HCT595 on several different LPC devices (needs 6 pins in total). The 74HCT595 is quite a &amp;nbsp;bit cheaper than a PCF8574! Connect the HCT595 outputs to D0-D7 on the display and write to it using the SPI port (it just needs SCK and MOSI)&lt;/P&gt;&lt;P&gt;Then use four other GPIO lines to do RW, R0 and E connecting RW to the OE pin of the 74HCT595, and E to STCP. Set RW and R0 before writing the data to the HCT595 then pulse E when the SPI write is completed.&lt;/P&gt;&lt;P&gt;This implements an 8-bit output-only port, but you also need to read back the busy pin, but you only need read D7, so connect that to the fourth GPIO line.&lt;/P&gt;&lt;P&gt;Trap for the unwary: LCDs and OLEDs like a 5V supply, and don't like the logic levels from a 3.3V processor. Hence using an HCT595 on a 5V supplies, the HCT (rather than the HC) accepts 3.3V logic levels happily.&amp;nbsp;&lt;/P&gt;&lt;P&gt;R0, RW and E will also need a 3.3V to 5V level shifter (two sections of a 74HCT04 per pin)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 20:22:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Use-16x2-LCD-With-I2C-over-LPC1769/m-p/819106#M32792</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2018-10-23T20:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use 16x2 LCD With I2C over LPC1769</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Use-16x2-LCD-With-I2C-over-LPC1769/m-p/819107#M32793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christian Nicolaide,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you check the application note &lt;A href="https://www.nxp.com/docs/en/application-note/AN469.pdf"&gt;AN469&lt;/A&gt;, especially section 4.3 "Device Programming". Here you will find an explanation on how to make the write sequence to the PCF8574.&lt;/P&gt;&lt;P&gt;It would be a good idea to use the I2C drivers and the example projects provided in the LPCOpen for the LPC1769 as a starting point for your final application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;Link to download the LPCOpen. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 22:10:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Use-16x2-LCD-With-I2C-over-LPC1769/m-p/819107#M32793</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-10-24T22:10:43Z</dc:date>
    </item>
  </channel>
</rss>

