<?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: Serial input and portB output in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153152#M3776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;SPAN style="line-height: normal;"&gt;Hello&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="line-height: normal;"&gt;The first thing to&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;consider is&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;to know what&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;you're working&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;bus speed&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;With this information&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;you must set&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;the baud&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;rate&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;(for the&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;serial port is&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;9600)&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;SCI&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;baud&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;rate =&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;BUSCLK&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;/ (16&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;×&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;BR&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;) where&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;BR&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;is a registrer&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;of the microcontroller.&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;When you are&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;sure you have the&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;correct&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;baud rate&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;, you can&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;start using the&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;buffers&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;the module&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;has&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;to send and&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;receive data (&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;the case&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;of&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;JM60&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;SCIxD&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;SPAN style="line-height: normal;"&gt;regards!!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 06:06:38 GMT</pubDate>
    <dc:creator>JorgeOchoa</dc:creator>
    <dc:date>2011-07-28T06:06:38Z</dc:date>
    <item>
      <title>Serial input and portB output</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153150#M3774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having problems trying to initialize the input serial port to read information and then output 3.3V to one of&amp;nbsp; the port B on the MCS12 microcontroller.. Does someone have a sample of how i might be able to do this.. My GUI is sending the information via serial port to the controller using the arrow directional pad.. It then sends that signal to the HCS12 which uses 4 ports output... If anybody has a posting let me know.. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2011 01:44:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153150#M3774</guid>
      <dc:creator>Looney</dc:creator>
      <dc:date>2011-07-23T01:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Serial input and portB output</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153151#M3775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If anybody can help&amp;nbsp; me here it would be great.. I can attach a file that has some information to review for the following..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2011 05:25:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153151#M3775</guid>
      <dc:creator>Looney</dc:creator>
      <dc:date>2011-07-23T05:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Serial input and portB output</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153152#M3776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;SPAN style="line-height: normal;"&gt;Hello&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="line-height: normal;"&gt;The first thing to&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;consider is&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;to know what&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;you're working&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;bus speed&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;With this information&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;you must set&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;the baud&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;rate&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;(for the&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;serial port is&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;9600)&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;SCI&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;baud&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;rate =&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;BUSCLK&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;/ (16&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;×&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;BR&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;) where&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;BR&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;is a registrer&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;of the microcontroller.&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;When you are&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;sure you have the&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;correct&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;baud rate&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;, you can&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;start using the&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;buffers&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;that&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;the module&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;has&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;to send and&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;receive data (&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;the case&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;of&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;JM60&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;SCIxD&lt;/SPAN&gt;&lt;SPAN style="line-height: normal;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;SPAN style="line-height: normal;"&gt;regards!!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153152#M3776</guid>
      <dc:creator>JorgeOchoa</dc:creator>
      <dc:date>2011-07-28T06:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Serial input and portB output</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153153#M3777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whit this function you can get data(Remember this code if fot the JM60, read about your microcontroller)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;byte SCI_GetChar(void){&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(SCI2S1_RDRF == 0);&amp;nbsp;&lt;/P&gt;&lt;P&gt;return SCI2D;&lt;/P&gt;&lt;P&gt;}﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send Data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void SCI_PutChar(byte Data) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(SCI2S1_TDRE == 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; SCI2D = Data;&lt;/P&gt;&lt;P&gt;}﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:09:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Serial-input-and-portB-output/m-p/153153#M3777</guid>
      <dc:creator>JorgeOchoa</dc:creator>
      <dc:date>2011-07-28T06:09:47Z</dc:date>
    </item>
  </channel>
</rss>

