<?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>MQX Software SolutionsのトピックExample code for PCA9674PW IO expander</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Example-code-for-PCA9674PW-IO-expander/m-p/1574739#M18774</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I'm trying to interface&amp;nbsp;PCA9674PW&amp;nbsp; with IMX board, but still I'm unable to control the GPIO pins, can anyone provide me example code&amp;nbsp; to control this&amp;nbsp;PCA9674PW IO expander?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the sequence I followed to control output GPIO pins.&lt;/P&gt;&lt;P&gt;1. configure GPIO pins as output, by sending&amp;nbsp; 0xFF to 0x04&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reg: 0x04&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value: 0xFF&lt;/P&gt;&lt;P&gt;2. Then written 0xFF to Reg 0x05 to set all pins HIGH&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reg: 0x05&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value: 0xFF&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any problem with above sequence?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 08:08:14 GMT</pubDate>
    <dc:creator>Nolan_Maverick</dc:creator>
    <dc:date>2022-12-27T08:08:14Z</dc:date>
    <item>
      <title>Example code for PCA9674PW IO expander</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Example-code-for-PCA9674PW-IO-expander/m-p/1574739#M18774</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I'm trying to interface&amp;nbsp;PCA9674PW&amp;nbsp; with IMX board, but still I'm unable to control the GPIO pins, can anyone provide me example code&amp;nbsp; to control this&amp;nbsp;PCA9674PW IO expander?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the sequence I followed to control output GPIO pins.&lt;/P&gt;&lt;P&gt;1. configure GPIO pins as output, by sending&amp;nbsp; 0xFF to 0x04&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reg: 0x04&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value: 0xFF&lt;/P&gt;&lt;P&gt;2. Then written 0xFF to Reg 0x05 to set all pins HIGH&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reg: 0x05&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value: 0xFF&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any problem with above sequence?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 08:08:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Example-code-for-PCA9674PW-IO-expander/m-p/1574739#M18774</guid>
      <dc:creator>Nolan_Maverick</dc:creator>
      <dc:date>2022-12-27T08:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for PCA9674PW IO expander</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Example-code-for-PCA9674PW-IO-expander/m-p/1574994#M18776</link>
      <description>&lt;P&gt;Hello Nolan,&lt;/P&gt;
&lt;P&gt;I hope all is great with you. Thank you for using the NXP communities.&lt;/P&gt;
&lt;P&gt;Unfortunately we do not have any example code for such device.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to address the device? I mean, what is the I2C address selected?&lt;/P&gt;
&lt;P&gt;Note that there is only one register to control four possibilities of the port pin: Input HIGH, input LOW, output HIGH, or output LOW. The writing sequence is shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diazmarin09_0-1672168415437.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205556i3DAAA6DCF84D82BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="diazmarin09_0-1672168415437.png" alt="diazmarin09_0-1672168415437.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, in order to configure the pins as outputs HIGH, you should send the following sequence:&lt;/P&gt;
&lt;P&gt;&amp;lt;S&amp;gt; &amp;lt;slave address + 0&amp;gt; &amp;lt;0xFF&amp;gt; &amp;lt;P&amp;gt;&lt;/P&gt;
&lt;P&gt;I hope this information helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 19:13:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Example-code-for-PCA9674PW-IO-expander/m-p/1574994#M18776</guid>
      <dc:creator>diazmarin09</dc:creator>
      <dc:date>2022-12-27T19:13:52Z</dc:date>
    </item>
  </channel>
</rss>

