<?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>Kinetis Design StudioのトピックRe: processor expert bug - UART baud rate</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518905#M6845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zohar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure the code you shown is generated by PE ?&lt;/P&gt;&lt;P&gt;On my side , i also create one project , then add the UART component ,&lt;/P&gt;&lt;P&gt;while i have not find the code you side , could you send your project to me ?&lt;/P&gt;&lt;P&gt;On my side , it is like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21474iA3E98197B081BE59/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 09:10:39 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-06-14T09:10:39Z</dc:date>
    <item>
      <title>processor expert bug - UART baud rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518902#M6842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to set up uart with 2 modes of operation, one in 115200bps and one in higher baud rate.&lt;/P&gt;&lt;P&gt;When I’ve set the second mode to be 921600bps, it was working fine, but when I set it to be 3250000bps, the transmission was actually at ~900kbs instead.&lt;/P&gt;&lt;P&gt;Found out in file &lt;STRONG&gt;ASerialLdd2.c&lt;/STRONG&gt;&lt;BR /&gt;in function &lt;STRONG&gt;ASerialLdd2_SelectBaudRate &lt;/STRONG&gt;there&lt;BR /&gt;is an array holding the possible values for register &lt;STRONG&gt;UART2_C4&lt;/STRONG&gt; field &lt;STRONG&gt;BRFA&lt;/STRONG&gt; and registers &lt;STRONG&gt;UART2_BDH&lt;/STRONG&gt; and &lt;STRONG&gt;UART2_BDL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;BD is holding the baudrate divider and BRFA is holding the fine adjustment value.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculation is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Baudrate = UART&lt;BR /&gt;device clock/(16*(BD+BRFA/32)) = 96MHz/(16*(BD+BRFA/32))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original lines were&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;static const uint8_t ASerialLdd2_BaudAdjustValueSpeed0[0x02] = {0x02u,&lt;SPAN style="color: red;"&gt;0x10u&lt;/SPAN&gt;};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;static const uint16_t ASerialLdd2_BaudDivisorSpeed0[0x02] = {0x34u,&lt;SPAN style="color: red;"&gt;0x06u&lt;/SPAN&gt;};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red;"&gt;This gave ~900Kbps to mode 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The modified lines are&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;static const uint8_t ASerialLdd2_BaudAdjustValueSpeed0[0x02] = {0x02u,&lt;SPAN style="color: #00b050;"&gt;0x1bu&lt;/SPAN&gt;};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;static const uint16_t ASerialLdd2_BaudDivisorSpeed0[0x02] = {0x34u,&lt;SPAN style="color: #00b050;"&gt;0x01u&lt;/SPAN&gt;};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #00b050;"&gt;This gives 3250000bps to mode 1 (as intendant)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG style="color: #00b050;"&gt; &lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;STRONG&gt;Why is that?&lt;/STRONG&gt;&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: #303030;"&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;STRONG&gt;Zohar&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518902#M6842</guid>
      <dc:creator>zohargolan</dc:creator>
      <dc:date>2016-06-11T00:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: processor expert bug - UART baud rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518903#M6843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zohar,&lt;/P&gt;&lt;P&gt;Please tell me the part number of your chip, the version of KDS,&lt;/P&gt;&lt;P&gt;also the core clock an bus clock .&lt;/P&gt;&lt;P&gt;then i will check it on my side, thank .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 03:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518903#M6843</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-06-12T03:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: processor expert bug - UART baud rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518904#M6844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device number MK20DN512VMC10&lt;/P&gt;&lt;P&gt;KDS version 3.0.0&lt;/P&gt;&lt;P&gt;Core clock 95.977472 MHz&lt;/P&gt;&lt;P&gt;Bus Clock 47.988736 MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Zohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:43:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518904#M6844</guid>
      <dc:creator>zohargolan</dc:creator>
      <dc:date>2016-06-13T16:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: processor expert bug - UART baud rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518905#M6845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zohar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure the code you shown is generated by PE ?&lt;/P&gt;&lt;P&gt;On my side , i also create one project , then add the UART component ,&lt;/P&gt;&lt;P&gt;while i have not find the code you side , could you send your project to me ?&lt;/P&gt;&lt;P&gt;On my side , it is like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21474iA3E98197B081BE59/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 09:10:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518905#M6845</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-06-14T09:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: processor expert bug - UART baud rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518906#M6846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code snippet I have&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59707i9E6E17106EC9D6E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using two different baud rates in different mode. I don't think you've setup the UART the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Zohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 16:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518906#M6846</guid>
      <dc:creator>zohargolan</dc:creator>
      <dc:date>2016-06-14T16:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: processor expert bug - UART baud rate</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518907#M6847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ZOHAR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, i use the KDSv3.0 , and&amp;nbsp; add the UART component , then configure it .&lt;/P&gt;&lt;P&gt;And maybe the version if different between us,&amp;nbsp;&amp;nbsp; so please send your project to me .&lt;/P&gt;&lt;P&gt;Or i don't know how to generate your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or another method is you can use the code you changed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 07:39:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/processor-expert-bug-UART-baud-rate/m-p/518907#M6847</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-06-15T07:39:27Z</dc:date>
    </item>
  </channel>
</rss>

