<?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: Missing the last bit when read internal registers of the SC18IS600 in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1524286#M2597</link>
    <description>&lt;P&gt;Hello Idan,&lt;/P&gt;
&lt;P&gt;you are very welcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not see anything wrong in the scopes. There must be something incorrect in the code or in the FTDI driver as you mentioned.&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 11:57:58 GMT</pubDate>
    <dc:creator>JozefKozon</dc:creator>
    <dc:date>2022-09-19T11:57:58Z</dc:date>
    <item>
      <title>Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1522736#M2587</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My problem is when reading the internal register values of the&amp;nbsp;SC18IS600 the value of the last bit is always "0"&lt;/P&gt;&lt;P&gt;For example, I'm writing 0xFF to the IOConfig register but when i read the value its 0xFE or writing to the same register 0X01 reading 0x00. (same with IOstate or I2Cclock)&lt;/P&gt;&lt;P&gt;To verify that the problem is in the read function and not the write function i set GPIO0 to low-&amp;gt; high-&amp;gt; low and i can see it changes.&lt;/P&gt;&lt;P&gt;I've tried using the read command with and without the dummy byte and using full and half duplex, changing **bleep** frequency, and the SPI configuration register with no change of the output.&lt;/P&gt;&lt;P&gt;SPI commands example to set IOconfig to 0xFF:&lt;/P&gt;&lt;P&gt;0x2001FF&lt;/P&gt;&lt;P&gt;SPI commands example to read IOconfig with dummy byte in full duplex:&lt;/P&gt;&lt;P&gt;0x210000&lt;/P&gt;&lt;P&gt;Using:&lt;/P&gt;&lt;P&gt;FTDI: FT4232HL&lt;/P&gt;&lt;P&gt;SPI mode:3&lt;/P&gt;&lt;P&gt;Clock frequency:100Khz&lt;/P&gt;&lt;P&gt;No issues with other SPI devices on the board.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Idan.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 08:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1522736#M2587</guid>
      <dc:creator>idanu357</dc:creator>
      <dc:date>2022-09-15T08:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1522865#M2588</link>
      <description>&lt;P&gt;Hello Idan,&lt;/P&gt;
&lt;P&gt;please note, that the last bit in the register is a read/write R/W bit. This bit must be different for writing and different for reading.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_0-1663237559813.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193799i9D7EE2126515EFCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_0-1663237559813.png" alt="JozefKozon_0-1663237559813.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I presume the last bit for writing must be set to 1, you mentioned, you are writing 0xFF=0b1111 1111 and reading 0xFE=0b1111 1110. Please try to write first 0x0F=0b0000 1111 and second 0xFE=0b1111 1110. After that please read the register. You should read 0x0E=0b0000 1110, because the second writing should not change the higher four bits to 1.&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 10:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1522865#M2588</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2022-09-15T10:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1523101#M2590</link>
      <description>&lt;P&gt;Hello Jozef and thank you for your replay.&lt;/P&gt;&lt;P&gt;Your answer got me a little confused, if im reading / writing the IOConfig register i should be able to read 8 bits or 1 byte from his address since its internal register.&lt;/P&gt;&lt;P&gt;I did what you asked but i still get 0xEF.&lt;/P&gt;&lt;P&gt;Its the same for the I2Cclock register, when reading the default value from the register im getting 0x18 while the I2C clock is&amp;nbsp; 97 kHz.&lt;/P&gt;&lt;P&gt;The column you marked is for the type of the register not a bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:56:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1523101#M2590</guid>
      <dc:creator>idanu357</dc:creator>
      <dc:date>2022-09-15T17:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1523375#M2592</link>
      <description>&lt;P&gt;Hello Idan,&lt;/P&gt;
&lt;P&gt;thank you for the test you conducted. My conclusion was incorrect. I apologize for that. Could you please confirm, that you read the internal register according the procedure in the section 6.5.8 in the &lt;A href="https://www.nxp.com/docs/en/data-sheet/SC18IS600.pdf" target="_self"&gt;SC18IS600&lt;/A&gt; datasheet? Could you please provide a scope of the register reading? Either from a logic analyzer or from an oscilloscope.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_0-1663306425274.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193918i4553031BB255DE16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_0-1663306425274.png" alt="JozefKozon_0-1663306425274.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 05:35:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1523375#M2592</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2022-09-16T05:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1523854#M2593</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Bellow is an image of the transaction.&lt;/P&gt;&lt;P&gt;The datasheet is a bit misleading I hope you help me understand this:&lt;/P&gt;&lt;P&gt;1.What is the "Register data" after the register address, is that the data the sent back from the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.nxp.com/docs/en/data-sheet/SC18IS600.pdf" target="_self" rel="nofollow noopener noreferrer"&gt;SC18IS600&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;2. What is the Dummy byte ? do I really need it ?&lt;/P&gt;&lt;P&gt;My MOSI lines are 0x2100 to read the IOConfig in half duplex or 0x210000 in full duplex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading SPI lines:&lt;/P&gt;&lt;P&gt;Without the dummy byte reading I2CClock register:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scrprint (4).jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194014i674FB108F1F71C79/image-size/large?v=v2&amp;amp;px=999" role="button" title="scrprint (4).jpg" alt="scrprint (4).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With dummy byte reading the IOConfig register.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scrprint (5).jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194015i59B524C5AF4389A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="scrprint (5).jpg" alt="scrprint (5).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 07:12:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1523854#M2593</guid>
      <dc:creator>idanu357</dc:creator>
      <dc:date>2022-09-18T07:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1523874#M2594</link>
      <description>&lt;P&gt;Hello Idan,&lt;/P&gt;
&lt;P&gt;you are very welcome. And thank you for the scopes. Both look ok to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.What is the "Register data" after the register address, is that the data the sent back from the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.nxp.com/docs/en/data-sheet/SC18IS600.pdf" target="_self" rel="nofollow noopener noreferrer"&gt;SC18IS600&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;
&lt;P&gt;[A] The byte in the "Register data" is the content of the register, which address you enter in the second byte. After the command byte.&lt;/P&gt;
&lt;P&gt;2. What is the Dummy byte ? do I really need it ?&lt;/P&gt;
&lt;P&gt;[A] Yes, you need the Dummy byte. It gives time to SC18IS600 to send the Register data to the MISO line.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_0-1663519529761.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194024i721D25722125DC3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_0-1663519529761.png" alt="JozefKozon_0-1663519529761.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the first scope, you have the Dummy byte.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the second scope, you have actually two dummy bytes and two Data bytes. Each on the MISO line each below one dummy byte.&lt;/P&gt;
&lt;P&gt;Please check the pictures attached.&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>Sun, 18 Sep 2022 17:02:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1523874#M2594</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2022-09-18T17:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1524246#M2596</link>
      <description>&lt;P&gt;Thanks Jozef,&lt;/P&gt;&lt;P&gt;I can see that the&amp;nbsp;&lt;SPAN&gt;SC18IS600&amp;nbsp;is returning the right data, but for some reason the last bit is missing when i read it via the FTDI chip(USB to SPI).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data in the code is different&amp;nbsp;from the scope im getting 0x02 instead&amp;nbsp;of 0x03 or 0x18 instead&amp;nbsp;of 0x19 and its consistent for every&amp;nbsp;byte no matter how many bytes im reading from the SPI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can see any problem in the scopes(?) i will continue to investigate the code or FTDI driver.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 10:40:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1524246#M2596</guid>
      <dc:creator>idanu357</dc:creator>
      <dc:date>2022-09-19T10:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1524286#M2597</link>
      <description>&lt;P&gt;Hello Idan,&lt;/P&gt;
&lt;P&gt;you are very welcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not see anything wrong in the scopes. There must be something incorrect in the code or in the FTDI driver as you mentioned.&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 11:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1524286#M2597</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2022-09-19T11:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1529695#M2606</link>
      <description>&lt;P&gt;Hello Jozef,&lt;/P&gt;&lt;P&gt;Just wanted to update you that apparently the problem was in the FTDI chip that doesn't support SPI mode 1 and mode 3.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ftdichip.com/wp-content/uploads/2020/08/AN_114_FTDI_Hi_Speed_USB_To_SPI_Example.pdf" target="_self"&gt;FTDI Application Note &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all your help, your effort was much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 17:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1529695#M2606</guid>
      <dc:creator>idanu357</dc:creator>
      <dc:date>2022-09-28T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Missing the last bit when read internal registers of the SC18IS600</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1530213#M2607</link>
      <description>&lt;P&gt;Hello Idan,&lt;/P&gt;
&lt;P&gt;you are very welcome and thank you for letting me know. I am glad, that you have found the reason of the issue.&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:33:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Missing-the-last-bit-when-read-internal-registers-of-the/m-p/1530213#M2607</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2022-09-29T07:33:21Z</dc:date>
    </item>
  </channel>
</rss>

