<?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 Driver code in C for M68EVB08GB60 Board in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144651#M6917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Your remaining problem is not clear to me from the description.&amp;nbsp; Perhaps you could elaborate on what happens when you attempt to display a message, and how you think the problem is related to the timer set up.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2007 17:01:03 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2007-03-01T17:01:03Z</dc:date>
    <item>
      <title>LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144640#M6906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am using M68EVB08GB60 Board and trying to invoke the LCD. I Tried with AN2940 Application note Software, But it is not working. Can someone help me in LCD Driver&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 18:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144640#M6906</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2007-02-06T18:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144641#M6907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If you do a search on "LCD driver" using the search feature at the bottom left of this web page, you can find a number of previous discussions which cover writing an interface for a LCD. Here is one &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=583&amp;amp;query.id=40086#M583" target="_blank"&gt;thread&lt;/A&gt; and &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=386&amp;amp;query.id=40086#M386" target="_blank"&gt;another&lt;/A&gt; which might help get you started. Be sure you read the entire thread. HTH.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 22:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144641#M6907</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2007-02-06T22:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144642#M6908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Tom,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;I am already using the Downloaded software AN2940 Application Note.&lt;/DIV&gt;&lt;DIV&gt;With my Board i am using the 4-bit communication, The problem i am facing when i see from the debugger, All other bits status getting changed except the PTG port 4 pins used for the display 4-bit data send. If can try that code in Full Chip Simulation mode and reply me the problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 12:12:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144642#M6908</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2007-02-07T12:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144643#M6909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Some things to check -&lt;/FONT&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Did you change the first part of the header file LCD.h to reflect the I/O pins used by your demo board?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Within your Port G initialisation code, do you set PTG3 for permanently low output state?&amp;nbsp; This is the R/W signal for the display, that the driver code does not appear to define -&amp;nbsp;the driver&amp;nbsp;would assume this signal to&amp;nbsp; be always low (write only).&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;On the User Enable DIP switch, did you set #4 to&amp;nbsp;ON position, to enable the display?&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 18:52:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144643#M6909</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-02-07T18:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144644#M6910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes I checked these points already.&lt;/DIV&gt;&lt;DIV&gt;And the status of PTGD port is not changing when i check in debugger.&lt;/DIV&gt;&lt;DIV&gt;The status of&amp;nbsp; PTGDD is 1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;DIP Switch potion is ok.&lt;/DIV&gt;&lt;DIV&gt;- ALL User Enable Switches are ON.&lt;/DIV&gt;&lt;DIV&gt;- ALL DIP_SW are ON&lt;/DIV&gt;&lt;DIV&gt;- COM_SW switch 4 is ON.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 20:16:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144644#M6910</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2007-02-07T20:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144645#M6911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi I am still stuck with LCD no response from form. Pls help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 13:59:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144645#M6911</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2007-02-22T13:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144646#M6912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Perhaps you should post the exact code you are using for the LCD interface.&amp;nbsp; This should include the header file LCD.h, and also your initialisation code for port G.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 21:37:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144646#M6912</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-02-23T21:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144647#M6913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am sending you the code.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 16:53:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144647#M6913</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2007-02-26T16:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144648#M6914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;if I read the programm correct, you use PTG Bit0 to Bit3 for the LCD.&lt;BR /&gt;&lt;BR /&gt;#define lcdExists 1 /* If LCD does not exist, do not declare */&lt;BR /&gt;/* this #define */&lt;BR /&gt;#ifdef lcdExists&lt;BR /&gt;#define lcd4bit 1 /* 4 bit interface; comment this line if */&lt;BR /&gt;/* is 8 bit interface */&lt;BR /&gt;#define lcdE PTED_PTED7 /* Enabled pin of LCD */&lt;BR /&gt;#define lcdEDD PTEDD_PTEDD7 /* Data Direction of Enabled Pin */&lt;BR /&gt;#define lcdRS PTED_PTED6 /* RS pin of LCD (Data/Instruction Select)*/&lt;BR /&gt;#define lcdRSDD PTEDD_PTEDD6 /* Data Direction of RS Pin */&lt;BR /&gt;#define lcdPort PTGD /* Port of 4 data bits to lcd connection */&lt;BR /&gt;#define lcdPortDD PTGDD /* Data direction for 4 data pins */&lt;BR /&gt;// #define lcdPortRW PTGD_PTGD3 /* Data direction for 4 data pins&lt;BR /&gt;#ifdef lcd4bit&lt;BR /&gt;#define lcdDataPins 0 /* Number of pin of the port where begin */&lt;BR /&gt;/* the data pins (4 pins). These */&lt;BR /&gt;/* pins must be consecutive. Only */&lt;BR /&gt;/* in case of 4 bit interface */&lt;BR /&gt;#endif&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;Starting at Pin 0.&lt;BR /&gt;&lt;BR /&gt;in your LCD Code are these Statements&lt;BR /&gt;&lt;BR /&gt;/* Configure Pins to output and data sended */&lt;BR /&gt;&lt;BR /&gt;#ifdef lcd4bit&lt;BR /&gt;lcdPortDD |= (0xF0 lcdDataPins); /* LCD port pins as output */&lt;BR /&gt;lcdPortDD= 0xf0;&lt;BR /&gt;lcdPort &amp;amp;= PORTMASK; /* Taking the 4 pins of the port */&lt;BR /&gt;lcdPort |= OUTNUMBER(0x00); /* Nibble sended */&lt;BR /&gt;#else&lt;BR /&gt;lcdPortDD = 0xFF;&lt;BR /&gt;lcdPort = 0x00;&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;ad you are setting the Data Direction as Input with lcdPortDD 0 0xF0 the lower half of the Port is input and the upper half stays unchanged.&lt;BR /&gt;&lt;BR /&gt;Eckhard&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 17:27:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144648#M6914</guid>
      <dc:creator>eckhard</dc:creator>
      <dc:date>2007-02-26T17:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144649#M6915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;As Eckhard has already observed, your 4-bit data connections are for PTG0 through to PTG3.&amp;nbsp; However, the demo board for the GB60 requires that PTG4 through to PTG7 are actually used.&amp;nbsp; This will require the following change -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;#define&amp;nbsp; lcdDataPins&amp;nbsp; 4&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;In addition, I notice that you do not currently define or initialise the RW pin of the display.&amp;nbsp; This is connected to PTG3.&amp;nbsp; At the start of your LCD&amp;nbsp;initialisation code, the following might be added -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;PTGDD_PTGDD3 = 1;&amp;nbsp; // Set pin for output&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;PTGD_PTGD3 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set RW = 0 (write only)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Further, the User enable switch #4 must be on to enable data to reach the display.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I also notice that the PORTMASK definition, plus the problem code described by Eckhard, differs from the code for the original Application Note, and has become confused.&amp;nbsp; The original code should be OK.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;2007-02-27&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;12:48 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 22:15:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144649#M6915</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-02-26T22:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144650#M6916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks bigmac and&amp;nbsp;&lt;FONT size="2"&gt;Eckhard&lt;/FONT&gt; for giving me support. Now i am able to initilize the LCD and all the bit changes are ok.&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;But still i am not able to display the message on LCD. It moves inside the cycle variable and never end. Is their some time calulation of frequacy selection error. Pls check.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pls see the code i did to modify the timer inilization.&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Code:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="2"&gt;/* Disable the Cop and the LVI module power */
 // CONFIG1_COPD =    1;
 // CONFIG1_LVIPWRD =  1;
  //SOPT_COPE=0;
    // SRS_COP=0;
    // SRS_LVD=0;
     SOPT_COPE=0;
     SPMSC1_LVDE=0;
  /* Using the External Crystal Oscilator. Wich frecuency is Fxtal=9.9804MHz */
 // CONFIG2_OSCCLK0=0;
  //CONFIG2_OSCCLK1=1;
    //ICGC1_OSCSTEN=0;
   // ICGC1_REFS=1;
   // ICGC1_CLKS=10;
    ICGC1_RANGE=1;
    ICGC1_CLKS1=1;
    ICGC1_CLKS0=1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="2"&gt;void TimerInit(void){  TPM1SC_TOIE = 1;     /* Enable overflow interrupt*/   TPM1SC_CLKSB = 0;  TPM1SC_CLKSA = 1;                             TPM1SC_PS0 =  0;     /* Select prescale divisor. Preescaler = 1              */  TPM1SC_PS1 =  0;                     TPM1SC_PS2 =  1;                       TPM1MOD = 0x01f3;    /* For an overflow interrupt of aprox 100 us, this need */                     /*        499counts because each count take 1 Tbus, so */                     /*        (499 * 1Tbus) = 100.09us                      */    //TPM1SC_CPWMS = 1;    /* For normal operation                                 */ // TPM1SC_TOF = 1;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by sonu on &lt;SPAN class="date_text"&gt;2007-02-28&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;02:11 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144650#M6916</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2020-10-29T08:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144651#M6917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Your remaining problem is not clear to me from the description.&amp;nbsp; Perhaps you could elaborate on what happens when you attempt to display a message, and how you think the problem is related to the timer set up.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 17:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144651#M6917</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-03-01T17:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144652#M6918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Mac,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;The code send is the modification from standard LCD Driver code available. This code decide the crystal selection, range and delay time.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;After making the said modifications, if i check them in debugger/simulator i found that all the bits are responding in the asked pattern. The LCD cursor also goes off and clear the display.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But when it reach to check the timerLCD function, then it keep on running between cycle variable, Local_LCDStatusInit, and directly jump on main.c&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;current_function_flag = 7;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LCDCursor(0x4A);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} -- end of this function.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and then jump to&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;cycles++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (cycles == 100) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cycles_100++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cycles = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (cycles_100 == 100) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cycles_10000++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cycles_100 = 0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And this jumping never end.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Because of this it never display the Text on disply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 17:39:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144652#M6918</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2007-03-01T17:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144653#M6919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I attempted to run your code in&amp;nbsp;simulation mode, but operation halted immediately after interrupts were enabled, with the errors "Attempt to use invalid or uninitialized memory" and "Interrupt processing failed" messages displayed.&amp;nbsp; This is probably what you were observing.&amp;nbsp; I eventualy realised that, for the GB60 device, the timer overflow vector is interrupt 8.&amp;nbsp; This differs from the HC908AP64, that uses interrupt 7.&amp;nbsp;&lt;/FONT&gt; &lt;FONT size="2"&gt;Once this correction was made, the errors no longer occurred.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I notice that you have made considerable alteration to the program flow of the function LCDInit(), such as commenting out all the &lt;FONT face="Courier New"&gt;break&lt;/FONT&gt; instructions within the &lt;FONT face="Courier New"&gt;switch&lt;/FONT&gt; structure.&amp;nbsp; This would mean that the driver would not operate as originally intended.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Incidently, the original&amp;nbsp;main() code&amp;nbsp;from the Application Note could never have worked as intended - there are two instances where two writes&amp;nbsp;are attempted&amp;nbsp;to&amp;nbsp;"write once" registers (for the&amp;nbsp;AP64 device).&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2007 12:42:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144653#M6919</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-03-04T12:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144654#M6920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;I am sending you now with all the modifications suggested. The intruptt 8 also used, but problem is same that it get halted on same postion where i specified in last mail.&lt;/DIV&gt;&lt;DIV&gt;Can you check the latest code i sent as&amp;nbsp; attachment on your evaluation board, so you can catch the problem.&lt;/DIV&gt;&lt;DIV&gt;I am not getting any message, you specified in your last mail.but the program halted at the specified point given in last message.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 18:09:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144654#M6920</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2007-03-08T18:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144655#M6921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I note that you have commented out the line within main.c that enables interrupts.&amp;nbsp; This would mean that the overflow interrupt would never occur.&amp;nbsp; I can see nothing else in your code that is an obvious problem.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Actually, I do not have an evaluation board - I can only test the code using full chip simulation.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2007 18:10:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144655#M6921</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-03-11T18:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144656#M6922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;Thanks MAC, That code does not work on evaluation Board.&lt;/DIV&gt;&lt;DIV&gt;But i did few major modifiation, now i am able to run the code.&lt;/DIV&gt;&lt;DIV&gt;Thanks to ALL how supported me for LCD coding.&lt;/DIV&gt;&lt;DIV&gt;I hope you will help me in my future activities too.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 16:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144656#M6922</guid>
      <dc:creator>sonu</dc:creator>
      <dc:date>2007-03-19T16:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: LCD Driver code in C for M68EVB08GB60 Board</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144657#M6923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Sonu,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Would you please post the working project ?&lt;/DIV&gt;&lt;DIV&gt;This would benefit to other readers who would like to do the same as you and could encounter problems.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In advance, thank you.&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 19:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LCD-Driver-code-in-C-for-M68EVB08GB60-Board/m-p/144657#M6923</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-03-19T19:22:45Z</dc:date>
    </item>
  </channel>
</rss>

