<?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: K22 I2C eDMA Send 1 data byte in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/K22-I2C-eDMA-Send-1-data-byte/m-p/935973#M1643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This implementation is because for i2c send, you need to send 1 byte first to trigger the dma. In other words, because there must be an interrupt of complete 1-byte transfer to trigger the DMA, the address byte should be filled into I2Cx_D by the CPU itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2019 19:29:22 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2019-08-05T19:29:22Z</dc:date>
    <item>
      <title>K22 I2C eDMA Send 1 data byte</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/K22-I2C-eDMA-Send-1-data-byte/m-p/935972#M1642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a project using fsl_i2c_edma on a k22.&lt;/P&gt;&lt;P&gt;The project works except when i send 1 data byte through i2c, the callback never happened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read later in the file fsl_i2c_edma.c :&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;If transfer size is 1, use polling method&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why, can someone explain me ?&lt;/P&gt;&lt;P&gt;And, is it possible&amp;nbsp;anyway to use the callback; stay in "standart" edma operation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso v11.0.0&lt;/P&gt;&lt;P&gt;SDK FRDM_K22F 2.6.0&lt;/P&gt;&lt;P&gt;Based on the example project&amp;nbsp; "i2c_edma_b2b_transfer_master"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 07:26:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/K22-I2C-eDMA-Send-1-data-byte/m-p/935972#M1642</guid>
      <dc:creator>Marc852</dc:creator>
      <dc:date>2019-08-01T07:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: K22 I2C eDMA Send 1 data byte</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/K22-I2C-eDMA-Send-1-data-byte/m-p/935973#M1643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This implementation is because for i2c send, you need to send 1 byte first to trigger the dma. In other words, because there must be an interrupt of complete 1-byte transfer to trigger the DMA, the address byte should be filled into I2Cx_D by the CPU itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 19:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/K22-I2C-eDMA-Send-1-data-byte/m-p/935973#M1643</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-08-05T19:29:22Z</dc:date>
    </item>
  </channel>
</rss>

