<?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>S32 Design Studio中的主题 Re: S32K146 LPUART Start bit</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720281#M2058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello Jiri,&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you for your great support.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;BR /&gt;Maybe another request could be to re-write the register description, I think this could&amp;nbsp;make it more clear if we add something about increasing the data bits when parity is enabled.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks again.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Raul C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2018 14:22:33 GMT</pubDate>
    <dc:creator>raulcastanon</dc:creator>
    <dc:date>2018-04-11T14:22:33Z</dc:date>
    <item>
      <title>S32K146 LPUART Start bit</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720277#M2054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a development board S32K146 and working with the LPUART, i did the configuration using the SDK 8.5.&lt;BR /&gt;The configuration is:&lt;/P&gt;&lt;P&gt;Baud rate: 2400&lt;/P&gt;&lt;P&gt;Parity: even&lt;BR /&gt;Stop bits: 2&lt;/P&gt;&lt;P&gt;Data: 8 bits&lt;/P&gt;&lt;P&gt;8 bit data + 2 stop bits + 1 parity bit +&lt;EM&gt; 1 start bit&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The communication is working using a terminal and a TTL cable. I watch the trace using an oscilloscope and a saw that there is something incorrect in the frame.&lt;BR /&gt;As message I've sent two 'A'-&amp;gt;"01000001" this will throw a 0 as even parity bit.&lt;span class="lia-inline-image-display-wrapper" image-alt="UART trace.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2780iC3AB05679217D71D/image-size/large?v=v2&amp;amp;px=999" role="button" title="UART trace.JPG" alt="UART trace.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As we can see in the image, I'm missing a bit in the trace and I think this will be the start bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the reference manual I don't see any register where I can enable the start bit, neither in the SDK window on the S32DS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone knows how to enable the start bit in the trace?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 23:37:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720277#M2054</guid>
      <dc:creator>raulcastanon</dc:creator>
      <dc:date>2018-04-10T23:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPUART Start bit</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720278#M2055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the start bit is not configurable - it must be always present. I tried your scenario - and it looks like that there is no Parity bit - even if it is enabled. I'll try to figure out what's going on and let you know..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the same scenario with decoded frame:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6708iE0094115B9C0AA43/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:55:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720278#M2055</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-11T08:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPUART Start bit</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720279#M2056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raul,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all - thank you for report. The Parity bit is affecting last data bit on hardware layer. As workaround you can use data size 9 bits. In this case is parity working okay and terminal is happy. With 8 bit data size is lost MSb. I also checked EmbSys registers - and CTRL is set correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing I used 0xAA data and Odd parity - terminal received 0x2A - here is frame( Bit7 is overwritten by Parity)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7991i03D1AECEEB775ED9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario with 0xAA and 9 bit data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8079i2BD91D3FE76723C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 11:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720279#M2056</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-11T11:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPUART Start bit</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720280#M2057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks like that this is known LPUART limitation mentioned in Reference manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7232i18970B3DF063D553/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway - I'll put feature request to SDK team for changing data size automatically by Processor Expert when parity is enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720280#M2057</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-11T12:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPUART Start bit</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720281#M2058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello Jiri,&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you for your great support.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;BR /&gt;Maybe another request could be to re-write the register description, I think this could&amp;nbsp;make it more clear if we add something about increasing the data bits when parity is enabled.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks again.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Raul C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720281#M2058</guid>
      <dc:creator>raulcastanon</dc:creator>
      <dc:date>2018-04-11T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPUART Start bit</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720282#M2059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got another one,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After we change the configuration from 8 to 9 data bits,&amp;nbsp;the first data byte is correct as you verify with the scope, but the SW got stuck in this function:&lt;/P&gt;&lt;P&gt;while(LPUART_DRV_GetTransmitStatus(INST_LPUART1, &amp;amp;bytesRemaining) != STATUS_SUCCESS)&lt;/P&gt;&lt;P&gt;Sending bytes in the bus.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="9_bit_data_configuration.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8165i2F7C9CA34C03CC01/image-size/large?v=v2&amp;amp;px=999" role="button" title="9_bit_data_configuration.png" alt="9_bit_data_configuration.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;welcomeMsg is only "AA"&lt;BR /&gt;&lt;BR /&gt;What could be wrong? did I miss something?&lt;/P&gt;&lt;P&gt;The only change made was using the SDK changing data bits from 8 to 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 22:02:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720282#M2059</guid>
      <dc:creator>raulcastanon</dc:creator>
      <dc:date>2018-04-11T22:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPUART Start bit</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720283#M2060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raul,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forwarded this thread to SDK team. Basically - with Parity enabled you need 9 bit data length where you don't care about 9th bit, but it can be done only with two bytes per character. Technically - it is nonsense, because you just need to use parity - nothing else.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With current SDK I'm using as workaround this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t datai[256];&lt;BR /&gt; for (int i=0;i&amp;lt;256;i++)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if ((i%2)==0)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;datai[i]=0xAA;&lt;BR /&gt; else&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;datai[i]=0x00;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; LPUART_DRV_SendData(INST_LPUART1, datai, 256);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this allows me to send 128 bytes of data with parity...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the SDK team will have better solution - may be I overlooked something.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 08:17:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720283#M2060</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-12T08:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPUART Start bit</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720284#M2061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - I forgot add non SDK fix -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just put&lt;/P&gt;&lt;P&gt;LPUART1-&amp;gt;CTRL |= 0x10;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after&amp;nbsp;&lt;/P&gt;&lt;P&gt;LPUART_DRV_Init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This set CTRL.M bit to 1 - 9 bit character length.&amp;nbsp;Also don't forget set character length to 8 bits in Processor Expert and generate PE code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 08:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K146-LPUART-Start-bit/m-p/720284#M2061</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-12T08:32:04Z</dc:date>
    </item>
  </channel>
</rss>

