<?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: FXLS8471Q in SPI mode,  reset pin to ground in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752971#M1830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;not using any Matlab Toolbox for Configuring the MCU to talk with fxls8471q, I implemented the code, and checking directly with the fxls8471q using oscilloscope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are the Observations of SPI lines with the Oscilloscope,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOSI&lt;/STRONG&gt; - the data which is transmitted, is observed in Oscilloscope.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCL&lt;/STRONG&gt;&amp;nbsp; - the clock pulses are toggling properly, when the SPI communication is initiated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CS&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;- the Chip select pin goes Low and high when the data is getting transmitted.&lt;/P&gt;&lt;P&gt;The above three lines are working as per the software which is implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MISO&lt;/STRONG&gt;&amp;nbsp;-&amp;nbsp; &lt;STRONG&gt;The MISO line is continuously in floating, the voltage variation is between 3 V to 2.2 V.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I can able to see almost nearrly 8-9 High to Low transistions in the MISO line for 500 micro seconds.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the below snapshot of Oscilloscope image of MISO line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="FXLS8471Q_MISO_LINE.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18484i0A071C7F2DD84690/image-size/large?v=v2&amp;amp;px=999" role="button" title="FXLS8471Q_MISO_LINE.jpg" alt="FXLS8471Q_MISO_LINE.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know any issues with the configuration of SPI, which leads to this behavior of&amp;nbsp; MISO pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Francis B K&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 13:02:27 GMT</pubDate>
    <dc:creator>francisbk</dc:creator>
    <dc:date>2018-02-22T13:02:27Z</dc:date>
    <item>
      <title>FXLS8471Q in SPI mode,  reset pin to ground</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752969#M1828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, I am trying to connect fxls8471q accelerometer in SPI mode . But I am not able to read the device ID through SPI.&lt;/P&gt;&lt;P&gt;In software, I am configuring the MOSI line as Open Drain for floating at the first sequence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to read the who am I register using the following commands as&lt;/P&gt;&lt;P&gt;sending data bytes in SPI 0x0D, 0X00,0X00&lt;/P&gt;&lt;P&gt;Receiving data bytes as 0x00,0x00,0x00&lt;/P&gt;&lt;P&gt;SPI receive interrupt configured as receive timeout.&lt;/P&gt;&lt;P&gt;I need some help regarding the configuration of the FXLS8471q in SPI mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some tags conveying that with&lt;/P&gt;&lt;P&gt;reset high&lt;/P&gt;&lt;P&gt;make MOSI as floating&amp;nbsp;&lt;/P&gt;&lt;P&gt;reset low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in our design we connected reset pin to ground.&lt;/P&gt;&lt;P&gt;Please check the configuration of pins below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;STRONG&gt;pin configure&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;VDDIO(pin-1) and VDD(pin-14) -&amp;nbsp; 3.3V&lt;/LI&gt;&lt;LI&gt;BYP(pin-2)-&amp;nbsp; connected as ground using 0.1uf capacitor.&lt;/LI&gt;&lt;LI&gt;CRST/NC(pin-8)- connected as ground using 0.1uf capacitor.&lt;/LI&gt;&lt;LI&gt;RES(pin-3) and RES1(pin-13)- connected to ground.&lt;/LI&gt;&lt;LI&gt;GND(pin-5) and GND(pin-12)- connected to ground.&lt;/LI&gt;&lt;LI&gt;CS(pin-10)- chip select.&lt;/LI&gt;&lt;LI&gt;MISO(pin-7)- Master In Slave Out.&lt;/LI&gt;&lt;LI&gt;MOSI(pin-6)- Master out slave In.&lt;/LI&gt;&lt;LI&gt;SCLK(pin-4)- select as clock.&lt;/LI&gt;&lt;LI&gt;INT1(pin-11)- interrupt 1.&lt;/LI&gt;&lt;LI&gt;INT2(pin-9)- interrupt 2.&lt;/LI&gt;&lt;LI&gt;NC(pin-15)&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possibilities of configuring fxls8471q in SPI mode without the usage of reset pin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 12:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752969#M1828</guid>
      <dc:creator>francisbk</dc:creator>
      <dc:date>2018-02-19T12:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: FXLS8471Q in SPI mode,  reset pin to ground</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752970#M1829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell us what Matlab toolbox are you using for configuring the MCU peripheral to talk with&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;fxls8471q?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Reading the datasheet&amp;nbsp;&lt;A class="link-titled" href="https://cache.nxp.com/docs/en/data-sheet/FXLS8471Q.pdf" title="https://cache.nxp.com/docs/en/data-sheet/FXLS8471Q.pdf"&gt;https://cache.nxp.com/docs/en/data-sheet/FXLS8471Q.pdf&lt;/A&gt;&amp;nbsp;it seems that the RST is not requested for a successful communication via SPI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards,&lt;BR /&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752970#M1829</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-02-21T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: FXLS8471Q in SPI mode,  reset pin to ground</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752971#M1830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;not using any Matlab Toolbox for Configuring the MCU to talk with fxls8471q, I implemented the code, and checking directly with the fxls8471q using oscilloscope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are the Observations of SPI lines with the Oscilloscope,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOSI&lt;/STRONG&gt; - the data which is transmitted, is observed in Oscilloscope.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCL&lt;/STRONG&gt;&amp;nbsp; - the clock pulses are toggling properly, when the SPI communication is initiated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CS&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;- the Chip select pin goes Low and high when the data is getting transmitted.&lt;/P&gt;&lt;P&gt;The above three lines are working as per the software which is implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MISO&lt;/STRONG&gt;&amp;nbsp;-&amp;nbsp; &lt;STRONG&gt;The MISO line is continuously in floating, the voltage variation is between 3 V to 2.2 V.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I can able to see almost nearrly 8-9 High to Low transistions in the MISO line for 500 micro seconds.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the below snapshot of Oscilloscope image of MISO line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="FXLS8471Q_MISO_LINE.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18484i0A071C7F2DD84690/image-size/large?v=v2&amp;amp;px=999" role="button" title="FXLS8471Q_MISO_LINE.jpg" alt="FXLS8471Q_MISO_LINE.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know any issues with the configuration of SPI, which leads to this behavior of&amp;nbsp; MISO pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Francis B K&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 13:02:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752971#M1830</guid>
      <dc:creator>francisbk</dc:creator>
      <dc:date>2018-02-22T13:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: FXLS8471Q in SPI mode,  reset pin to ground</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752972#M1831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/francisbk"&gt;francisbk&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I don't have an fxls8471q for now, so I can't replicate your problem. But I took a look at what you described and you are right - after sending 0x0D,0x00,0x00 (requesting a read from WHOAM_I register) you should be getting something on MISO (like 0xFF,0xFF,0xNN - value of that register). This might be a problem with the mode auto detection (i2c/spi).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21737i18E8C1F358FC2A55/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you know, when you want to use SPI interface mode, you must ensure that SA0/MISO pin is floating and no other device drives this pin during the 1ms period after a hard/soft reset or powerup event. But there is one more catch - according to the errata found&amp;nbsp;&lt;A href="http://cache.freescale.com/files/sensors/doc/data_sheet/FXLS8471Q.pdf"&gt;here&lt;/A&gt;&amp;nbsp;, following a soft-reset command certain parameters do not get updated correctly from NVM, causing inaccurate data output and incorrect WHO_AM_I register content. This is a known issue with the SPI mode (I2C should work properly). Unfortunately for you, the workaround for this is avoiding using a soft reset, and using a hardware reset instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to soft-reset it by setting CTRL_REG2[rst] = 1, where rst is the 6th bit, but if this does not do the trick, you might have to change something in your setup so you can issue a hardware reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 13:56:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FXLS8471Q-in-SPI-mode-reset-pin-to-ground/m-p/752972#M1831</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2018-02-26T13:56:10Z</dc:date>
    </item>
  </channel>
</rss>

