<?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: I2C two bytes reading issue in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540037#M6952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Idris,&lt;/P&gt;&lt;P&gt;Could you please also expand the last picture as the others .&lt;/P&gt;&lt;P&gt;It hardly know the data of the last one , while the last one is the key one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2016 10:05:35 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-08-22T10:05:35Z</dc:date>
    <item>
      <title>I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540031#M6946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are trying for I2C interface with kinetis KL03 using KDS3.0.0 + PE&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying using "fsl_I2C" component in PE. in this&amp;nbsp; &lt;STRONG&gt;I2C_DRV_MasterReceiveData(); &lt;/STRONG&gt;is used. &lt;BR /&gt;writing in parameters of this function for "number of data to read" as count=2&lt;BR /&gt;expected output is &amp;gt;&amp;gt; Before: 0 0&amp;nbsp; After: C1 E0&lt;BR /&gt;we are getting as &amp;gt;&amp;gt; Before: 0 0 After: 1 FF &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;writing in parameters of this function for "number of data to read" as count=1&lt;/P&gt;&lt;P&gt;expected output is &amp;gt;&amp;gt; Before: 0 0&amp;nbsp; After: C1 0&lt;BR /&gt;we are getting as &amp;gt;&amp;gt; Before: 0 0 After: C1 0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Master: KL03 &lt;BR /&gt;Slave address: 0x18&lt;BR /&gt;Data register: 0x05&lt;BR /&gt;Number of bytes to read: 2&lt;/P&gt;&lt;P&gt;Clock: Internal clock used (Externally 32.768Khz crystal is not connected)&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while reading only one byte from slave is giving output as expected, but no luck with reading two bytes from slave.&lt;SPAN aria-label="Sad" class="emoticon_sad emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;projet file is attached here, please guide me how to resolve this problem of reading 2 bytes data from slave? Is there any correction in my parameter passing to function?&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idris&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-339174"&gt;I2C_2bytesReadingIssue.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 06:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540031#M6946</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-08-18T06:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540032#M6947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked&amp;nbsp; your project , there is no problem&amp;nbsp; about the usage of &lt;STRONG&gt;I2C_DRV_MasterReceiveData(); .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What about the slave , which chip ?&lt;/P&gt;&lt;P&gt;I recommend you first check the waveform on I2C bus .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 06:38:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540032#M6947</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-19T06:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540033#M6948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;BR /&gt;We are using MCP9805 as slave chip.&lt;/P&gt;&lt;P&gt;waveform of KL03 interfaced with MCP9805 is as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3645i80516640C66A1076/image-size/large?v=v2&amp;amp;px=999" title="KL03_I2C_read.bmp" alt="KL03_I2C_read.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to confirm that our slave device is OK or not we checked it with arduino. It is working fine,&lt;BR /&gt;waveform of arduino interfaced with MCP9805 is as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3822iB6DE31C213C8CDE7/image-size/large?v=v2&amp;amp;px=999" title="Arduino_I2C_read.bmp" alt="Arduino_I2C_read.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 12:36:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540033#M6948</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-08-19T12:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540034#M6949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about the waveform ? Read one byte or two ?&lt;/P&gt;&lt;P&gt;While from the datasheet of mcp9805, when read one byte ,it should show four byte :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1718i770A81E27C839147/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when read two byte , it should show five byte :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1719iF07E1258FBEB05A0/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what about the wave ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 06:51:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540034#M6949</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-22T06:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540035#M6950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;BR /&gt;I will attach here the details of waveform.&lt;/P&gt;&lt;P&gt;Reading 1byte from 9805 gives&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1873i2E36E52E8B67E12F/image-size/large?v=v2&amp;amp;px=999" title="1BYteFull 22082016.bmp" alt="1BYteFull 22082016.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give the more snaps byte by byte&lt;BR /&gt;&amp;gt;&amp;gt;Reading 1byte from 9805 gives 1st byte as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1933i7417573B8F572C61/image-size/large?v=v2&amp;amp;px=999" title="1_1stbyte.bmp" alt="1_1stbyte.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Reading 1byte from 9805 gives 2nd byte as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1955i650CA72F806F5284/image-size/large?v=v2&amp;amp;px=999" title="1_2ndbyte.bmp" alt="1_2ndbyte.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Reading 1byte from 9805 gives 3rd byte as &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1993i28091C5752670EFD/image-size/large?v=v2&amp;amp;px=999" title="1_3rdbyte.bmp" alt="1_3rdbyte.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Reading 1byte from 9805 gives 4th byte as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2060iAF5756E9052A11F3/image-size/large?v=v2&amp;amp;px=999" title="1_4thbyte.bmp" alt="1_4thbyte.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 08:07:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540035#M6950</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-08-22T08:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540036#M6951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reading 2bytes from 9805 gives&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2066iBF6A07B18CC4FFA1/image-size/large?v=v2&amp;amp;px=999" title="2ByteFull22082016.bmp" alt="2ByteFull22082016.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Reading 2bytes from 9805 gives 1st byte as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2143i3D58E08AF62DFA4E/image-size/large?v=v2&amp;amp;px=999" title="2_1byte.bmp" alt="2_1byte.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Reading 2bytes from 9805 gives 2nd byte as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2172iDDFCED0D5730A575/image-size/large?v=v2&amp;amp;px=999" title="2_2ndbyte.bmp" alt="2_2ndbyte.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Reading 2bytes from 9805 gives 3rd byte as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2294i2729B87638819439/image-size/large?v=v2&amp;amp;px=999" title="2_3rdbyte.bmp" alt="2_3rdbyte.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Reading 2bytes from 9805 gives 4th and 5th byte as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2475i74F9009D88D0F2AF/image-size/large?v=v2&amp;amp;px=999" title="2_45thbyte (2).bmp" alt="2_45thbyte (2).bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for lengthy post,&lt;BR /&gt;I thought it will help you to guide me,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For 1 byte reading the data what we are seeing on waveform as we are getting on console output are perfect.&lt;BR /&gt;but for reading 2 bytes what we are seeing on waveform (Address+W,&amp;nbsp; Register pointer, Address+R, MSB, LSB) in that &lt;STRONG&gt;the data which is on 4th byte (MSB) and 5th byte (LSB) we are not getting them on console output.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 08:15:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540036#M6951</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-08-22T08:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540037#M6952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Idris,&lt;/P&gt;&lt;P&gt;Could you please also expand the last picture as the others .&lt;/P&gt;&lt;P&gt;It hardly know the data of the last one , while the last one is the key one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 10:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540037#M6952</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-22T10:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540038#M6953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;BR /&gt;I attached here the waveform of 4th and 5th byte while reading 2 bytes from MCP9805.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2951iEA57491176A547A8/image-size/large?v=v2&amp;amp;px=999" title="2_45thbyte (3).bmp" alt="2_45thbyte (3).bmp" /&gt;&lt;/span&gt;&lt;BR /&gt;But as the MCP9805 is digital temperature sensor and these two bytes are for determining the ambient temperature, so it's data will change as ambient temperature changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 10:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540038#M6953</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-08-22T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540039#M6954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last picture not only just the waveform of 4th and 5th byte ,from the &lt;/P&gt;&lt;P&gt;datasheet, it only includes MSb Data and&amp;nbsp; LSb Data :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2694iD6046B38B54CB8F9/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;from the screenshot of your picture , i think the last part is the MSb and LSb Data :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2726i7788044F25D65420/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you can compare the two picture , the two data is&amp;nbsp; 1 FF&amp;nbsp; .&lt;/P&gt;&lt;P&gt;So the master(kl03) show is right data , there is no wrong about the kl03 code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it hleps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 02:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540039#M6954</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-23T02:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540040#M6955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;BR /&gt;I don't think 0x01FF is the right data which is expected,.&lt;/P&gt;&lt;P&gt;To elaborate my view I'll write few points here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;POINT-1: We checked on Arduino with MCP9805 it is showing 0xC1E0 as two bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;POINT-2: As per datasheet if we are reading two bytes then &lt;STRONG&gt;there should be only 2 bytes &lt;/STRONG&gt;after 3rd byte (Address+R) then NAK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3596i03390FCE155BC040/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but as observed on I2C bus &lt;STRONG&gt;we are getting 4bytes &lt;/STRONG&gt;after 3rd byte (Address+R) then NAK&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3775iC8104FFC61C42FA3/image-size/large?v=v2&amp;amp;px=999" title="4th_5thbyte.bmp" alt="4th_5thbyte.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;POINT-3: I can say that 1 FF is the appended data to our expected data, because the temperature data is changing we are unable to say that in waveform which is our expected data, &lt;BR /&gt;so I just tried reading the Manufacturing ID and device ID registers&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3899i91B71EA8E9F34083/image-size/large?v=v2&amp;amp;px=999" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;While reading 2 bytes from register 0x06 shows as&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4031iB9316648518639FA/image-size/large?v=v2&amp;amp;px=999" title="device_Register 0x54.bmp" alt="device_Register 0x54.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so green colored is 0x0054 is as expected and red colored 0x01FF is appended,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;While reading 2 bytes from register 0x07 shows as&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4112iA24AC4A3108B99E3/image-size/large?v=v2&amp;amp;px=999" title="revision Reg_23082016.bmp" alt="revision Reg_23082016.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so green colored is 0x0000 is as expected and red colored 0x01FF is appended,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So When I am trying to read two bytes from register why I am getting 4 bytes on I2C bus? :smileyconfused:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;POINT-4: For exploring more I tried for reading 3 bytes from register 0x06 .instead of showing 3 bytes it was showing 6 bytes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4159i50D8B35678FF4CF1/image-size/large?v=v2&amp;amp;px=999" title="id3byte23082016.bmp" alt="id3byte23082016.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;after expanding&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4235i785FFCC5CDC03C5C/image-size/large?v=v2&amp;amp;px=999" title="id3byte_extended_23082016.bmp" alt="id3byte_extended_23082016.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so first 2bytes 0x0054 is as expected and red colored 0x01FF 0xFFFF is appended,&lt;/P&gt;&lt;P&gt;and for this 3bytes reading I was suspecting I'll get FF FF on console for printing buffer[0] and buffer[1] but I got 1 FF. :smileyshocked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 07:42:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540040#M6955</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-08-23T07:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540041#M6956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Syed,&lt;/P&gt;&lt;P&gt;Thank for your explanation , it&amp;nbsp; very cleay !&lt;/P&gt;&lt;P&gt;The reason of slave send more than two bytes is after it send 0x0045 , the master&lt;/P&gt;&lt;P&gt;not send NACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I&amp;nbsp; check the KSDK i2c driver code today , i think maybe there is a bug in the code.&lt;/P&gt;&lt;P&gt;While i don't sure . After&amp;nbsp; slave send two bytes (for example the count =2), master should send NACK.&lt;/P&gt;&lt;P&gt;While from the waveform , it send ACK . So&amp;nbsp; please set breakpoint on the interrupt function , check &lt;/P&gt;&lt;P&gt;the first received data , then&amp;nbsp; step by step to run , check whether it have issue or bug .&lt;/P&gt;&lt;P&gt;In the function of&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt; void I2C_DRV_MasterIRQHandler(uint32_t instance):&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2729iB3E1632ECBA17B8C/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Another method is use the latest version of KDSK v2.0 , it fixed the bugs which ksdk1.3 have .&lt;/P&gt;&lt;P&gt;You can see the ksdk1.3 really have some issue :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/428311"&gt;Strange behaviour in i2c driver (KSDK 1.3.0)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/379337"&gt;I2C+KSDK+PE+Interrupt Problem&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the download and use of KSDK v2.0 , please refer to here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329662"&gt;https://community.nxp.com/docs/DOC-329662&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it heps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 11:02:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540041#M6956</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-24T11:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540042#M6957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Does KSDK2.0 support PE?&lt;/P&gt;&lt;P&gt;I remember somewhere I read that KSDK2.0 is not supported for PE, is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 12:48:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540042#M6957</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-08-24T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540043#M6958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello syed, &lt;/P&gt;&lt;P&gt;No, KSDK doesn't support PE.&lt;/P&gt;&lt;P&gt;If you need PE, we only can continue find the problme on KSDK 1.3 .&lt;/P&gt;&lt;P&gt;And one hand you debug step by step to check i mentioned last time ,&lt;/P&gt;&lt;P&gt;on other hand , i find another chip to check it , i will reply you .ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 10:36:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540043#M6958</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-25T10:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540044#M6959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have your problem be solved ?&lt;/P&gt;&lt;P&gt;if not , i still think you need&amp;nbsp; debug step by step and set breakpoint to check.&lt;/P&gt;&lt;P&gt;I test the I2C demo on two FRDM-KL03 board (one&amp;nbsp; master , one slave ) ,&lt;/P&gt;&lt;P&gt;when i set count = 1 , 2, 3 .... they all can work well.&lt;/P&gt;&lt;P&gt;The demo is under KSDK :&amp;nbsp;&lt;/P&gt;&lt;P&gt;KSDK_1.3.0\examples\frdmkl03z\driver_examples\i2c\i2c_polling\master\kds&lt;/P&gt;&lt;P&gt;KSDK_1.3.0\examples\frdmkl03z\driver_examples\i2c\i2c_polling\slave\kds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2801i903457F9C333E941/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 10:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540044#M6959</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-26T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: I2C two bytes reading issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540045#M6960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;BR /&gt;Thanks a lot for your support.&lt;/P&gt;&lt;P&gt;I didn't come to know what is the problem with&amp;nbsp;I2C_DRV_MasterReceiveDataBlocking(); and&amp;nbsp;I2C_DRV_MasterReceiveData(); for reading two bytes data from slave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW I just used &lt;STRONG&gt;&amp;nbsp;I2C_DRV_MasterReceiveDataPolling(); &lt;/STRONG&gt;function so now its working fine.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Have a great time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 10:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/I2C-two-bytes-reading-issue/m-p/540045#M6960</guid>
      <dc:creator>syed_idris</dc:creator>
      <dc:date>2016-08-27T10:57:33Z</dc:date>
    </item>
  </channel>
</rss>

