<?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: SC16IS752 in SPI mode using fifo. Errors in received FIFO bytes in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793643#M65969</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Yes, thank you for the reply&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Jozef! I will try this method today and update you as soon as I get the results.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 09:01:42 GMT</pubDate>
    <dc:creator>RM99</dc:creator>
    <dc:date>2024-01-23T09:01:42Z</dc:date>
    <item>
      <title>SC16IS752 in SPI mode using fifo. Errors in received FIFO bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793079#M65963</link>
      <description>&lt;P&gt;Hello. I am currently using the&amp;nbsp;SC16IS752 and I am obtaining some wrong data bytes. (I also used in the SC16IS762) but I'm obtaining the same results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current setup is sending 140 bytes of data at a rate of 40 Hz per second to the uart rx port at a default baud rate of 115200.&amp;nbsp; I am using the orin spi to connect to the ic with a code in c language.&lt;/P&gt;&lt;P&gt;Im my code I am configuring the registers that are needed to enable the fifo and defining the baud rate. After this in order to receive the data I am accessing the register that tells me if there is any data currently on the fifo, reading the line status registor to see if there are any error and then reading the data from the fifo. This reading cycle is then continuously repeated.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I am sending a large amount of data the fifo can't be filled otherwise I will lose data. So: If there is data on fifo I read that data. If there is no data I keep scanning for more data. When I read the data the fifo buffer gets cleared (I got this from testing)&amp;nbsp; so I don't need to manual clean it before reading again from it.&amp;nbsp;&lt;BR /&gt;Now here is the problem: When reading the data sometimes the data gets lost or gets doubled or tripled or something else.. For example a segment of the data:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct message:&lt;/P&gt;&lt;P&gt;$VNIN$0032.0003&lt;/P&gt;&lt;P&gt;Message obtained:&lt;/P&gt;&lt;P&gt;$VN$$$003..000&lt;/P&gt;&lt;P&gt;When reading the data I have tried to implement a delay between readings and I have seen depending on the delay it can somewhat help or not...&lt;/P&gt;&lt;P&gt;I have tried several things but I can't seem to figure this out...&lt;/P&gt;&lt;P&gt;If some additional data is needed please ask me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793079#M65963</guid>
      <dc:creator>RM99</dc:creator>
      <dc:date>2024-01-22T15:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: SC16IS752 in SPI mode using fifo. Errors in received FIFO bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793575#M65966</link>
      <description>&lt;P&gt;Hello Rafael,&lt;/P&gt;
&lt;P&gt;there is a possibility to set trigger levels for the FIFO, perhaps it would be better for your case, so you don't have to scan the FIFO for data. Please refer to the section 7.1. in the &lt;A href="https://www.nxp.com/docs/en/data-sheet/SC16IS752_SC16IS762.pdf" target="_self"&gt;SC16IS752 datasheet&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_0-1705995253493.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/259577i672F6D77AAD3EC9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_0-1705995253493.png" alt="JozefKozon_0-1705995253493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_1-1705995505544.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/259578iCD8FE53CCD30B772/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_1-1705995505544.png" alt="JozefKozon_1-1705995505544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 07:39:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793575#M65966</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2024-01-23T07:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: SC16IS752 in SPI mode using fifo. Errors in received FIFO bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793643#M65969</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, thank you for the reply&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Jozef! I will try this method today and update you as soon as I get the results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 09:01:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793643#M65969</guid>
      <dc:creator>RM99</dc:creator>
      <dc:date>2024-01-23T09:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: SC16IS752 in SPI mode using fifo. Errors in received FIFO bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793753#M65976</link>
      <description>&lt;P&gt;Hello Rafael,&lt;/P&gt;&lt;P&gt;you welcome. Sure, let me know the results. Have a nice day.&lt;/P&gt;&lt;P&gt;With Best Regards,&lt;/P&gt;&lt;P&gt;Jozef&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 10:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793753#M65976</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2024-01-23T10:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: SC16IS752 in SPI mode using fifo. Errors in received FIFO bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793866#M65977</link>
      <description>&lt;P&gt;I implemented the interrupts and even though it seemed to help I was having some errors still, but I figured it out. Turns out it was that I was reading more than the level of bytes that the rx fifo indicated making it that I was losing some data because I was reading some empty positions, and in the second reading, fifo got rid of the data in positions that had data written to it after the rx level that was indicated! Thanks for the help &lt;SPAN&gt;nevertheless &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 14:13:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SC16IS752-in-SPI-mode-using-fifo-Errors-in-received-FIFO-bytes/m-p/1793866#M65977</guid>
      <dc:creator>RM99</dc:creator>
      <dc:date>2024-01-23T14:13:17Z</dc:date>
    </item>
  </channel>
</rss>

