<?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: K60 uart, PF and FE flags problem</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640616#M38792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw the SIM_SOPT5 have a register is&amp;nbsp;UART0TXSRC and the function&amp;nbsp;descriptions is&amp;nbsp;UART0_TX pin modulated with TPM1 channel 0 output.&lt;/P&gt;&lt;P&gt;It's mean the TX frequency is same to TPM1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I saw the UART register have receive overrun, parity error, framing error, and noise error, but not much description how to use it.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does NXP have any application note can description how to use those UART error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I get a receive overrun, Do I need &amp;nbsp;to discard the erroneous data or do what?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW, Have any document show the error spec?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kris&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 03:10:48 GMT</pubDate>
    <dc:creator>kriske</dc:creator>
    <dc:date>2017-02-15T03:10:48Z</dc:date>
    <item>
      <title>K60 uart, PF and FE flags problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640614#M38790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working with the K60 microcontroller, in &amp;nbsp;particular the UART0 peripheral.&lt;/P&gt;&lt;P&gt;I can't make it run properly.&lt;/P&gt;&lt;P&gt;In attached you can find the initialization function.&lt;/P&gt;&lt;P&gt;I set M (9 bits), PE (parity enable) and PT (odd parity) bits in C1 register and RX-TX interrupt is enabled.&lt;/P&gt;&lt;P&gt;When I send a byte, the UART adds the bit parity properly.&lt;/P&gt;&lt;P&gt;When I receive a byte with wrong bit parity, the bit PF in S1 register isn't set. (In the attached file, K60 never sets PE in S1 register and it doesn't&amp;nbsp;goes in&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;EM&gt;if (StatusUART &amp;amp; UART_S1_PF_MASK)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;EM&gt; { &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;error |= HART_ERROR_VERTICAL_PARITY;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done several tries but I can't find the solution.&lt;/P&gt;&lt;P&gt;Is the peripheral correctly configured? Do I correctly read/manage S1 register?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Veronica&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337487"&gt;UART_K60.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:42:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640614#M38790</guid>
      <dc:creator>veronicam</dc:creator>
      <dc:date>2017-01-24T11:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: K60 uart, PF and FE flags problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640615#M38791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veronica Malori&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you send data to UART0? as I see in your code, you have set the 9 bits data, but when parity enable, you actually have to sent a 8 bits data plus the parity bit, and the Parity flag will set consider your C1[M], so it will consider C3[R8] bit in the count of parity check if 9 bits enable. So, as you have your setup, you have to send start bit+ &lt;STRONG&gt;8 bits data + parity bit&lt;/STRONG&gt; + stop bit.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&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>Mon, 30 Jan 2017 17:18:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640615#M38791</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-01-30T17:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: K60 uart, PF and FE flags problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640616#M38792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw the SIM_SOPT5 have a register is&amp;nbsp;UART0TXSRC and the function&amp;nbsp;descriptions is&amp;nbsp;UART0_TX pin modulated with TPM1 channel 0 output.&lt;/P&gt;&lt;P&gt;It's mean the TX frequency is same to TPM1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I saw the UART register have receive overrun, parity error, framing error, and noise error, but not much description how to use it.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does NXP have any application note can description how to use those UART error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I get a receive overrun, Do I need &amp;nbsp;to discard the erroneous data or do what?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW, Have any document show the error spec?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kris&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 03:10:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640616#M38792</guid>
      <dc:creator>kriske</dc:creator>
      <dc:date>2017-02-15T03:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: K60 uart, PF and FE flags problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640617#M38793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TX modulated means that UART0_TX pin output will pass trough an AND with FTM0 channel 0 before mapped to pinout:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2015-07-21_10-03-48_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18059i50630D9E325B9018/image-size/large?v=v2&amp;amp;px=999" role="button" title="2015-07-21_10-03-48_2.jpg" alt="2015-07-21_10-03-48_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So UART has configured his baud rate as normal, but if the data in 1, the output will have the FTM frequency, this is very used in irda communication, please check: &lt;A href="https://community.nxp.com/docs/DOC-101130"&gt;Implementing infrared functions on UART0 with FRDM-KE02Z platform.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP has not a document that explain how to manage errors from UART communication, it actually depends in the user application, it depends on you to check if you have a error flag and decide what to do ones that this error has been set. Please check datasheet for specifications of the MCU.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&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>Thu, 16 Feb 2017 01:52:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-uart-PF-and-FE-flags-problem/m-p/640617#M38793</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-02-16T01:52:41Z</dc:date>
    </item>
  </channel>
</rss>

