<?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: Using printf for MCS08 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397409#M11510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 08:55:32 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2015-08-04T08:55:32Z</dc:date>
    <item>
      <title>Using printf for MCS08</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397406#M11507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how to use the stdio.h Header file and use the printf function in my code.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Codewarrior 10.6 to program a MC9S08DZ60 controller.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am successful in making my own sendstr function and communicating with the PC.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your Suggestions will help me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pawan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 15:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397406#M11507</guid>
      <dc:creator>pawankumar</dc:creator>
      <dc:date>2015-07-30T15:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf for MCS08</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397407#M11508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Pawan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printf() is not possible since there is NO "standard output" in embedded system in CW for 8bit MCU. User has to implement their own "pseudo" prinf() function, i.e. to format the output in memory and then print out through SCI.&lt;/P&gt;&lt;P&gt;I made the sample code on QG8.&amp;nbsp; In sample code, baud rate=4800. you need open a SCI HyperTerminal on your PC to see the output of the sample code printf. Of cause a SCI cable is needed to connect both PC and QG8 board SCI ports.&lt;/P&gt;&lt;P&gt;it was developed under QG8, but the method is exact same for MC9S08DZ60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For other related information about this issue, HI-WAVE supports a command FPRINTF which can be used in that case. &lt;STRONG&gt;FPRINTF&lt;/STRONG&gt; is the standard ANSI C command: Writes formatted output string to a file. Syntax is pretty similar to ANSI C fprintf.&lt;/P&gt;&lt;P&gt;You can have a command as follows:&lt;/P&gt;&lt;PRE class="jive-pre"&gt;fprintf (test.txt,"%s %2d","The value of the counter is:",counter)&lt;/PRE&gt;&lt;P&gt;can this help you?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 07:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397407#M11508</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-07-31T07:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf for MCS08</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397408#M11509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Zhang Jun,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks a lot!! This is exactly what I needed. I saw your code. I will implement this for me and let you know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Appreciate your swift response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Update: I used the functions and configured for 9600 BAUD. It works for me. Kudos!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Pawan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 08:35:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397408#M11509</guid>
      <dc:creator>pawankumar</dc:creator>
      <dc:date>2015-07-31T08:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf for MCS08</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397409#M11510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 08:55:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-printf-for-MCS08/m-p/397409#M11510</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-08-04T08:55:32Z</dc:date>
    </item>
  </channel>
</rss>

