<?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 How can i program MC9S12E128's LCD and Push Buttons components C language? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-can-i-program-MC9S12E128-s-LCD-and-Push-Buttons-components-C/m-p/205464#M7899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="Apple-style-span"&gt;I'm supposed to program an LCD screen that outputs the a couple of names on it. The name changes each time the push buttons are pushed. This needs to be done with C language. I wrote this code so far but it seems to be wrong..&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#include &amp;lt;hidef.h&amp;gt; /* common defines and macros */#include &amp;lt;mc9s12e128.h&amp;gt; /* derivative information */#include &amp;lt; stdio.h&amp;gt;#pragma LINK_INFO DERIVATIVE "SampleS12"void initPort(void);int main () {PORTB = 0x00;PORTA = 0x00;PORTE = 0X00;DDRA = 0XFF;DDRE = 0xFF;}void main (){char name1[8],name2[8],name3[8],name4[8];int input; EnableInterrupts;for(;;) { PORTE=0x01 ; DDRE = DDRA ;}char *name1 [8] = "Name1"; char *name2 [8] = "Name2" ;char *name3 [8] = "Name3";char *name4 [8] = "Name4" ;switch ( input ) {case 1: /* Note the colon, not a semicolon */PORTA: name1 break;case 2: PORTA : name2 break;case 3:PORTA ; name3 break;default: PORTA : name4break;}getchar();}}}}&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Would really appreciate your help, any idea?&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2008 18:11:55 GMT</pubDate>
    <dc:creator>DrDiablo</dc:creator>
    <dc:date>2008-11-26T18:11:55Z</dc:date>
    <item>
      <title>How can i program MC9S12E128's LCD and Push Buttons components C language?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-can-i-program-MC9S12E128-s-LCD-and-Push-Buttons-components-C/m-p/205464#M7899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="Apple-style-span"&gt;I'm supposed to program an LCD screen that outputs the a couple of names on it. The name changes each time the push buttons are pushed. This needs to be done with C language. I wrote this code so far but it seems to be wrong..&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#include &amp;lt;hidef.h&amp;gt; /* common defines and macros */#include &amp;lt;mc9s12e128.h&amp;gt; /* derivative information */#include &amp;lt; stdio.h&amp;gt;#pragma LINK_INFO DERIVATIVE "SampleS12"void initPort(void);int main () {PORTB = 0x00;PORTA = 0x00;PORTE = 0X00;DDRA = 0XFF;DDRE = 0xFF;}void main (){char name1[8],name2[8],name3[8],name4[8];int input; EnableInterrupts;for(;;) { PORTE=0x01 ; DDRE = DDRA ;}char *name1 [8] = "Name1"; char *name2 [8] = "Name2" ;char *name3 [8] = "Name3";char *name4 [8] = "Name4" ;switch ( input ) {case 1: /* Note the colon, not a semicolon */PORTA: name1 break;case 2: PORTA : name2 break;case 3:PORTA ; name3 break;default: PORTA : name4break;}getchar();}}}}&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Would really appreciate your help, any idea?&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 18:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-can-i-program-MC9S12E128-s-LCD-and-Push-Buttons-components-C/m-p/205464#M7899</guid>
      <dc:creator>DrDiablo</dc:creator>
      <dc:date>2008-11-26T18:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can i program MC9S12E128's LCD and Push Buttons components C language?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-can-i-program-MC9S12E128-s-LCD-and-Push-Buttons-components-C/m-p/205465#M7900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;It looks like you are trying to write in a BASIC style.&amp;nbsp; Try Reading this C Code how to.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/training_information.jsp?code=TP_C_PROGRAMMING&amp;amp;fsrch=1" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/training_information.jsp?code=TP_C_PROGRAMMING&amp;amp;fsrch=1&lt;/A&gt;&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, 27 Nov 2008 05:50:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-can-i-program-MC9S12E128-s-LCD-and-Push-Buttons-components-C/m-p/205465#M7900</guid>
      <dc:creator>Destroy</dc:creator>
      <dc:date>2008-11-27T05:50:39Z</dc:date>
    </item>
  </channel>
</rss>

