<?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: How To include the data from the register stored and output as LCD data? - M9S12NE64 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127416#M702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for the idea, I'll try and see. Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2006 18:29:54 GMT</pubDate>
    <dc:creator>Malaysia</dc:creator>
    <dc:date>2006-03-01T18:29:54Z</dc:date>
    <item>
      <title>How To include the data from the register stored and output as LCD data? - M9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127414#M700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;I'm new in using the Freescale M9S12NE64 with the CodeWarrior software. I'm trying out the EVB9S12NE64 board. Currently I'm facing the problem to put the data getting from the SCI0 to display in the LCD. The LCD module that I've done can be work properly by using the SPI interface. I manage to control the LED1 and LED2 by sending the data through the COM port and also read from the COM port. I'm using the Processor Expert as for my testing the board. The problem that I facing is when I intend want to display the data getting from SCI0 to LCD, the compiler getting error, and the error are "&lt;STRONG&gt;Wrong number of arguments&lt;/STRONG&gt;" as I highlight as read colours.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;void main()&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;byte&amp;nbsp; RXByte;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;LCDInit();&amp;nbsp;&lt;BR /&gt;&amp;nbsp;AS1_Init();&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;LCDPuts_Line1(" Hello I'm LEE KAH JOO&amp;nbsp; ");&amp;nbsp;&amp;nbsp;&amp;nbsp; // line 1&lt;BR /&gt;&amp;nbsp;LCDPuts_Line2("I'm a Good R&amp;amp;D ENGINEER ");&amp;nbsp;&amp;nbsp;&amp;nbsp; // line 2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;for(;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;{&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(AS1_RecvChar(&amp;amp;RXByte) == ERR_OK);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(RXByte==0x0F)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LED1_PutVal(TRUE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LED2_PutVal(FALSE);&lt;BR /&gt;&lt;SPAN style="color: #FF3300;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LCDPuts_Line1("The Data is %d.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ",&amp;amp;RXByte);&amp;nbsp;&amp;nbsp;&amp;nbsp; // line 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LCDPuts_Line2("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ");&amp;nbsp;&amp;nbsp;&amp;nbsp; // line 2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LED1_PutVal(FALSE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LED2_PutVal(TRUE);&lt;BR /&gt;&lt;SPAN style="color: #FF0033;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LCDPuts_Line1("The Data is %d.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ",&amp;amp;RXByte);&amp;nbsp;&amp;nbsp;&amp;nbsp; // line 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LCDPuts_Line2("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ");&amp;nbsp;&amp;nbsp;&amp;nbsp; // line 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;while(!SCI0SR1_TDRE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;AS1_SendChar(RXByte);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;for( i=0; i&amp;lt;60000; ++i );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;for( i=0; i&amp;lt;60000; ++i );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;}&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How I going to get it done when I want to display the data in the LCD Screen?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 17:02:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127414#M700</guid>
      <dc:creator>Malaysia</dc:creator>
      <dc:date>2006-02-28T17:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How To include the data from the register stored and output as LCD data? - M9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127415#M701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;It seems that LCDPuts_Line1 only accepts a single argument (char*).&lt;BR /&gt;Try something like this:&lt;BR /&gt;&lt;BR /&gt;char buff[32];&lt;BR /&gt;....&lt;BR /&gt;sprintf (buff, "The data is %d", RXByte);&lt;BR /&gt;LCDPuts_Line1 (buff);&lt;BR /&gt;...&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 17:31:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127415#M701</guid>
      <dc:creator>pittbull</dc:creator>
      <dc:date>2006-03-01T17:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How To include the data from the register stored and output as LCD data? - M9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127416#M702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for the idea, I'll try and see. Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 18:29:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127416#M702</guid>
      <dc:creator>Malaysia</dc:creator>
      <dc:date>2006-03-01T18:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How To include the data from the register stored and output as LCD data? - M9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127417#M703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi pittbull,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Thanks for the suggestion, and it's works. By the way there is somethings that's I'm not quite understand. What's the function of using "sprintf", cause I'm new in C and previously I'm using the Assambly language?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;But there is something unexpected result come's out, which is when the "RXByte" received the data from the COM port and also transmit back to the COM port, the result that I've get was same. However, the result display in the LCD are different.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;When I giving 0x0F, it display in the LCD is "15".&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;When I giving 0x00, it display in the LCD is "0.".&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;When I giving 0x45, it display in the LCD is "69"....&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So can I know why the output display is different? And how to solve it?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;By the way, can you show me where I can get more information on C programming? Thanks.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 18:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127417#M703</guid>
      <dc:creator>Malaysia</dc:creator>
      <dc:date>2006-03-01T18:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: How To include the data from the register stored and output as LCD data? - M9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127418#M704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Malaysia,&lt;BR /&gt;&lt;BR /&gt;The reason why you see a different output is the '%d' in the sprintf call. This means 'decimal output'. If you need hex instead, use '%x'.&lt;BR /&gt;&lt;BR /&gt;There are many online tutorials about C programming, for example this one: &lt;A href="http://www.its.strath.ac.uk/courses/c/" target="test_blank"&gt;http://www.its.strath.ac.uk/courses/c/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For a function reference you may look at this: &lt;A href="http://www.cplusplus.com/ref/" target="test_blank"&gt;http://www.cplusplus.com/ref/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Most development kits also have a function reference...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;pittbull&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 19:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127418#M704</guid>
      <dc:creator>pittbull</dc:creator>
      <dc:date>2006-03-01T19:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How To include the data from the register stored and output as LCD data? - M9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127419#M705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi pittbull,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thanks again for your information. I've try it out and it's works, and by the way&amp;nbsp;I found some material from the software help menu. Besides, also thanks for your website that you've introduce to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;Actually I'm coming from Malaysia and don't know why the website can't show my name, and my name is KahJoo. Hoping that I can learn from you in the future. Thank you so much.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;kahjoo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 09:54:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-To-include-the-data-from-the-register-stored-and-output-as/m-p/127419#M705</guid>
      <dc:creator>Malaysia</dc:creator>
      <dc:date>2006-03-02T09:54:32Z</dc:date>
    </item>
  </channel>
</rss>

