<?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 Weird Baud rate change in HCS08 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Weird-Baud-rate-change-in-HCS08/m-p/159143#M9424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Codewarrior and HCS08.&amp;nbsp; A part of my project is to use the UART on the HCS08 mc and send data to hyperterminal on PC through bluetooth via bluesmirf module. The weird problem that I am facing is that, I am expecting the baud rate to be 9600bps. However, when I first program the mc using the IDE link, the data on hyperterminal is correct. However, if I switch off the mc and start it again, the baud rate changes and garbage values are sent to the hyperterminal.&lt;/P&gt;&lt;P&gt;The UART init code has been included in the System init function. I am not able to troubleshoot this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried seeing&amp;nbsp; the output on oscilloscope and the baud rate change is visible on it. I do not understand why the baud rate setting changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are welcome. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Oct 2010 01:58:43 GMT</pubDate>
    <dc:creator>Eel</dc:creator>
    <dc:date>2010-10-30T01:58:43Z</dc:date>
    <item>
      <title>Weird Baud rate change in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Weird-Baud-rate-change-in-HCS08/m-p/159143#M9424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Codewarrior and HCS08.&amp;nbsp; A part of my project is to use the UART on the HCS08 mc and send data to hyperterminal on PC through bluetooth via bluesmirf module. The weird problem that I am facing is that, I am expecting the baud rate to be 9600bps. However, when I first program the mc using the IDE link, the data on hyperterminal is correct. However, if I switch off the mc and start it again, the baud rate changes and garbage values are sent to the hyperterminal.&lt;/P&gt;&lt;P&gt;The UART init code has been included in the System init function. I am not able to troubleshoot this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried seeing&amp;nbsp; the output on oscilloscope and the baud rate change is visible on it. I do not understand why the baud rate setting changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are welcome. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Oct 2010 01:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Weird-Baud-rate-change-in-HCS08/m-p/159143#M9424</guid>
      <dc:creator>Eel</dc:creator>
      <dc:date>2010-10-30T01:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Baud rate change in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Weird-Baud-rate-change-in-HCS08/m-p/159144#M9425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how much help this will be, but&amp;nbsp;here's a few basics&amp;nbsp;about using the SCI (Serial Communication Interface):&amp;nbsp; refer to the SCI module section in the data sheet for your particular uP (you didn't state which uP you're using).&amp;nbsp; As an example, the HCS08DZ60A has two baud-rate registers (SCIxBDH and SCIxBDL) that you initialize during power up.&amp;nbsp; The SCI control registers must also be configured during initialization to setup features such as parity and loop mode.&amp;nbsp; The data sheet actually walks you through pretty well on how to setup these registers.&amp;nbsp; As long as you have an initialization routine that runs every time your device powers up, it should configure the SCI to the correct baud rate and configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, make sure your MCG (multi-purpose clock generator) is configured and initialized properly as well for the BUSCLK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;~Belskyc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 06:20:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Weird-Baud-rate-change-in-HCS08/m-p/159144#M9425</guid>
      <dc:creator>belskyc</dc:creator>
      <dc:date>2010-11-02T06:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Baud rate change in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Weird-Baud-rate-change-in-HCS08/m-p/159145#M9426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That helped. I forgot to initialize the ICSTRM and ICSSC register from the non volatile memory locations (0xFFAF &amp;amp; 0xFFAE resp)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 21:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Weird-Baud-rate-change-in-HCS08/m-p/159145#M9426</guid>
      <dc:creator>Eel</dc:creator>
      <dc:date>2010-11-02T21:43:38Z</dc:date>
    </item>
  </channel>
</rss>

