<?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: Interface the TCA9535 with LPC55S16 Microcontroller in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1655440#M52672</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you use the polling mode, you have to write register and develop the code yourself.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 07:36:13 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2023-05-23T07:36:13Z</dc:date>
    <item>
      <title>Interface the TCA9535 with LPC55S16 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654144#M52611</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was using TCA9535(I/O Expander) interface with LPC55S16 microcontroller. We use the I2C communication to communicate with I/O Expander. Set the I2C with given device address,register address and 16 bit data passes through TCA9535.But the I/O Expander can't response with given configuration.&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 12:09:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654144#M52611</guid>
      <dc:creator>VIGNESH_BABU</dc:creator>
      <dc:date>2023-05-20T12:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Interface the TCA9535 with LPC55S16 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654283#M52618</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have searched on Google, the TCA9535 is TI product, this is the website of TCA9535:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ti.com/lit/ds/symlink/tca9535.pdf?ts=1684719588873&amp;amp;ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTCA9535%253Futm_source%253Dgoogle%2526utm_medium%253Dcpc%2526utm_campaign%253Dasc-null-null-gpn_en-cpc-pf-google-tw%2526utm_content%253Dtca9535%2526ds_k%253DTCA9535%2526dcm%253Dyes%2526gclid%253DEAIaIQobChMIou7VluWH_wIV-JhmAh1SEgnuEAAYASAAEgI0__D_BwE%2526gclsrc%253Daw.ds" target="_blank"&gt;https://www.ti.com/lit/ds/symlink/tca9535.pdf?ts=1684719588873&amp;amp;ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTCA9535%253Futm_source%253Dgoogle%2526utm_medium%253Dcpc%2526utm_campaign%253Dasc-null-null-gpn_en-cpc-pf-google-tw%2526utm_content%253Dtca9535%2526ds_k%253DTCA9535%2526dcm%253Dyes%2526gclid%253DEAIaIQobChMIou7VluWH_wIV-JhmAh1SEgnuEAAYASAAEgI0__D_BwE%2526gclsrc%253Daw.ds&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The I2C of LPC55S16 is the master, the I2C of the TCA9535 is slave.&lt;/P&gt;
&lt;P&gt;The 7 bits I2C slave address is dependent on the A0/A1/A2 pins connection, if the A0/A1/A2 pin are all connected to GND, the I2C address will be 0x20.&lt;/P&gt;
&lt;P&gt;If you want to set/clear the Port logic of TCA9535, you have to set the corresponding bit as 0 in configuration register, then write the port logic.&lt;/P&gt;
&lt;P&gt;This is the sequence of writing configuration reg:&lt;/P&gt;
&lt;P&gt;I2C slave address + configuration register address + configuration register data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SDK example, there is I2C example.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1684722413108.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/224093i481CFCD735CDFB75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1684722413108.png" alt="xiangjun_rong_0-1684722413108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#define #I2C_MASTER_SLAVE_ADDR_7BI 0x20&lt;/P&gt;
&lt;P&gt;#define #I2C_DATA_LENGT 1&lt;/P&gt;
&lt;P&gt;deviceAddress=0x06; //configuration reg&lt;/P&gt;
&lt;P&gt;g_master_txBuff[0]=0;&lt;/P&gt;
&lt;P&gt;/* subAddress = 0x01, data = g_master_txBuff - write to slave.&lt;BR /&gt;start + slaveaddress(w) + subAddress + length of data buffer + data buffer + stop*/&lt;BR /&gt;uint8_t deviceAddress = 0x01U;&lt;BR /&gt;masterXfer.slaveAddress = I2C_MASTER_SLAVE_ADDR_7BIT;&lt;BR /&gt;masterXfer.direction = kI2C_Write;&lt;BR /&gt;masterXfer.subaddress = (uint32_t)deviceAddress;&lt;BR /&gt;masterXfer.subaddressSize = 1;&lt;BR /&gt;masterXfer.data = g_master_txBuff;&lt;BR /&gt;masterXfer.dataSize = I2C_DATA_LENGTH;&lt;BR /&gt;masterXfer.flags = kI2C_TransferDefaultFlag;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 02:37:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654283#M52618</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-05-22T02:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Interface the TCA9535 with LPC55S16 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654676#M52638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;What if we try in the I2C polling method?.Because I was actually try in the I2C polling method.Where I was got only slave address but not got a register address and the data.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 09:34:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654676#M52638</guid>
      <dc:creator>VIGNESH_BABU</dc:creator>
      <dc:date>2023-05-22T09:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Interface the TCA9535 with LPC55S16 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654748#M52653</link>
      <description>&lt;P&gt;Thank you for the Code flow &lt;A href="mailto:Mr.@xiangjun_rong" target="_blank"&gt;Mr.@xiangjun_rong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 10:37:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654748#M52653</guid>
      <dc:creator>VIGNESH_BABU</dc:creator>
      <dc:date>2023-05-22T10:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Interface the TCA9535 with LPC55S16 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654769#M52654</link>
      <description>&lt;P&gt;Use a logic analyzer or scope, and check if the slave responds with an ACK to the address.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 11:23:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1654769#M52654</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2023-05-22T11:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Interface the TCA9535 with LPC55S16 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1655440#M52672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you use the polling mode, you have to write register and develop the code yourself.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:36:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interface-the-TCA9535-with-LPC55S16-Microcontroller/m-p/1655440#M52672</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-05-23T07:36:13Z</dc:date>
    </item>
  </channel>
</rss>

