<?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: PCA9502 SPI not working in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/PCA9502-SPI-not-working/m-p/1478874#M14439</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are only five registers&amp;nbsp;in PCA9502:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="截圖 2022-06-23 16.08.36.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184358i08D31B7A56F358F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="截圖 2022-06-23 16.08.36.png" alt="截圖 2022-06-23 16.08.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I write "0x00" into these registers, and always read out with the same value "0xFF".&lt;/P&gt;&lt;P&gt;Additionally, I think my problem is similar to &lt;A href="https://community.nxp.com/t5/Other-NXP-Products/PCA9502-read-back-gpio-using-spi-not-working/m-p/726918" target="_self"&gt;this&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 08:16:58 GMT</pubDate>
    <dc:creator>henry_wusa</dc:creator>
    <dc:date>2022-06-23T08:16:58Z</dc:date>
    <item>
      <title>PCA9502 SPI not working</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/PCA9502-SPI-not-working/m-p/1478663#M14431</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using PCA9502 and want to use its SPI interface to read 8 GPIO pins.&lt;/P&gt;&lt;P&gt;First, I hardware reset PCA9502 and configure it by writing the values into internal registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="50%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Register&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Registers Address&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;IODir&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x0A&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;IOIntEna&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x0C&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;IOControl&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x0E&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x08&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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="截圖 2022-06-23 11.12.21.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184329i58B4ED2FB493A4F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="截圖 2022-06-23 11.12.21.png" alt="截圖 2022-06-23 11.12.21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Using the SPI interface, the actual MOSI address needs to be shifted 3 digits and they will be like:&lt;/P&gt;&lt;TABLE border="1" width="50%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Register&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Address&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;IODir&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x50&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;IOIntEna&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x60&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;IOControl&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x70&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0x08&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I read the GPIO pins by reading the internal register 0x0B and the actual MOSI address will be 0xD8. However, after I send 0xD8 into PCA9502, the logic analyzer shows that PCA9502 output is always High no matter what the GIPO pins are (as below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PCA_SPI.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184330iDF26E0C5F6AB1063/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PCA_SPI.png" alt="PCA_SPI.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 03:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/PCA9502-SPI-not-working/m-p/1478663#M14431</guid>
      <dc:creator>henry_wusa</dc:creator>
      <dc:date>2022-06-23T03:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: PCA9502 SPI not working</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/PCA9502-SPI-not-working/m-p/1478743#M14434</link>
      <description>&lt;P&gt;Except this internal registers write/read abnormal, can other registers write/read normally?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 06:09:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/PCA9502-SPI-not-working/m-p/1478743#M14434</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2022-06-23T06:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: PCA9502 SPI not working</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/PCA9502-SPI-not-working/m-p/1478874#M14439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are only five registers&amp;nbsp;in PCA9502:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="截圖 2022-06-23 16.08.36.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184358i08D31B7A56F358F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="截圖 2022-06-23 16.08.36.png" alt="截圖 2022-06-23 16.08.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I write "0x00" into these registers, and always read out with the same value "0xFF".&lt;/P&gt;&lt;P&gt;Additionally, I think my problem is similar to &lt;A href="https://community.nxp.com/t5/Other-NXP-Products/PCA9502-read-back-gpio-using-spi-not-working/m-p/726918" target="_self"&gt;this&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 08:16:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/PCA9502-SPI-not-working/m-p/1478874#M14439</guid>
      <dc:creator>henry_wusa</dc:creator>
      <dc:date>2022-06-23T08:16:58Z</dc:date>
    </item>
  </channel>
</rss>

