<?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>Kinetis MicrocontrollersのトピックRe: FRDM-K22F KSDK+PEx I2C example</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436492#M25422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open drain pin feature is possible to set in PinSetings component(tab "Functional properties").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stepan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 07:30:52 GMT</pubDate>
    <dc:creator>stepan_c</dc:creator>
    <dc:date>2015-04-27T07:30:52Z</dc:date>
    <item>
      <title>FRDM-K22F KSDK+PEx I2C example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436491#M25421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;When using KDS2.0 + KSDK1.1.0 + PEx, fond something wrong when using the fsl_i2c component. The I2C master cannot get the ACK from slave.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;The PE initial code don’t set the SCL,SDA pins to become open-drain. That is why the slave cannot pull the SDA low as a ACK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;have to add followings to set SCL,SDA as open-drain.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; PORT_HAL_SetOpenDrainCmd(PORTB_BASE,2u,true);&lt;/P&gt;&lt;P&gt; PORT_HAL_SetOpenDrainCmd(PORTB_BASE,3u,true);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;Attached is an I2C example which read the “who am I register(0x0D)” of the on-board sensor FXOS8700.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;Kent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337527"&gt;k22_i2c_test.7z.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 06:24:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436491#M25421</guid>
      <dc:creator>kentlin</dc:creator>
      <dc:date>2015-04-23T06:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K22F KSDK+PEx I2C example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436492#M25422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open drain pin feature is possible to set in PinSetings component(tab "Functional properties").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stepan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 07:30:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436492#M25422</guid>
      <dc:creator>stepan_c</dc:creator>
      <dc:date>2015-04-27T07:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K22F KSDK+PEx I2C example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436493#M25423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:05:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436493#M25423</guid>
      <dc:creator>kentlin</dc:creator>
      <dc:date>2015-04-27T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K22F KSDK+PEx I2C example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436494#M25424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, from what I can tell, this doesn't work in KDS 3 / KSDK 1.2.&amp;nbsp; I just ran into this exact problem, so I went to Function Properties and made the changes there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1432i6782FD988AF4B00C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After having PEx regenerate the code, I went to pin_init.c, and the pins were not set to Open Drain.&amp;nbsp; I then pasted in Kuan's code and then my I2C device worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I'm doing something wrong?&amp;nbsp; I just tested this in KDS 2 / KSDK 1.1, and it doesn't work there, either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 05:09:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K22F-KSDK-PEx-I2C-example/m-p/436494#M25424</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-05-14T05:09:34Z</dc:date>
    </item>
  </channel>
</rss>

