<?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>MQX Software SolutionsのトピックUART parity problem in frdmk64</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437788#M14623</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 am using FRDMk64f120, kds 3.0 and KSDk 1.2.0 example.i tried UART non blocking example project. its working fine with none parity but if i change to ODD or EVEN parity its not working why..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i changed following method:&lt;/P&gt;&lt;P&gt; uart_user_config_t uartConfig = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .bitCountPerChar = kUart8BitsPerChar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .parityMode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = kUartParityOdd,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //kUartParityDisabled, //this one commented and changed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .stopBitCount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = kUartOneStopBit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .baudRate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = BOARD_DEBUG_UART_BAUD&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other remaining code same. in example code only i changed "kUartParityDisabled -to-kUartParityOdd".&lt;/P&gt;&lt;P&gt;why this problem coming? is any thing i want to add or change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudhakar p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 06:43:09 GMT</pubDate>
    <dc:creator>sudhakarp</dc:creator>
    <dc:date>2015-09-10T06:43:09Z</dc:date>
    <item>
      <title>UART parity problem in frdmk64</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437788#M14623</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 am using FRDMk64f120, kds 3.0 and KSDk 1.2.0 example.i tried UART non blocking example project. its working fine with none parity but if i change to ODD or EVEN parity its not working why..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i changed following method:&lt;/P&gt;&lt;P&gt; uart_user_config_t uartConfig = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .bitCountPerChar = kUart8BitsPerChar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .parityMode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = kUartParityOdd,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //kUartParityDisabled, //this one commented and changed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .stopBitCount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = kUartOneStopBit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .baudRate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = BOARD_DEBUG_UART_BAUD&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other remaining code same. in example code only i changed "kUartParityDisabled -to-kUartParityOdd".&lt;/P&gt;&lt;P&gt;why this problem coming? is any thing i want to add or change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudhakar p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437788#M14623</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-09-10T06:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: UART parity problem in frdmk64</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437789#M14624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART Driver used in example uses the 8-bit mode and according to k64's Reference Manual, parity bit is saved in UART_D register:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="UART D Register.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56656i68983F332A06226C/image-size/large?v=v2&amp;amp;px=999" role="button" title="UART D Register.jpg" alt="UART D Register.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Example uses UART_HAL_Putchar function that does not consider parity bit, so, you will need to modify this example in order to consider parity bit. You can look at fsl_uart_hal.c file and there are sending and receiving functions that use either 8th-bit and 9th-bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can modify this example or create a new one that uses these 9th-bit functions in order to add parity support. Please refer to fsl_uart.h and fsl_uart.c files.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;static inline void UART_HAL_SetBitCountPerChar(UART_Type * base,&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uart_bit_count_per_char_t bitCountPerChar)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;void UART_HAL_Putchar9(UART_Type * base, uint16_t data)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 20:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437789#M14624</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-09-13T20:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: UART parity problem in frdmk64</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437790#M14625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks for your information. i tried Even parity, 8-bit and 2-stop bit. but am getting junk value. some character not display correctly. i tried following method,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_HAL_SetParityMode ( UART1_BASE,kUartParityEven);&lt;/P&gt;&lt;P&gt;UART_HAL_SetStopBitCount(UART1_BASE, kUartTwoStopBit);&lt;/P&gt;&lt;P&gt;UART_HAL_SetBitCountPerChar (UART1_BASE,kUart8BitsPerChar);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using UART1_RX_TX_IRQHandler(). for receiving character.&amp;nbsp; can you give simple example then i can easily understand. give some idea i tried but i am not get output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudhakar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 04:08:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437790#M14625</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-09-14T04:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: UART parity problem in frdmk64</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437791#M14626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, see this post: &lt;A href="https://community.nxp.com/message/571025"&gt;Re: how to set EVEN-7BIT-1 STOP BIT SETTING FOR FRDMK64&lt;/A&gt; , here you can find detailed information in order to configure your UART module correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 16:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UART-parity-problem-in-frdmk64/m-p/437791#M14626</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-09-24T16:45:12Z</dc:date>
    </item>
  </channel>
</rss>

