<?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: Can't clear SDHC Interrupt in Kinetis K64F</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-clear-SDHC-Interrupt-in-Kinetis-K64F/m-p/772434#M46959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriel Cufaro&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You are working with the CINT bit (Card Interrupt), but there is another bit called CINS (Card Insertion), in this case you use the DAT3 As Card Detection Pin (SDHC_PROCTL[D3CD]). For this case you only have to disable the interrupt signal with IRQSIGEN before leaving the handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to check the example provided in the SDK drivers, there is a frdmk64f_driver_examples_sdcard_interrupt example which can be used with this mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;BR /&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jan 2018 17:58:39 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2018-01-12T17:58:39Z</dc:date>
    <item>
      <title>Can't clear SDHC Interrupt in Kinetis K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-clear-SDHC-Interrupt-in-Kinetis-K64F/m-p/772433#M46958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a problem after detecting the SDHC card insertion interrupt in the corresponding ISR function SDHC_IRQHandler. The reference manual of K64F says, in the bit Card Interrupt of IRQSTAT:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Writing this bit to 1 can clear this bit, but as the interrupt factor from the SDIO card does not clear,&lt;BR /&gt;this bit is set again. To clear this bit, it is required to reset the interrupt factor from the external card&lt;BR /&gt;followed by a writing 1 to this bit.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What does it mean by 'reset the interrupt factor from the external card'? How can I clear the IRQ from the card? Here's my code that is not working to reset the interrupt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SDHC-&amp;gt;IRQSIGEN &amp;amp;= ~(SDHC_IRQSIGEN_CINTIEN_MASK);&amp;nbsp;&amp;nbsp; &amp;nbsp;//Clear CINTIEN bit in IRQSTATEN (CINTSEN) and IRQSIGEN.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SDHC-&amp;gt;IRQSTATEN &amp;amp;= ~(SDHC_IRQSTATEN_CINTSEN_MASK);&amp;nbsp;&amp;nbsp; &amp;nbsp;//&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(SDHC-&amp;gt;IRQSTAT) |= SDHC_IRQSTAT_CINT_MASK;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Reset the interrupt factors in the SDIO card and write 1 to clear CINT interrupt in IRQSTAT.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SDHC-&amp;gt;PROCTL &amp;amp;= ~(SDHC_PROCTL_D3CD_MASK);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Clear and then set D3CD bit in the PROCTL register.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(SDHC-&amp;gt;PROCTL) |= SDHC_PROCTL_D3CD_MASK;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SDHC-&amp;gt;IRQSIGEN |= SDHC_IRQSIGEN_CINTIEN_MASK;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Clear CINTIEN bit in IRQSTATEN (CINTSEN) and IRQSIGEN.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SDHC-&amp;gt;IRQSTATEN |= SDHC_IRQSTATEN_CINTSEN_MASK;&amp;nbsp;&amp;nbsp; &amp;nbsp;//&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 04:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-clear-SDHC-Interrupt-in-Kinetis-K64F/m-p/772433#M46958</guid>
      <dc:creator>gabrielcufaro</dc:creator>
      <dc:date>2018-01-09T04:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't clear SDHC Interrupt in Kinetis K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-clear-SDHC-Interrupt-in-Kinetis-K64F/m-p/772434#M46959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriel Cufaro&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You are working with the CINT bit (Card Interrupt), but there is another bit called CINS (Card Insertion), in this case you use the DAT3 As Card Detection Pin (SDHC_PROCTL[D3CD]). For this case you only have to disable the interrupt signal with IRQSIGEN before leaving the handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to check the example provided in the SDK drivers, there is a frdmk64f_driver_examples_sdcard_interrupt example which can be used with this mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;BR /&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 17:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-clear-SDHC-Interrupt-in-Kinetis-K64F/m-p/772434#M46959</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-01-12T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't clear SDHC Interrupt in Kinetis K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-clear-SDHC-Interrupt-in-Kinetis-K64F/m-p/772435#M46960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Gabi, como estas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 19:00:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-clear-SDHC-Interrupt-in-Kinetis-K64F/m-p/772435#M46960</guid>
      <dc:creator>agustinderuschi</dc:creator>
      <dc:date>2018-02-16T19:00:03Z</dc:date>
    </item>
  </channel>
</rss>

