<?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: SCI port and printf() in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131938#M1218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;No you have to decide if you want to use SCI0 or SCI1 as stdout.&lt;/DIV&gt;&lt;DIV&gt;Only 1 stdout can be used at a given time.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also once the application is running, there is no library function allowing you to&lt;/DIV&gt;&lt;DIV&gt;switch easily to another stdout.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now if you want to have the same output on both SCI port, just change the code to send the same character to both port. SCI0 first and then SCI1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For reading this might be more complicated. I am even not sure it can work.&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2006 20:16:18 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-04-10T20:16:18Z</dc:date>
    <item>
      <title>SCI port and printf()</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131935#M1215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I use codewarrior to program a MC9S12 and I use the software stationnery.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The exemple for communicate with a hyperterminal running correctly.(SerialCommProject_DP256.mcp)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But it's run with the SCI0 port and I want to use the SCI1 port of the microcontroller.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I don't understand what modification must be execute to use printf() function on the SCI1 port.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you help me to solve this problem??&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your answers.&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>Mon, 10 Apr 2006 16:19:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131935#M1215</guid>
      <dc:creator>gautier</dc:creator>
      <dc:date>2006-04-10T16:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: SCI port and printf()</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131936#M1216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Low level PutChar &amp;amp; GetChar functions are implemented in file termio.c, which is located in your {Install}\lib\hc12c\src directory.&lt;/DIV&gt;&lt;DIV&gt;To use SCI1 as stdout, you have to create a new source file (termio_SCI1 for example) where you implement the TERMIO_PutChar, TERMIO_GetChar and TERMIO_Init for SCI1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then just add your own terminal io file (termio_SCI1.c in your project and remove Termio.c.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This should do it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 16:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131936#M1216</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-04-10T16:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: SCI port and printf()</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131937#M1217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;thanks for your answer, I will try to do that, but Do you think the twice SCI port can be active in the same time??&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 17:19:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131937#M1217</guid>
      <dc:creator>gautier</dc:creator>
      <dc:date>2006-04-10T17:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: SCI port and printf()</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131938#M1218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;No you have to decide if you want to use SCI0 or SCI1 as stdout.&lt;/DIV&gt;&lt;DIV&gt;Only 1 stdout can be used at a given time.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also once the application is running, there is no library function allowing you to&lt;/DIV&gt;&lt;DIV&gt;switch easily to another stdout.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now if you want to have the same output on both SCI port, just change the code to send the same character to both port. SCI0 first and then SCI1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For reading this might be more complicated. I am even not sure it can work.&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 20:16:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131938#M1218</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-04-10T20:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: SCI port and printf()</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131939#M1219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Okay it's what I have just discover with an anlyse of termio.C&lt;/P&gt;&lt;P&gt;But I think it's possible to use SCI0 with termio and SCI1 with others functions using sprintf() or to put the text in a buffer and after ussing this buffer to put on SCI1 port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you thinks this is a solution is hardly to realise ???????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 20:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131939#M1219</guid>
      <dc:creator>gautier</dc:creator>
      <dc:date>2006-04-10T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: SCI port and printf()</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131940#M1220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;No this is fine too and should be working.&lt;/DIV&gt;&lt;DIV&gt;Just you cannot use printf for both port.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can use printf for one and then some separate function to write to the other port.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 20:44:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SCI-port-and-printf/m-p/131940#M1220</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-04-10T20:44:03Z</dc:date>
    </item>
  </channel>
</rss>

