<?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>8-bit MicrocontrollersのトピックHow can i control my hcs08 mc through serial port?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126623#M1156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I am a student,&amp;nbsp; newer to the hcs08 mc,&amp;nbsp; can anyone please let me know how can i controll the hcs08 mc through serial port?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i mean i actuall ywant to send som commands to the mc to controll the switches etc.Pleas&amp;nbsp;give me any reference materials if u know..or from where i can get the info about this?&lt;/DIV&gt;&lt;DIV&gt;.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks ,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Girish.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2007 17:24:56 GMT</pubDate>
    <dc:creator>girishrevadigar</dc:creator>
    <dc:date>2007-03-16T17:24:56Z</dc:date>
    <item>
      <title>How can i control my hcs08 mc through serial port?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126623#M1156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I am a student,&amp;nbsp; newer to the hcs08 mc,&amp;nbsp; can anyone please let me know how can i controll the hcs08 mc through serial port?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i mean i actuall ywant to send som commands to the mc to controll the switches etc.Pleas&amp;nbsp;give me any reference materials if u know..or from where i can get the info about this?&lt;/DIV&gt;&lt;DIV&gt;.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks ,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Girish.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 17:24:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126623#M1156</guid>
      <dc:creator>girishrevadigar</dc:creator>
      <dc:date>2007-03-16T17:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can i control my hcs08 mc through serial port?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126624#M1157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;maybe this can be useful for you :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.eckhard-gosch.de/controller/ZwobLCD.zip" target="test_blank"&gt;http://www.eckhard-gosch.de/controller/ZwobLCD.zip&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;it is for the HC08 not for the HCS08 but it should work.&lt;BR /&gt;The HCS08 SCI should be backward compatible to the HC08 SCI and you can taylor the command dispathcer in the main routine to your needs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Eckhard&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 18:01:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126624#M1157</guid>
      <dc:creator>eckhard</dc:creator>
      <dc:date>2007-03-16T18:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can i control my hcs08 mc through serial port?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126625#M1158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Attached is some code I have used based on using Processor Expert to create the serial port hardware driver.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What it does:&lt;/DIV&gt;&lt;DIV&gt;CmdProc.c - reads characters from the serial port and echos them back to the terminal.&amp;nbsp; When enter is pressed (or one of a few other stop conditions), the command is processed by matching the characters entered to a command list.&amp;nbsp; If a match is found, that routine is called from the main file (in this case EPT_vMR32.c).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've cut most of the code out of the main file for clairity, so hopefully you can understand by the comments what is happening there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Good luck.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;uCTechnoGeek&lt;/DIV&gt;&lt;P&gt;Message Edited by UcTechnoGeek on &lt;SPAN class="date_text"&gt;2007-03-20&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:40 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 22:39:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126625#M1158</guid>
      <dc:creator>UcTechnoGeek</dc:creator>
      <dc:date>2007-03-20T22:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can i control my hcs08 mc through serial port?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126626#M1159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Actually, the main thing you would need to do, unless I misunderstood your question, is to simply configure receive and transmit interruptability of your process (in your case receive should be enough).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;tha way, everytime a character is sent (providing you've properly configured the CLK source and divisors to get a matching baud rate on both ends), an interrupt is raised. Then you can store that character from the RECEIVE buffer into a temporary variable, et a flag such as charReceiveed = TRUE and simply deal with it however you please in the main loop.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;All that is throughly explained in the datasheets with all the interrupt vectors and associated registers.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Another thing you&amp;nbsp;should consider is holding a character buffer to store incoming charaters in the event they arrive&amp;nbsp;faster then the system can service them (unlikely&amp;nbsp;if it's just a matter of manual inputs, but of concern if you've got automated responses through internet of C socket code running on your&amp;nbsp;PC).&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 02:38:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-can-i-control-my-hcs08-mc-through-serial-port/m-p/126626#M1159</guid>
      <dc:creator>McGillMike</dc:creator>
      <dc:date>2007-03-28T02:38:05Z</dc:date>
    </item>
  </channel>
</rss>

