<?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 Microcontrollers中的主题 Re: KL17 LPUART noise error with 4 Mhz external crystal</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-LPUART-noise-error-with-4-Mhz-external-crystal/m-p/643292#M39000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher Porter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 114285 still meet the 115200 bps 1.5% allowed error, it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please tell me the full name of your KL17, the part number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please also tell me your core clock and the bus clock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then, you can send me the test project, I will help you to check it on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2017 08:44:19 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-04-05T08:44:19Z</dc:date>
    <item>
      <title>KL17 LPUART noise error with 4 Mhz external crystal</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-LPUART-noise-error-with-4-Mhz-external-crystal/m-p/643291#M38999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a board with a 48 Mhz crystal and had the LPUART module communicating at 115200 baud with no errors. &amp;nbsp;Then I swapped out the external clock for one at 4 MHz and the receiver stopped working (the transmitter is still working fine). Communication works if I reduce the baud rate to 9600. &amp;nbsp;I have verified the following are within tolerance:&lt;/P&gt;&lt;P&gt;!. &amp;nbsp;External clock speeds; &amp;nbsp;with scope and also by toggling GPIO with interrupt driven timer.&lt;/P&gt;&lt;P&gt;2. Bit width of data on TX and RX lines&lt;/P&gt;&lt;P&gt;3. Error flags in the LPUART ISR. &amp;nbsp;We are getting noise error which may suggest phase shifting error.&lt;/P&gt;&lt;P&gt;4. Computation of OSR and SBR. &amp;nbsp;Baud clock should be 114285 Hz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code used to set up the UART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM-&amp;gt;SOPT5 = ((SIM-&amp;gt;SOPT5 &amp;amp;&lt;BR /&gt; (~(SIM_SOPT5_LPUART0TXSRC_MASK | SIM_SOPT5_LPUART0RXSRC_MASK)))&lt;BR /&gt; | SIM_SOPT5_LPUART0TXSRC(sopt5LPUART0TxSrc)&lt;BR /&gt; | SIM_SOPT5_LPUART0RXSRC(sopt5LPUART0RxSrc)&lt;BR /&gt; );&lt;/P&gt;&lt;P&gt;CLOCK_SetLpuart0Clock(2);&lt;/P&gt;&lt;P&gt;lpuart_config_t lpuart_config;&lt;BR /&gt; LPUART_GetDefaultConfig(&amp;amp;lpuart_config);&lt;BR /&gt;lpuart_config.baudRate_Bps = 115200;&lt;BR /&gt; lpuart_config.enableRx = true;&lt;BR /&gt; lpuart_config.enableTx = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPUART_Init(LPUART0, &amp;amp;lpuart_config, CLOCK_GetFreq(kCLOCK_Osc0ErClk));&lt;BR /&gt; &lt;BR /&gt; LPUART_EnableRx(&lt;SPAN&gt;LPUART0&lt;/SPAN&gt;, true);&lt;BR /&gt; LPUART_EnableTx(&lt;SPAN&gt;LPUART0&lt;/SPAN&gt;, true);&lt;BR /&gt; LPUART_EnableInterrupts(&lt;SPAN&gt;LPUART0&lt;/SPAN&gt;, kLPUART_RxDataRegFullInterruptEnable);&lt;BR /&gt;LPUART_EnableInterrupts(&lt;SPAN&gt;LPUART0&lt;/SPAN&gt;, kLPUART_NoiseErrorInterruptEnable | kLPUART_FramingErrorInterruptEnable | kLPUART_RxOverrunInterruptEnable);&lt;BR /&gt; EnableIRQ(LPUART0_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 17:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-LPUART-noise-error-with-4-Mhz-external-crystal/m-p/643291#M38999</guid>
      <dc:creator>christopherport</dc:creator>
      <dc:date>2017-04-03T17:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: KL17 LPUART noise error with 4 Mhz external crystal</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-LPUART-noise-error-with-4-Mhz-external-crystal/m-p/643292#M39000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher Porter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 114285 still meet the 115200 bps 1.5% allowed error, it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please tell me the full name of your KL17, the part number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please also tell me your core clock and the bus clock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then, you can send me the test project, I will help you to check it on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 08:44:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL17-LPUART-noise-error-with-4-Mhz-external-crystal/m-p/643292#M39000</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-04-05T08:44:19Z</dc:date>
    </item>
  </channel>
</rss>

