<?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: Problems using SDK Example UART Interrupt in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1857881#M4739</link>
    <description>&lt;P&gt;Hello sorry for the late response could you share another image with more zoom on the package of the frame?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 00:37:16 GMT</pubDate>
    <dc:creator>Pavel_Hernandez</dc:creator>
    <dc:date>2024-05-01T00:37:16Z</dc:date>
    <item>
      <title>Problems using SDK Example UART Interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1853274#M4728</link>
      <description>&lt;P&gt;HI there&lt;/P&gt;&lt;P&gt;I am trying to receive data from a display. The display has a serial port and the system is configured to connect the serial port to the UART4. The display is a touch screen and has various soft keys configured such that when a key is pressed it sends the UART a stream of 6 hex characters. The first character for a key press us 0x07 and tells us there should be 5 more characters to follow.&lt;/P&gt;&lt;P&gt;I have tried to use the UART interrupt example, within the SDK for the development board we have (TWRK60-based product) but in the interrupt handler only the first byte is read.&lt;/P&gt;&lt;P&gt;How can I get the handler to read more than just the first byte in the stream of 6...?&lt;/P&gt;&lt;P&gt;I assumed if I did multiple reads of the UART ie something like;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;void DEMO_UART_IRQHandler(void)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; uint8_t data;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; uint8_t No_of_Bytes;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; uint8_t i;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; /* If new data arrived. */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if ((kUART_RxDataRegFullFlag | kUART_RxOverrunFlag) &amp;amp; UART_GetStatusFlags(DEMO_UART))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; data = UART_ReadByte(DEMO_UART);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* If ring buffer is not full, add data to ring buffer. */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (((rxIndex + 1) % DEMO_RING_BUFFER_SIZE) != txIndex)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (data == 0x07)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No_of_Bytes = 5;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0;i &amp;lt; No_of_Bytes;++i)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data = UART_ReadByte(DEMO_UART);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; demoRingBuffer[rxIndex] = data;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rxIndex++;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rxIndex %= DEMO_RING_BUFFER_SIZE;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope you can help&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Apr 2024 08:36:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1853274#M4728</guid>
      <dc:creator>MWMinor</dc:creator>
      <dc:date>2024-04-24T08:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using SDK Example UART Interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1854153#M4730</link>
      <description>&lt;P&gt;Hello, my name is Pavel, and I will support our case, could you let me know what kind of display you&amp;nbsp;are using? Could you add the image of a logic analyzer to know how the &lt;SPAN&gt;display&lt;/SPAN&gt; is transmitting?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 02:01:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1854153#M4730</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-04-25T02:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using SDK Example UART Interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1854746#M4735</link>
      <description>&lt;P&gt;Hi Pavel&lt;/P&gt;&lt;P&gt;The display is made by 4D Systems. It is one of their GEN4-uLCD types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gen4_Serial.JPEG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/275866iF25B13906838E962/image-size/large?v=v2&amp;amp;px=999" role="button" title="Gen4_Serial.JPEG" alt="Gen4_Serial.JPEG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The red trace is the data out from the display when the button is pushed. The yellow trace is the response from the MCU.&lt;/P&gt;&lt;P&gt;Ive tried using the interrupt transfer example too, but still struggling.&lt;/P&gt;&lt;P&gt;Thanks for your assistance&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1854746#M4735</guid>
      <dc:creator>MWMinor</dc:creator>
      <dc:date>2024-04-25T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using SDK Example UART Interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1855089#M4736</link>
      <description>&lt;P&gt;Hello, how do you know that information is right? I reviewed the datasheet of the LCD, and this has a chapter about Serial communication and has the same standard protocol.&lt;/P&gt;
&lt;P&gt;4. Hardware Interface - Pins.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.mouser.com/datasheet/2/451/gen4_uLCD_43D_Series_Datasheet_R_1_14-1627260.pdf" target="_blank"&gt;gen4-uLCD-43D Series - 4D Systems' Resource Centre (mouser.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1714077381224.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/275955i1BBABD5285E847A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_0-1714077381224.png" alt="Pavel_Hernandez_0-1714077381224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_3-1714077495883.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/275958i33968A4EE07A5EDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_3-1714077495883.png" alt="Pavel_Hernandez_3-1714077495883.png" /&gt;&lt;/span&gt;
&lt;P&gt;image from the web as example.&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not similar that you are seeing on the oscilloscope.&lt;/P&gt;
&lt;P&gt;Let me know if the datasheet that I found is not the right.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 20:39:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1855089#M4736</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-04-25T20:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using SDK Example UART Interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1855914#M4738</link>
      <description>&lt;P&gt;The sequence captured on the scope is correct, and the hardware it’s running on is sound as the interface works fine on the existing CodeWarrior/MQX platform.&lt;/P&gt;&lt;P&gt;i’ve achieved some success with the interrupt dma transfer example, but I’m struggling to understand how them code works. Is there any better documentation available for this example?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;ken&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 18:51:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1855914#M4738</guid>
      <dc:creator>MWMinor</dc:creator>
      <dc:date>2024-04-26T18:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using SDK Example UART Interrupt</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1857881#M4739</link>
      <description>&lt;P&gt;Hello sorry for the late response could you share another image with more zoom on the package of the frame?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 00:37:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Problems-using-SDK-Example-UART-Interrupt/m-p/1857881#M4739</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-05-01T00:37:16Z</dc:date>
    </item>
  </channel>
</rss>

