<?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: LCD DEVICE FOR HCS08 QG8 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157129#M9119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;This might sound obvious but a 'standard' (ie 5v) LCD probably won't work directly with the HCS08. You need a 3v device. They are available but not as common.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Oct 2007 23:44:05 GMT</pubDate>
    <dc:creator>IanfromUK</dc:creator>
    <dc:date>2007-10-20T23:44:05Z</dc:date>
    <item>
      <title>LCD DEVICE FOR HCS08 QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157127#M9117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I AM WORKING WITH HCS08 QG8 FAMILY. I AM STUDENT. I WANT TO KNOW WEHTER I NEED LATCH OT BUFFER TO DRIVE LCD. I AM GETTING RIGHT CONTOLWORD&amp;nbsp; ON PORT BUT IT IS NOT DISPLAYED ON LCD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2007 13:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157127#M9117</guid>
      <dc:creator>SAPAN</dc:creator>
      <dc:date>2007-10-20T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: LCD DEVICE FOR HCS08 QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157128#M9118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Sapan,&lt;BR /&gt;&lt;BR /&gt;I am guessing you are trying to use an LCD module and not a raw LCD.&lt;BR /&gt;&lt;BR /&gt;LCD modules can be tricky to get up and running.&amp;nbsp; There is usually a start up sequence to initialize the module consisting of several control words written in sequence.&amp;nbsp; Most LCD modules have a busy flag (BF) which may not be active until after this sequence and this sequence must be timed with delays.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When I start with a new LCD module I figure out this sequence by sending the bytes at 100ms intervals to get it working and test the BF and then tighten up the timing once I have a stable and consistent response from the module.&lt;BR /&gt;&lt;BR /&gt;If you can get the datasheet for the controller IC used in the module it will usually spell out this sequence correctly.&lt;BR /&gt;&lt;BR /&gt;VERY IMPORTANT:&amp;nbsp; Some module require a bias voltage to control the contrast and if this is wrong you will not see anything on the display not matter what you do in software.&amp;nbsp; If it a dot matrix display - you should adjust this bias so you can barely see the dots in the matrix to get started.&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;&lt;BR /&gt;Peter House&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2007 20:03:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157128#M9118</guid>
      <dc:creator>PeterHouse</dc:creator>
      <dc:date>2007-10-20T20:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: LCD DEVICE FOR HCS08 QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157129#M9119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;This might sound obvious but a 'standard' (ie 5v) LCD probably won't work directly with the HCS08. You need a 3v device. They are available but not as common.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2007 23:44:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157129#M9119</guid>
      <dc:creator>IanfromUK</dc:creator>
      <dc:date>2007-10-20T23:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: LCD DEVICE FOR HCS08 QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157130#M9120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;That was obvious and I did not think of it having started with 5v logic in 1975!&amp;nbsp; Think: Dinosaur.&lt;BR /&gt;&lt;BR /&gt;Most (?) of the 3.3v devices are 5v tolerant and this could probably be fixed using 10K pullups to 5v for simple level translation.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2007 00:00:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157130#M9120</guid>
      <dc:creator>PeterHouse</dc:creator>
      <dc:date>2007-10-21T00:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: LCD DEVICE FOR HCS08 QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157131#M9121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;hi sapan&lt;BR /&gt;&lt;BR /&gt;I'm going to attach a schematic, about lcd conecction, with this you can test with the variable resistance if your lcd work.&lt;BR /&gt;also I worked with lcd module in gp 32, and I have a pdf about the configuration lcd, but It is spanish, if you are interested in this I can send you.&lt;BR /&gt;this are routines to send a Instruction and caracter that I used:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void LCDINSTRUCCION (uchar instruccion){&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;PTB = instruccion;&lt;BR /&gt;&amp;nbsp;PTC_PTC0 = 0;&lt;BR /&gt;&amp;nbsp;PTC_PTC2 = 1;&lt;BR /&gt;&amp;nbsp;RETARDO(50);&lt;BR /&gt;&amp;nbsp;PTC_PTC2 = 0;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void LCDCARACTER (uchar caracteres){&lt;BR /&gt;&lt;BR /&gt;PTB = caracteres;&lt;BR /&gt;PTC_PTC0 = 1;&lt;BR /&gt;PTC_PTC2 = 1;&lt;BR /&gt;asm nop&lt;BR /&gt;PTC_PTC2 = 0;&lt;BR /&gt;RETARDO(3000);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and this is to initialize lcd module,&amp;nbsp; if you want 8 o 4 bits and displacement way&lt;BR /&gt;&lt;BR /&gt;void LCDSET (void){&lt;BR /&gt;&lt;BR /&gt;LCDINSTRUCCION(0x01);&lt;BR /&gt;RETARDO(1168);&lt;BR /&gt;LCDINSTRUCCION(0x3F);&lt;BR /&gt;RETARDO(1168);&lt;BR /&gt;LCDINSTRUCCION(0x0C);&lt;BR /&gt;RETARDO(1168);&lt;BR /&gt;LCDINSTRUCCION(0x06);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regars&lt;BR /&gt;fredy&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2007 00:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157131#M9121</guid>
      <dc:creator>fredycolombia</dc:creator>
      <dc:date>2007-10-21T00:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: LCD DEVICE FOR HCS08 QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157132#M9122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi SAPAN,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;First, I presume you want to interface to a LCD character module such as 2 line x 20 char (or 16x2 or 40x2 etc). The vast majority of these are based on the old Hitachi LSI controller HD44780.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Second, as these are setup for a TTL interface then they work perfectly well, within spec, when connected to a 3/3.3v i/o. Just run the MPU on 3/3.3v, the LCD on 5v and connect directly. Connecting the bias pot to 3.3v gives a better range as you never need a high voltage. The easiest way is to simply tie R/W to GND and use time delays where required.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As for how to control it you can refer to the documentation for the controller on your module or there are some good refences on this site:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;An old HC05 manual that shows you how to do it all in assembler:&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/ref_manual/M68HC05AG.pdf?fsrch=1" rel="nofollow" target="_blank"&gt;http://www.freescale.com/files/microcontrollers/doc/ref_manual/M68HC05AG.pdf?fsrch=1&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and some more modern application notes:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;AN1774&lt;/DIV&gt;&lt;DIV&gt;AN2940 and its software AN2940sw.zip&lt;/DIV&gt;&lt;DIV&gt;and others.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Just plug these into the keyword search at the top right.&lt;/DIV&gt;&lt;DIV&gt;Also try LCD in the search box to reveal much more.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Good Luck!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;2007-10-21&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:06 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2007 08:03:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157132#M9122</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-10-21T08:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: LCD DEVICE FOR HCS08 QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157133#M9123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don´t know if there is a point in reopening a very old thread, but here goes.&lt;/P&gt;&lt;P&gt;I was just thrown in a project using a MC9S08QE64. One of the tasks for the unit was to drive a display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched the forum and the rest of the freescale site and a fail compleatly in finding the file AN2940sw.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone supply me with a direct link please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 22:17:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157133#M9123</guid>
      <dc:creator>Limestone</dc:creator>
      <dc:date>2009-10-14T22:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: LCD DEVICE FOR HCS08 QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157134#M9124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search for "AN2940sw.zip" in Freescale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should show the PDF.&amp;nbsp; On the left side, you will see Documentation(1).&amp;nbsp; Click on that.&amp;nbsp; It will show the PDF and a ZIP icon underneath.&amp;nbsp; Click on the ZIP icon and you get the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 02:17:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-DEVICE-FOR-HCS08-QG8/m-p/157134#M9124</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2009-10-15T02:17:47Z</dc:date>
    </item>
  </channel>
</rss>

