<?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: LPUART 7 bit Mode Modification in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1652940#M8231</link>
    <description>&lt;P&gt;&lt;A href="mailto:Hi@engineer_attila" target="_blank"&gt;Hi@engineer_attila&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I made some summaries,hope it works for you.&lt;/P&gt;
&lt;P&gt;1.7-N-1&amp;nbsp; &amp;nbsp; &amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 1,M10 = 0;&lt;/P&gt;
&lt;P&gt;2.7-E/O-1&amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 0,M10 = 0;&lt;/P&gt;
&lt;P&gt;3.8-N-1&amp;nbsp; &amp;nbsp; &amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 0,M10 = 0;&lt;/P&gt;
&lt;P&gt;4.8-E/O-1&amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 1,M7 = 0,M10 = 0;&lt;/P&gt;
&lt;P&gt;5.9-N-1&amp;nbsp; &amp;nbsp; &amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 1,M7 = 0,M10 = 0;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6.9-E/O-1&amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 0,M10 = 1;&lt;/P&gt;
&lt;P&gt;7.10-N-1&amp;nbsp; &amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 0,M10 = 1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 08:13:26 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2023-05-18T08:13:26Z</dc:date>
    <item>
      <title>LPUART 7 bit Mode Modification</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1649708#M8219</link>
      <description>&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi folks, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I want to configure LPUART interface the &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt; data bits, Even Parity, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt; Stop Bit, No Flow Control, &lt;/SPAN&gt;&lt;SPAN&gt;9600&lt;/SPAN&gt;&lt;SPAN&gt; baud rate.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;(S32k144EVB-Q100 Yellow Card,LPUART0 instance , PTB0-Rx PTB1-Tx )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I couldn&lt;/SPAN&gt;&lt;SPAN&gt;'t select 7 bit mode on S32 Design Studio &amp;nbsp;or MBDT Toolbox.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;When i examine the dataseet, There is possibly that use 7 bit mode after some modification&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;LPUART BAUD register M10 bit cleared&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;LPUART CNTRL register M7 bit setted &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I modified the LPUART_SetBitCountPerChar() function on lpuart_hw_acccess.c file &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;ı just include &amp;nbsp;this 2 lines and delete other lines witihn this function for this experiment&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;base-&amp;gt;CTRL = (base-&amp;gt;CTRL &amp;amp; ~LPUART_CTRL_M_MASK) | (0 &amp;lt;&amp;lt; LPUART_CTRL_M_SHIFT) | (base-&amp;gt;CTRL &amp;amp; ~LPUART_CTRL_M7_MASK) | (1 &amp;lt;&amp;lt; LPUART_CTRL_M7_SHIFT);

base-&amp;gt;BAUD &amp;amp;= ~LPUART_BAUD_M10_MASK;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But i coulnd'&lt;/SPAN&gt;&lt;SPAN&gt;t get any expected data from LPUART Tx line &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;What i need to &lt;/SPAN&gt;&lt;SPAN&gt;do&lt;/SPAN&gt;&lt;SPAN&gt;? &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Best regards &lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 13 May 2023 06:59:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1649708#M8219</guid>
      <dc:creator>engineer_attila</dc:creator>
      <dc:date>2023-05-13T06:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART 7 bit Mode Modification</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1650099#M8221</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@engineer_attila" target="_blank"&gt;Hi@engineer_attila&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;S32K-RM Chapter:&lt;/P&gt;
&lt;P&gt;53.4.5.1 Data Modes&lt;BR /&gt;The LPUART transmitter and receiver can be configured to operate in 7-bit data mode by&lt;BR /&gt;setting &lt;STRONG&gt;CTRL[M7]&lt;/STRONG&gt;, 9-bit data mode by setting the CTRL[M] or 10-bit data mode by&lt;BR /&gt;setting BAUD[M10].&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1684136694372.png" style="width: 530px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223105iE5951A1D34371466/image-dimensions/530x224?v=v2" width="530" height="224" role="button" title="Senlent_0-1684136694372.png" alt="Senlent_0-1684136694372.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;test.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_1-1684137777992.png" style="width: 559px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223116iFE92C5CCDFEF6CC9/image-dimensions/559x211?v=v2" width="559" height="211" role="button" title="Senlent_1-1684137777992.png" alt="Senlent_1-1684137777992.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;send char "1" to PC ,"1" ascill -&amp;gt;0x31-&amp;gt;0b&lt;STRONG&gt;0&lt;/STRONG&gt;0110001&lt;/P&gt;
&lt;P&gt;PC will received hex 0xb1-&amp;gt;0b&lt;STRONG&gt;1&lt;/STRONG&gt;0110001,bit 7 was set to 1.&lt;/P&gt;
&lt;P&gt;this should be correct.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 08:08:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1650099#M8221</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-05-15T08:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART 7 bit Mode Modification</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1650301#M8222</link>
      <description>&lt;P&gt;Hİ&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;Thank you for reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I forgot to ask you. What is the proper configuration of lpuart_user_config_t for my situation?(7-E-1 9600 No Flow Control)&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Sholud I add the&amp;nbsp; LPUART_7_BITS_PER_CHAR&amp;nbsp; line to&amp;nbsp; within&amp;nbsp;lpuart_bit_count_per_char_t enum type(lpuart_driver.h)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 12:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1650301#M8222</guid>
      <dc:creator>engineer_attila</dc:creator>
      <dc:date>2023-05-15T12:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART 7 bit Mode Modification</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1650650#M8224</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@enginer_attila" target="_blank"&gt;Hi@engineer_attila&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;no，this should not work, you can modify it by setting CTRL register.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 01:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1650650#M8224</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-05-16T01:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART 7 bit Mode Modification</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1650947#M8225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the driver as you descirebed, send the string "abc" from s32k144 with 100msec delay. I got unreliable data from s32k144.&lt;/P&gt;&lt;P&gt;(It was changing over the time)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s32k144.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223317iB1A16146F8282476/image-size/large?v=v2&amp;amp;px=999" role="button" title="s32k144.png" alt="s32k144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(Perceived data from serial convertor(9600-7-E-1 No Flow Control))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="receiver.png" style="width: 262px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223318i0BE4A5EEE8667763/image-size/large?v=v2&amp;amp;px=999" role="button" title="receiver.png" alt="receiver.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When i send the same string from serial convertor , i saw what i send&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Serial_Convertor.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223321iE945C6E60EC9B23B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Serial_Convertor.png" alt="Serial_Convertor.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I search more robust solution for my problem&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 08:26:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1650947#M8225</guid>
      <dc:creator>engineer_attila</dc:creator>
      <dc:date>2023-05-16T08:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART 7 bit Mode Modification</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1651046#M8226</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@engineer_attila" target="_blank"&gt;Hi@engineer_attila&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Will there be such a problem when sending a single character?&lt;/P&gt;
&lt;P&gt;My test here is normal, but I didn’t use an oscilloscope to capture whether the configuration is correct.&lt;/P&gt;
&lt;P&gt;You can test whether the single-character sending and receiving is normal.&lt;/P&gt;
&lt;P&gt;It takes a while to test&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 09:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1651046#M8226</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-05-16T09:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART 7 bit Mode Modification</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1652001#M8229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My configuration&lt;/P&gt;&lt;LI-CODE lang="c"&gt;lpuart_user_config_t lpuart0_InitConfig0 = {
  .transferType = LPUART_USING_INTERRUPTS,
  .baudRate = 9600U,
  .parityMode = LPUART_PARITY_EVEN,
  .stopBitCount = LPUART_ONE_STOP_BIT,
  .bitCountPerChar = LPUART_8_BITS_PER_CHAR,
  .rxDMAChannel = 0U,
  .txDMAChannel = 0U,
};&lt;/LI-CODE&gt;&lt;P&gt;and also change the&amp;nbsp;LPUART_SetBitCountPerChar() function as you descirebed&amp;nbsp;&lt;/P&gt;&lt;P&gt;I send a single character ('a')to the serial converter. I received from serial converter&amp;nbsp;&lt;/P&gt;&lt;P&gt;0x61(a)&amp;nbsp; 0x7F(DEL)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 10:42:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1652001#M8229</guid>
      <dc:creator>engineer_attila</dc:creator>
      <dc:date>2023-05-17T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART 7 bit Mode Modification</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1652940#M8231</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@engineer_attila" target="_blank"&gt;Hi@engineer_attila&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I made some summaries,hope it works for you.&lt;/P&gt;
&lt;P&gt;1.7-N-1&amp;nbsp; &amp;nbsp; &amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 1,M10 = 0;&lt;/P&gt;
&lt;P&gt;2.7-E/O-1&amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 0,M10 = 0;&lt;/P&gt;
&lt;P&gt;3.8-N-1&amp;nbsp; &amp;nbsp; &amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 0,M10 = 0;&lt;/P&gt;
&lt;P&gt;4.8-E/O-1&amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 1,M7 = 0,M10 = 0;&lt;/P&gt;
&lt;P&gt;5.9-N-1&amp;nbsp; &amp;nbsp; &amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 1,M7 = 0,M10 = 0;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6.9-E/O-1&amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 0,M10 = 1;&lt;/P&gt;
&lt;P&gt;7.10-N-1&amp;nbsp; &amp;nbsp; 9600 No Flow Control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;Set M = 0,M7 = 0,M10 = 1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 08:13:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/LPUART-7-bit-Mode-Modification/m-p/1652940#M8231</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-05-18T08:13:26Z</dc:date>
    </item>
  </channel>
</rss>

