<?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>LPC Microcontrollers中的主题 Re: LPC55S69 Flexcomm I2C pin priority</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1289796#M45370</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187543" target="_self" aria-label="View Profile of Henrico"&gt;&lt;SPAN class=""&gt;Henrico&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I haven't I2C sensor to connect with Flexcomm1, so I test the Flexcomm4.&lt;/P&gt;
&lt;P&gt;If there are two(more than one) SCL signal pins enabled, the I2C can't work,&lt;/P&gt;
&lt;P&gt;it seems this is the hardware limitation, so please check whether can disable one between the two pins:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;72 (FC1_RTS_SCL_SSEL1) and 93 (FC1_TXD_SCL_MISO_WS)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or change one pin to another that doesn't include SCL function.(I help you checked it , it seems doesn't have suitable one).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If no, I think you only can use another Flexcomm as I2C function.&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;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 09:21:15 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2021-06-09T09:21:15Z</dc:date>
    <item>
      <title>LPC55S69 Flexcomm I2C pin priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1287550#M45292</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm currently developing a modular system using the available flexcomms on the LPC55S69. I am trying to develop a library in which the user can pick a flexcomm and select a protocol, e.g. I2C, I2S, SPI or UART. To configure the pinout I am using MCUExpresso IDE to configure each flexcomm to use 5 unique pins that are capable of running each protocol. For example, this is the configuration for FLEXCOMM1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2021-06-04 14-22-00.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146287i89BE7EE34205B27D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot from 2021-06-04 14-22-00.png" alt="Screenshot from 2021-06-04 14-22-00.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The protocol is selected in the application code and is determined by the sensor that is connected.&lt;/P&gt;&lt;P&gt;I've tested all interfaces and I2C is the only one that is giving me problems. I think the issue is that there are 2 pins configured for SDA (71&amp;amp;40) and 2 for SCL (72&amp;amp;93) in the same flexcomm and it looks like these pins interfere with each other when both enabled and I2C is selected as protocol. The following line of code is used to initialize a flexcomm to use I2C:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;- (&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;FLEXCOMM_Init&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;base&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;FLEXCOMM_PERIPH_I2C&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;It works perfectly after disabling one I2C pair in the pinout configuration, but some other protocols are then also disabled.&amp;nbsp;The goal is not to have to change the pinout with every new sensor that is connected.&lt;/P&gt;&lt;P&gt;Does one of the I2C pins have priority over the other and is it possible to select which pins have priority? Or is it simply not possible to have FCX_CTS_SDA_SSEL0 + FCX_RXD_SDA_MOSI_DATA and FCX_RTS_SCL_SSEL1 + FCX_TXD_SCL_MISO_WS enabled on the same flexcomm and use I2C?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 13:05:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1287550#M45292</guid>
      <dc:creator>Henrico</dc:creator>
      <dc:date>2021-06-04T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flexcomm I2C pin priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1288026#M45319</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187543" target="_self" aria-label="View Profile of Henrico"&gt;&lt;SPAN class=""&gt;Henrico&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Could you please share the project that can reproduce this issue,&lt;/P&gt;
&lt;P&gt;just includes the pin config and I2C code is enough, I will check it on my side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 07:31:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1288026#M45319</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-06-07T07:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flexcomm I2C pin priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1288211#M45325</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have created a new project using MCUExpresso to reproduce this issue. I have verified the issue using an LPC55S69 development board and reading the device ID from the MAX11301 for testing I2C. However, any other I2C sensor should work. Pin 71, 72, 40, 10 and 93 are configured for FlexComm 1.&lt;/P&gt;&lt;P&gt;The following steps can be used to reproduce the issue:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connect an I2C sensor to pin 9 (SDA) and 11 (SCL) on P19 of the LPC55S69 development board&lt;/LI&gt;&lt;LI&gt;Configure the slaveaddress and a read register in main.c of the project&lt;/LI&gt;&lt;LI&gt;Debug the program and check the console for received messages&lt;UL&gt;&lt;LI&gt;Since both SDA pins, 71 (FC1_CTS_SDA_SSEL) and 40 (FC1_RXD_SDA_MOSI_DATA), and both SCL pins, 72 (FC1_RTS_SCL_SSEL1) and 93 (FC1_TXD_SCL_MISO_WS), are enabled, it doesnt work.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Disable pin 40 and 93 in the pin configuration tool&lt;/LI&gt;&lt;LI&gt;Debug the program again&lt;UL&gt;&lt;LI&gt;This time it should work as expected&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The problem is that I need all pins to be configured as Flexcomm, since the protocol that is used depends on the sensor that will be connected.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 10:19:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1288211#M45325</guid>
      <dc:creator>Henrico</dc:creator>
      <dc:date>2021-06-07T10:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Flexcomm I2C pin priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1289796#M45370</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187543" target="_self" aria-label="View Profile of Henrico"&gt;&lt;SPAN class=""&gt;Henrico&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I haven't I2C sensor to connect with Flexcomm1, so I test the Flexcomm4.&lt;/P&gt;
&lt;P&gt;If there are two(more than one) SCL signal pins enabled, the I2C can't work,&lt;/P&gt;
&lt;P&gt;it seems this is the hardware limitation, so please check whether can disable one between the two pins:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;72 (FC1_RTS_SCL_SSEL1) and 93 (FC1_TXD_SCL_MISO_WS)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or change one pin to another that doesn't include SCL function.(I help you checked it , it seems doesn't have suitable one).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If no, I think you only can use another Flexcomm as I2C function.&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;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 09:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Flexcomm-I2C-pin-priority/m-p/1289796#M45370</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-06-09T09:21:15Z</dc:date>
    </item>
  </channel>
</rss>

