<?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 set EVEN-7BIT-1 STOP BIT SETTING FOR FRDMK64 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458901#M3313</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 tried&amp;nbsp; UART1 port with 2stop bit its working fine for none parity. i think for UART-0 i used virtual USB port that's why am not getting correct result. i put MAX232 for UART-1 and tried its ok. but still i have&amp;nbsp; problem with 7E1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;when i type one by one character its displaying correctly but i transfer some 1kb file through hyperterminal or tereterm its outing junk value why.?&lt;/STRONG&gt; and also am using "&lt;STRONG&gt;UART_DRV_InstallRxCallback&lt;/STRONG&gt;" interrupt function to receive UART data. is any problem..?&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 12:17:39 GMT</pubDate>
    <dc:creator>sudhakarp</dc:creator>
    <dc:date>2015-10-07T12:17:39Z</dc:date>
    <item>
      <title>how to set EVEN-7BIT-1 STOP BIT SETTING FOR FRDMK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458897#M3309</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; I am using FRDMK64f120 controller, KDS2.0 and KSDK 1.1.0 example am using. i tried to set&lt;/P&gt;&lt;P&gt;following setting in hello example project but its not working. how to solve this problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E-Even parity,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7,8-bit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,2-stop bit&lt;/P&gt;&lt;P&gt;1)E71&lt;/P&gt;&lt;P&gt;2)E82&lt;/P&gt;&lt;P&gt;3)O71&lt;/P&gt;&lt;P&gt;4)N82&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its working fine with NOne ,8bit and 1 stop bit. but i need above setting how to solve this problem.&lt;/P&gt;&lt;P&gt;please give some idea.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudhakar p&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 04:05:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458897#M3309</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-09-18T04:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to set EVEN-7BIT-1 STOP BIT SETTING FOR FRDMK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458898#M3310</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;First of all, you should understand data format in UART module, lets suppose LSB is sent first.&lt;/P&gt;&lt;P&gt;If you select 8-bit data format and enable parity bit, 7 are reserved for data and the one (MSB) is reserved for parity (either odd or even) as shown below:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Data Format E81.jpg"&gt;&lt;IMG alt="Data Format E81.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/57511iFF852658A480A458/image-size/large?v=v2&amp;amp;px=999" title="Data Format E81.jpg" /&gt;&lt;/SPAN&gt;Internal hardware checks parity bit according to parity mode selected (even or odd) and it sets/clears the flag if there is a parity error on received character, so, if you are using this mode, you should read 8 bits and then mask the 8th bit to discard parity bit (hardware already checks for parity error):&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14431120309278543 jive_text_macro" data-renderedposition="207_8_1231_64" jivemacro_uid="_14431120309278543"&gt;&lt;P&gt;uint8_t received_data, parity, real_data;&lt;/P&gt;&lt;P&gt;UART_HAL_Getchar(base, &amp;amp;received_data);&lt;/P&gt;&lt;P&gt;real_data = received_data &amp;amp; 0x7F;&lt;/P&gt;&lt;P&gt;parity = (received_data &amp;amp; 0x80) &amp;gt;&amp;gt; 7;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you try to use 8 data bits and add an aditional parity bit, you should enable 9 bit transmission (8 data + 1 parity) and data format is:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Data Format E91.jpg"&gt;&lt;IMG alt="Data Format E91.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/57628i18E65A6E0C4169D9/image-size/large?v=v2&amp;amp;px=999" title="Data Format E91.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In this case, we need to read 9 bits (8 bits are read in UARTx_D register and MSB bit is read in UARTx_C3[R8] flag),so, it is neccesary to read C3 before reading D register. Again, internal hardware checks for parity bit and sets/clears correspoding flag if there is a parity error. For KSDK 1.2.0 drivers, there is a function that allows user to read/write 9 bits:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14431124640599036" data-renderedposition="429_8_1231_16" jivemacro_uid="_14431124640599036"&gt;&lt;P&gt;UART_HAL_Getchar9(base, &amp;amp;data_16_bits);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current UART driver in KSDK does use 8 bit data format with no parity, so, you should consider masking the MSB bit if parity is enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attach you can find a basic project using UART_HAL functions that KSDK provides in order to read 8 or 9 bits. I check both versions and it works well (even though i had problems on 8 bit format because Putty does not uses 7 data + 1 parity bit but if you apply this technique when communicating two boards you will see that communication is stablished correctly.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can serve as guidance in order to create your own driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: For Stop bits, it should be no problem when chaning from 1 to 2, due these bits are internally managed.&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;----------------------------------------------------------------------------------------------------------------------------------------&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>Mon, 02 Nov 2020 13:23:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458898#M3310</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2020-11-02T13:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to set EVEN-7BIT-1 STOP BIT SETTING FOR FRDMK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458899#M3311</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; still i have same problem.&lt;/P&gt;&lt;P&gt;actually i configured like this for 7E1-(7bit ,even,one stop bit)&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; = kUartParityEven,&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; = 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; = BOARD_DEBUG_UART_BAUD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its only displaying some character correctly. some character am getting junk value [example:"C"]. why?&lt;/P&gt;&lt;P&gt;and also you told Stop bit not depends on number of bits per char. i tried 8N2 this one also not working.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;can you give some other solution for 7bit data transfer with parity..?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and also i need all combination&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;1)E71&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;2)E82&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;3)O71&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;4)N82&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;regards,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;sudhakar p&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 13:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458899#M3311</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-10-06T13:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to set EVEN-7BIT-1 STOP BIT SETTING FOR FRDMK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458900#M3312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if i configure 9bit for(7E1 and 8E1) without junk i can able to receive.But i sent large data 1k am getting junk value. 2-stop bit condition was not working at all.&lt;/P&gt;&lt;P&gt;without parity also 2-stop bit not working why?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 13:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458900#M3312</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-10-06T13:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to set EVEN-7BIT-1 STOP BIT SETTING FOR FRDMK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458901#M3313</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 tried&amp;nbsp; UART1 port with 2stop bit its working fine for none parity. i think for UART-0 i used virtual USB port that's why am not getting correct result. i put MAX232 for UART-1 and tried its ok. but still i have&amp;nbsp; problem with 7E1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;when i type one by one character its displaying correctly but i transfer some 1kb file through hyperterminal or tereterm its outing junk value why.?&lt;/STRONG&gt; and also am using "&lt;STRONG&gt;UART_DRV_InstallRxCallback&lt;/STRONG&gt;" interrupt function to receive UART data. is any problem..?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 12:17:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458901#M3313</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-10-07T12:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to set EVEN-7BIT-1 STOP BIT SETTING FOR FRDMK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458902#M3314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thank you. i got it.everything i tried with&amp;nbsp; &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;UART-0 virtual USB port that's why am not getting correct result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;sudhakar p&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 05:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/how-to-set-EVEN-7BIT-1-STOP-BIT-SETTING-FOR-FRDMK64/m-p/458902#M3314</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-10-08T05:48:02Z</dc:date>
    </item>
  </channel>
</rss>

