<?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: External clock, SCI and PWM in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-clock-SCI-and-PWM/m-p/453298#M3300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fiona,&lt;/P&gt;&lt;P&gt;Thanks for your reply. 115200 baud rate is a requirement and so is the 125KHz square wave. Can you think of a way that I can have both at the same time?&lt;/P&gt;&lt;P&gt;I was looking at using an external clock source for one timer and the changing the 16MHz xtal to a 7.3728MHz to achieve the 115200 baud rate. But I just cannot figure out how to set up a timer module to work off of an external clock source in PE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2015 17:05:54 GMT</pubDate>
    <dc:creator>mahkamehvarza</dc:creator>
    <dc:date>2015-09-16T17:05:54Z</dc:date>
    <item>
      <title>External clock, SCI and PWM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-clock-SCI-and-PWM/m-p/453296#M3298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;I am using a MC9S08QE32. I need to have a 125KHz square wave on one &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;of the PWM channels and a 115200 baudrate on one of the SCIs. I am &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;using a 16MHz crystal oscillator, and so far I have figured out the &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;Processor expert settings to get the 125KHz on PWM but cannot figure out &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;how to get the 115200 on the SCI at the same time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;How can I achieve this? If it is not possible with this clock source, what &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;changes do I need to make to achieve this? using an external clock source &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;is highly preferred.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 16:40:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-clock-SCI-and-PWM/m-p/453296#M3298</guid>
      <dc:creator>mahkamehvarza</dc:creator>
      <dc:date>2015-09-15T16:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: External clock, SCI and PWM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-clock-SCI-and-PWM/m-p/453297#M3299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are using a 16MHz external crystal oscillator, the bus clock is 8M.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SCI band Rate is 8M /(16*[&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt; SBR12:SBR0&lt;/SPAN&gt;]) .&amp;nbsp; The nearest baud rate to 115200 is 131072bps, in this case SBR should be set to 4.&amp;nbsp; The error is more than 10%.&amp;nbsp; So 115200 is not a recommended SCI speed for your application based on the current hardware design. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="baud rate2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57710i9BB8B355126B71DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="baud rate2.png" alt="baud rate2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 02:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-clock-SCI-and-PWM/m-p/453297#M3299</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2015-09-16T02:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: External clock, SCI and PWM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-clock-SCI-and-PWM/m-p/453298#M3300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fiona,&lt;/P&gt;&lt;P&gt;Thanks for your reply. 115200 baud rate is a requirement and so is the 125KHz square wave. Can you think of a way that I can have both at the same time?&lt;/P&gt;&lt;P&gt;I was looking at using an external clock source for one timer and the changing the 16MHz xtal to a 7.3728MHz to achieve the 115200 baud rate. But I just cannot figure out how to set up a timer module to work off of an external clock source in PE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 17:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-clock-SCI-and-PWM/m-p/453298#M3300</guid>
      <dc:creator>mahkamehvarza</dc:creator>
      <dc:date>2015-09-16T17:05:54Z</dc:date>
    </item>
  </channel>
</rss>

