<?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: mcs9212dt256b setting clock rates for serial communication in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mcs9212dt256b-setting-clock-rates-for-serial-communication/m-p/147075#M4036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;OscFreq is defined in the Serial Monitor .def file as your board's crystal frequency.&amp;nbsp; You can use as high as a 16MHz crystal with the DT256.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the Serial Monitor source code:&lt;BR /&gt;BusFreq = ((OscFreq/(initREFDV+1))*(initSYNR+1))&lt;BR /&gt;baud115200&amp;nbsp;&amp;nbsp;&amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp; (BusFreq/16)*10/1152&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above equations come from the Device Guide sections detailing the clock and oscillator operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, make sure you choose the correct target MCU and OscFreq in the Serial Monitor .def file before assembling and loading the serial monitor into your board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Carl Barnes&lt;BR /&gt;&lt;A href="http://www.technologicalarts.com/"&gt;www.technologicalarts.com&lt;/A&gt;&lt;BR /&gt;A full line of HC11/HC12/HCS12 hardware.&lt;BR /&gt;Evaluate * Educate * Embed&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Feb 2009 01:56:27 GMT</pubDate>
    <dc:creator>mculater</dc:creator>
    <dc:date>2009-02-07T01:56:27Z</dc:date>
    <item>
      <title>mcs9212dt256b setting clock rates for serial communication</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mcs9212dt256b-setting-clock-rates-for-serial-communication/m-p/147074#M4035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to set up my mcu to use the serial port, at 115200 baud, and would also like the processor as fast as possible. The serial communication works when I set my oscillator freq. at 4.0 MHz, and enable PLL, and set internal bus clock at 24 (PLL clock at 48)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way I can increase my oscillator frequency and still have the serial communication work? how are these values calculated(so I can do it myself in the future) ? why is it like this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I keep getting a linker warning L1937 the LINK_INFO entries for OSCFREQUENCY have a multiple different contents. It was 4000000 before and in addition is 24000000 from AD2.c.o&amp;nbsp;&amp;nbsp; (IO.Map.c.o)&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone can tell me how to set up the serial monitor that would solve my problem as well... I loaded the program SerMon on to the microcontroller, and now I'm trying to debug using the serial monitor, but keep getting error messages "could not connect to hardware."&amp;nbsp; "HI-WAVE Fatal Error" "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="time_text"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Franklin on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2009-01-28&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;05:09 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 10:10:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mcs9212dt256b-setting-clock-rates-for-serial-communication/m-p/147074#M4035</guid>
      <dc:creator>Franklin</dc:creator>
      <dc:date>2009-01-28T10:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: mcs9212dt256b setting clock rates for serial communication</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mcs9212dt256b-setting-clock-rates-for-serial-communication/m-p/147075#M4036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;OscFreq is defined in the Serial Monitor .def file as your board's crystal frequency.&amp;nbsp; You can use as high as a 16MHz crystal with the DT256.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the Serial Monitor source code:&lt;BR /&gt;BusFreq = ((OscFreq/(initREFDV+1))*(initSYNR+1))&lt;BR /&gt;baud115200&amp;nbsp;&amp;nbsp;&amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp; (BusFreq/16)*10/1152&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above equations come from the Device Guide sections detailing the clock and oscillator operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, make sure you choose the correct target MCU and OscFreq in the Serial Monitor .def file before assembling and loading the serial monitor into your board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Carl Barnes&lt;BR /&gt;&lt;A href="http://www.technologicalarts.com/"&gt;www.technologicalarts.com&lt;/A&gt;&lt;BR /&gt;A full line of HC11/HC12/HCS12 hardware.&lt;BR /&gt;Evaluate * Educate * Embed&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 01:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mcs9212dt256b-setting-clock-rates-for-serial-communication/m-p/147075#M4036</guid>
      <dc:creator>mculater</dc:creator>
      <dc:date>2009-02-07T01:56:27Z</dc:date>
    </item>
  </channel>
</rss>

