<?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: Shared Project: LPC832 16x2 LCD driver</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Shared-Project-LPC832-16x2-LCD-driver/m-p/1998373#M57296</link>
    <description>&lt;P&gt;Hello, thanks for your contribution on the community.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 02:15:38 GMT</pubDate>
    <dc:creator>Pavel_Hernandez</dc:creator>
    <dc:date>2024-11-21T02:15:38Z</dc:date>
    <item>
      <title>Shared Project: LPC832 16x2 LCD driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Shared-Project-LPC832-16x2-LCD-driver/m-p/1997614#M57291</link>
      <description>&lt;P&gt;This isn't a request for help; I'm sharing work with the community in the hopes that it helps someone else in a similar scenario. &amp;nbsp;Free to use as you wish, and I take no responsibility for any issues you have with it.&lt;/P&gt;&lt;P&gt;I'm doing work with a µcontroller that doesn't have tons of pins to spare for an LCD, so I decided to use an LPC832 as a 16x2 LCD driver over SPI, to reduce the number of pins needed on my main controller. &amp;nbsp;I came up with this, and it seems to work pretty well, so I thought I'd share. &amp;nbsp;I tested it with Bus Master 5's SPI mode, and it responded appropriately, but you'll have to test it with your environment.&lt;/P&gt;&lt;P&gt;Untar the "tgz" file, import it into MCUXpresso as a new project, connect your pins as shown in the illustration, and it should work. &amp;nbsp;It uses "command" bytes to indicate what action you want to take:&lt;/P&gt;&lt;PRE&gt;0 = clear; sub-command 0 - entire screen; 1 - the current line&lt;BR /&gt;1 = goto; row col&lt;BR /&gt;2 = print; sub-command 0 - single character; 1 - string&lt;BR /&gt;3 = LCD display command; command bytes relevant to your LCD display&lt;BR /&gt;anything else is ignored&lt;/PRE&gt;&lt;P&gt;Commands and operands are separated by spaces, so "0 0" clears the entire screen. &amp;nbsp;"2 1 ascii bytes" prints a string at the current LCD position. &amp;nbsp;"1 1 0" goto row 1 (second row; counting from offset 0), position 0.&lt;/P&gt;&lt;P&gt;This is configured for 16x2, but it wouldn't be hard to adjust for bigger screens.&lt;/P&gt;&lt;P&gt;Thanks to &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;for his HD44780 library, on which this is partially based.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/HD44780/McuHD44780.c" target="_blank"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/HD44780/McuHD44780.c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 02:51:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Shared-Project-LPC832-16x2-LCD-driver/m-p/1997614#M57291</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2024-11-20T02:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Project: LPC832 16x2 LCD driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Shared-Project-LPC832-16x2-LCD-driver/m-p/1998373#M57296</link>
      <description>&lt;P&gt;Hello, thanks for your contribution on the community.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 02:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Shared-Project-LPC832-16x2-LCD-driver/m-p/1998373#M57296</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-11-21T02:15:38Z</dc:date>
    </item>
  </channel>
</rss>

