<?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>MPC5xxx中的主题 MPC5554 problem changing the eSCI baud while running</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5554-problem-changing-the-eSCI-baud-while-running/m-p/625995#M5694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem with MPC5554.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to change the eSCI baud from 115200 to 2,000,000 while the program is running. when the program starts it works with 115200 but when I try to change the eSCI baud at 2,000,000 it seems to not understand my command and it continues to transmit data at 115200.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do this with the following lines:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define ESCI_A_CR1_SBR_2MBPS 0x00040000 &amp;nbsp; &amp;nbsp;/* BR=sysclk/16/4 (2M baud) */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void BTSerialInit_2Mbps()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;ESCI_A.CR2.R=0x2800;&lt;BR /&gt; ESCI_A.CR1.R=0x0000040c|ESCI_A_CR1_SBR_2MBPS;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this function is called after a certain time is passed. Am I doing something wrong in the code?&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thankk you very much,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2016 14:12:02 GMT</pubDate>
    <dc:creator>davidesalvetti</dc:creator>
    <dc:date>2016-12-19T14:12:02Z</dc:date>
    <item>
      <title>MPC5554 problem changing the eSCI baud while running</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5554-problem-changing-the-eSCI-baud-while-running/m-p/625995#M5694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem with MPC5554.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to change the eSCI baud from 115200 to 2,000,000 while the program is running. when the program starts it works with 115200 but when I try to change the eSCI baud at 2,000,000 it seems to not understand my command and it continues to transmit data at 115200.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do this with the following lines:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define ESCI_A_CR1_SBR_2MBPS 0x00040000 &amp;nbsp; &amp;nbsp;/* BR=sysclk/16/4 (2M baud) */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void BTSerialInit_2Mbps()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;ESCI_A.CR2.R=0x2800;&lt;BR /&gt; ESCI_A.CR1.R=0x0000040c|ESCI_A_CR1_SBR_2MBPS;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this function is called after a certain time is passed. Am I doing something wrong in the code?&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thankk you very much,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 14:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5554-problem-changing-the-eSCI-baud-while-running/m-p/625995#M5694</guid>
      <dc:creator>davidesalvetti</dc:creator>
      <dc:date>2016-12-19T14:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5554 problem changing the eSCI baud while running</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5554-problem-changing-the-eSCI-baud-while-running/m-p/625996#M5695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, have you checked status register whether this change does not cause setting of certain error flag? I am not sure if it is correct to deactivate RX channel how you did in the first line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the whole I would say the better approach would be returning control registers to their default values in order to stop module operation, clear status register and re-initialize to new target values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 09:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5554-problem-changing-the-eSCI-baud-while-running/m-p/625996#M5695</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2016-12-20T09:25:39Z</dc:date>
    </item>
  </channel>
</rss>

