<?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: how to clear  the serial port interrupt flag in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-clear-the-serial-port-interrupt-flag/m-p/398755#M22065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The UART contains many status flags that can be cleared by different way. See a reference manual - UART device.&lt;/P&gt;&lt;P&gt;For example RDRF flag is cleare by the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receive Data Register Full Flag&lt;/P&gt;&lt;P&gt;RDRF is set when the number of datawords in the receive buffer is equal to or more than the number&lt;/P&gt;&lt;P&gt;indicated by RWFIFO[RXWATER]. A dataword that is in the process of being received is not included in&lt;/P&gt;&lt;P&gt;the count. &lt;STRONG&gt;To clear RDRF, read S1 when RDRF is set and then read D.&lt;/STRONG&gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KSDK 1.2.0 contains the following function for clearing flags (see the file KSDK_1.2.0\platform\hal\src\uart\fsl_uart_hal.c) but the function can clear several flags only (other flags are cleared by different ways):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*FUNCTION**********************************************************************&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; * Function Name : UART_HAL_ClearStatusFlag&lt;/P&gt;&lt;P&gt; * Description&amp;nbsp;&amp;nbsp; : Clear an individual and specific UART status flag.&lt;/P&gt;&lt;P&gt; * This function allows the user to clear an individual and specific UART&lt;/P&gt;&lt;P&gt; * status flag. Refer to structure definition uart_status_flag_t for list of&lt;/P&gt;&lt;P&gt; * status bits.&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; *END**************************************************************************/&lt;/P&gt;&lt;P&gt;uart_status_t UART_HAL_ClearStatusFlag(UART_Type * base, uart_status_flag_t statusFlag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 13:50:17 GMT</pubDate>
    <dc:creator>marek_neuzil</dc:creator>
    <dc:date>2015-09-22T13:50:17Z</dc:date>
    <item>
      <title>how to clear  the serial port interrupt flag</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-clear-the-serial-port-interrupt-flag/m-p/398754#M22064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;how to clear&amp;nbsp; the serial port interrupt flag?&lt;/P&gt;&lt;P&gt;I can clear the port interrupt flag by " PORT_HAL_ClearPortIntFlag(BOARD_SW_LLWU_BASE); "&lt;/P&gt;&lt;P&gt;but how can I clear the serial port interrupt flag?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 10:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-clear-the-serial-port-interrupt-flag/m-p/398754#M22064</guid>
      <dc:creator>wyflsxy</dc:creator>
      <dc:date>2015-09-22T10:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to clear  the serial port interrupt flag</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-clear-the-serial-port-interrupt-flag/m-p/398755#M22065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The UART contains many status flags that can be cleared by different way. See a reference manual - UART device.&lt;/P&gt;&lt;P&gt;For example RDRF flag is cleare by the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receive Data Register Full Flag&lt;/P&gt;&lt;P&gt;RDRF is set when the number of datawords in the receive buffer is equal to or more than the number&lt;/P&gt;&lt;P&gt;indicated by RWFIFO[RXWATER]. A dataword that is in the process of being received is not included in&lt;/P&gt;&lt;P&gt;the count. &lt;STRONG&gt;To clear RDRF, read S1 when RDRF is set and then read D.&lt;/STRONG&gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KSDK 1.2.0 contains the following function for clearing flags (see the file KSDK_1.2.0\platform\hal\src\uart\fsl_uart_hal.c) but the function can clear several flags only (other flags are cleared by different ways):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*FUNCTION**********************************************************************&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; * Function Name : UART_HAL_ClearStatusFlag&lt;/P&gt;&lt;P&gt; * Description&amp;nbsp;&amp;nbsp; : Clear an individual and specific UART status flag.&lt;/P&gt;&lt;P&gt; * This function allows the user to clear an individual and specific UART&lt;/P&gt;&lt;P&gt; * status flag. Refer to structure definition uart_status_flag_t for list of&lt;/P&gt;&lt;P&gt; * status bits.&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; *END**************************************************************************/&lt;/P&gt;&lt;P&gt;uart_status_t UART_HAL_ClearStatusFlag(UART_Type * base, uart_status_flag_t statusFlag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 13:50:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-clear-the-serial-port-interrupt-flag/m-p/398755#M22065</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-09-22T13:50:17Z</dc:date>
    </item>
  </channel>
</rss>

