<?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: K82 : I2C_RTOS_Transfer() timeout</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-I2C-RTOS-Transfer-timeout/m-p/850355#M51138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Eugene:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In hardware, there is timeout parameters allows a master or slave to conclude that a defective devices is holding the clock low indefinitely or a master is intentionally trying to drive devices off the bus. The slave device must release the bus when it detects any single clock held low longer that Ttimeout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The timeout value can be set via I2C SCL Low Timeout Register Hig.h and I2C SCL Low Timeout Register Low&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70089iCFBDD64870886AFB/image-size/large?v=v2&amp;amp;px=999" role="button" 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;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70090i64D88CCD4CA01791/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the K82P121M150SF5RM for more details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2018 08:09:28 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2018-12-13T08:09:28Z</dc:date>
    <item>
      <title>K82 : I2C_RTOS_Transfer() timeout</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-I2C-RTOS-Transfer-timeout/m-p/850354#M51137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using I2C master API for FreeRTOS and would like to estimate max timeout in case if I2C transaction can't be completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In API&amp;nbsp;I2C_RTOS_Transfer() I can see infinite waiting of semaphore:&lt;/P&gt;&lt;P&gt;/* Wait for transfer to finish */&lt;BR /&gt; xSemaphoreTake(handle-&amp;gt;semaphore, &lt;STRONG&gt;portMAX_DELAY&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What timeout mechanisms is exists inside I2C hardware what can garantie if I2C interrupt in controller is happens in any case for unblock waiting if semaphore in reasonable time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 08:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-I2C-RTOS-Transfer-timeout/m-p/850354#M51137</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-12-10T08:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: K82 : I2C_RTOS_Transfer() timeout</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-I2C-RTOS-Transfer-timeout/m-p/850355#M51138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Eugene:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In hardware, there is timeout parameters allows a master or slave to conclude that a defective devices is holding the clock low indefinitely or a master is intentionally trying to drive devices off the bus. The slave device must release the bus when it detects any single clock held low longer that Ttimeout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The timeout value can be set via I2C SCL Low Timeout Register Hig.h and I2C SCL Low Timeout Register Low&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70089iCFBDD64870886AFB/image-size/large?v=v2&amp;amp;px=999" role="button" 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;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70090i64D88CCD4CA01791/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the K82P121M150SF5RM for more details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2018 08:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-I2C-RTOS-Transfer-timeout/m-p/850355#M51138</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-12-13T08:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: K82 : I2C_RTOS_Transfer() timeout</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-I2C-RTOS-Transfer-timeout/m-p/850356#M51139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked SDK examples and do not find any place where those registers are set :&lt;/P&gt;&lt;P&gt;__IO uint8_t SLTH; /**&amp;lt; I2C SCL Low Timeout Register High, offset: 0xA */&lt;BR /&gt; __IO uint8_t SLTL; /**&amp;lt; I2C SCL Low Timeout Register Low, offset: 0xB */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means by default timeout has infinite value ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In what units those registers should be programmed ? Period of clock 400kHz or some other ones ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2018 08:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-I2C-RTOS-Transfer-timeout/m-p/850356#M51139</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-12-13T08:58:07Z</dc:date>
    </item>
  </channel>
</rss>

