<?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: K64 Low Voltage Detect</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406138#M22709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your voltage of low voltage ? It is not only under 3.1 the low voltage can detected.&lt;/P&gt;&lt;P&gt;You can find information regard VLVDL and VLVDH on the K4 datasheet :&lt;/P&gt;&lt;P&gt;2.2.2 LVD and POR operating requirements -&amp;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/55041iFC7583A6F819D902/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;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/55014i707C517E33A4DBBD/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;Please check the voltage of your chip .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 08:27:03 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-07-14T08:27:03Z</dc:date>
    <item>
      <title>K64 Low Voltage Detect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406137#M22708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to activate the Low Voltage detect on the K64 chip.&amp;nbsp; I have tried several variations of the control register configurations below but with no luck.&amp;nbsp; Does anybody know how to get the LVD_LVW interrupt to fire when the voltage drops below 3.1v?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PMC_LVDSC1 =&amp;nbsp; PMC_LVDSC1_LVDIE_MASK | PMC_LVDSC1_LVDV(1);&lt;/P&gt;&lt;P&gt; PMC_LVDSC2 =&amp;nbsp; PMC_LVDSC2_LVWIE_MASK | PMC_LVDSC2_LVWV(3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void LVD_LVW_IRQHandler(void) {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Baker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 14:47:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406137#M22708</guid>
      <dc:creator>johnbaker</dc:creator>
      <dc:date>2015-07-13T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: K64 Low Voltage Detect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406138#M22709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your voltage of low voltage ? It is not only under 3.1 the low voltage can detected.&lt;/P&gt;&lt;P&gt;You can find information regard VLVDL and VLVDH on the K4 datasheet :&lt;/P&gt;&lt;P&gt;2.2.2 LVD and POR operating requirements -&amp;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/55041iFC7583A6F819D902/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;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/55014i707C517E33A4DBBD/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;Please check the voltage of your chip .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 08:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406138#M22709</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-07-14T08:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: K64 Low Voltage Detect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406139#M22710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John Baker:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are missing to enable the LVD/LVW interrupt vector from the &lt;STRONG&gt;NVIC&lt;/STRONG&gt; module, apart from enabling the interrupts in the &lt;STRONG&gt;PMC&lt;/STRONG&gt; module. Also, as noted in the Reference Manual, the &lt;STRONG&gt;LVWF&lt;/STRONG&gt; flag may be 1 after power-on reset, so you must clear it by writing 1 to &lt;STRONG&gt;LVWACK&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14369099598003975 jive_macro_code jive_text_macro" data-renderedposition="155.89999389648438_8_1050_64" jivemacro_uid="_14369099598003975"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_LVDSC1 =&amp;nbsp; PMC_LVDSC1_LVDIE_MASK | PMC_LVDSC1_LVDV(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_LVDSC2 =&amp;nbsp; PMC_LVDSC2_LVWACK_MASK | PMC_LVDSC2_LVWIE_MASK | PMC_LVDSC2_LVWV(3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_EnableIRQ(LVD_LVW_IRQn);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then as noticed by Alice the voltage threshold with these settings is not exactly 3.1 V, but 3V for Low Voltage Warning and 2.56V for Low Voltage Detect.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 21:39:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406139#M22710</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-07-14T21:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: K64 Low Voltage Detect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406140#M22711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alice and Jorge.&amp;nbsp; I will try this.&amp;nbsp; Our chip runs at 3.3v.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alice, the Datasheet 2.2.2 page looks same as what you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jorge,&amp;nbsp; I will try your code sample out and let you know how it works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Baker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 15:26:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406140#M22711</guid>
      <dc:creator>johnbaker</dc:creator>
      <dc:date>2015-07-17T15:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: K64 Low Voltage Detect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406141#M22712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked like a champ!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interrupt fires at 3.06v and my critical backup to flash takes around 600 us.&amp;nbsp; Life is good again! :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Baker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 18:52:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Low-Voltage-Detect/m-p/406141#M22712</guid>
      <dc:creator>johnbaker</dc:creator>
      <dc:date>2015-07-17T18:52:15Z</dc:date>
    </item>
  </channel>
</rss>

