<?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: Processor Expert settings for Low Voltage Detect Interrupt? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404997#M22547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hei Alice,&lt;/P&gt;&lt;P&gt;we had tried the settings that you described as well, but without any luck. Would you have another idea of what we could try?&lt;/P&gt;&lt;P&gt;This is the settings as they are now:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="L_EA10.tmp.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31043iD466543C1EEFC36E/image-size/large?v=v2&amp;amp;px=999" role="button" title="L_EA10.tmp.jpg" alt="L_EA10.tmp.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt; Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 11:30:32 GMT</pubDate>
    <dc:creator>dominikf</dc:creator>
    <dc:date>2015-05-11T11:30:32Z</dc:date>
    <item>
      <title>Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404995#M22545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hei,&lt;/P&gt;&lt;P&gt;we are trying to get the Low Voltage Detect Interrupt to work on the FRDM-KL26Z development kit, but no matter what settings we choose, the irq does not seem to fire.&lt;/P&gt;&lt;P&gt;Below are the settings for LVD in PEx:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Screenshot - 5_6_2015 , 2_46_01 PM.png"&gt;&lt;IMG alt="Screenshot - 5_6_2015 , 2_46_01 PM.png" src="https://community.nxp.com/t5/image/serverpage/image-id/49360i243EEDB5FC2C7A4A/image-size/large?v=v2&amp;amp;px=999" title="Screenshot - 5_6_2015 , 2_46_01 PM.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And the service routine in Events.c - the "lowVoltage" is a flag that gets checked in the application:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14309165319929923 jive_text_macro jive_macro_code" jivemacro_uid="_14309165319929923" modifiedtitle="true"&gt;
&lt;P&gt;void Cpu_OnLowVoltageINT(uint8_t Reason)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Write your code here ... */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_LVDSC2 |= PMC_LVDSC2_LVWACK_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lowVoltage = TRUE;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "Cpu_OnLowVoltageINT" event is enabled in the CPU module:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Screenshot - 5_6_2015 , 2_49_51 PM.png"&gt;&lt;IMG alt="Screenshot - 5_6_2015 , 2_49_51 PM.png" src="https://community.nxp.com/t5/image/serverpage/image-id/49413i85B5960EA11C4804/image-size/large?v=v2&amp;amp;px=999" title="Screenshot - 5_6_2015 , 2_49_51 PM.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could someone provide a screenshot of working LVD settings in PEx ?&lt;/P&gt;&lt;P&gt;Thank you in advance for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:17:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404995#M22545</guid>
      <dc:creator>dominikf</dc:creator>
      <dc:date>2020-11-02T13:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404996#M22546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dominik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try disalbe "LVD reset" , and enable "Interrupt requesst " .&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/29755i3FBE978ADE2AA961/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;/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, 11 May 2015 08:02:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404996#M22546</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-05-11T08:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404997#M22547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hei Alice,&lt;/P&gt;&lt;P&gt;we had tried the settings that you described as well, but without any luck. Would you have another idea of what we could try?&lt;/P&gt;&lt;P&gt;This is the settings as they are now:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="L_EA10.tmp.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31043iD466543C1EEFC36E/image-size/large?v=v2&amp;amp;px=999" role="button" title="L_EA10.tmp.jpg" alt="L_EA10.tmp.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt; Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 11:30:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404997#M22547</guid>
      <dc:creator>dominikf</dc:creator>
      <dc:date>2015-05-11T11:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404998#M22548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dominik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings for LVD interrupt seems fine. But you cannot check LVD flag in your code because LVD flag is checked and cleared in Cpu.c code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14313508720914636" data-renderedposition="92_8_1232_208" jivemacro_uid="_14313508720914636"&gt;&lt;P&gt;PE_ISR(Cpu_INT_LVD_LVWInterrupt)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t Reason = 0x00U;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Defines the source of Low voltage interrupt */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ((PMC_LVDSC1 &amp;amp; PMC_LVDSC1_LVDF_MASK) != 0x00U) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_LVDSC1 |= PMC_LVDSC1_LVDACK_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reason |= LVDSRC_LVD;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ((PMC_LVDSC2 &amp;amp; PMC_LVDSC2_LVWF_MASK) != 0x00U) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_LVDSC2 |= PMC_LVDSC2_LVWACK_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reason |= LVDSRC_LVW;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; Cpu_OnLowVoltageINT(Reason);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can only check the Reason valuein &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Cpu_OnLowVoltageINT(uint8_t Reason) &lt;/SPAN&gt;function. Reason value may acquire 0x00U or one of these two values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14313518656185636 jive_text_macro" data-renderedposition="363_8_1232_32" jivemacro_uid="_14313518656185636"&gt;&lt;P&gt;#define LVDSRC_LVD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x01U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*!&amp;lt; Low voltage detect&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define LVDSRC_LVW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x02U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*!&amp;lt; Low-voltage warning&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 13:46:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404998#M22548</guid>
      <dc:creator>mike_susen</dc:creator>
      <dc:date>2015-05-11T13:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404999#M22549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hei Michal,&lt;/P&gt;&lt;P&gt;thanks for the input. Actually we were not even checking the LVD flag, but instead just setting our software flag in the interrupt service routine. The ISR just seems to never get called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PW_low_level_init should enable LVWIE, so we still didn't figure out why the IRQ never fires.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* PMC_LVDSC2: LVWACK=1,LVWIE=1,LVWV=3 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; PMC_LVDSC2 |= PMC_LVDSC2_LVWACK_MASK |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_LVDSC2_LVWIE_MASK |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_LVDSC2_LVWV(0x03);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 14:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/404999#M22549</guid>
      <dc:creator>dominikf</dc:creator>
      <dc:date>2015-05-11T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/405000#M22550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dominik,&lt;/P&gt;&lt;P&gt;The LVD interrupt is invoked when the supply voltage decrease below the set limit (see &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/data_sheet/KL26P121M48SF4.pdf?fasp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/data_sheet/KL26P121M48SF4.pdf?fasp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/data_sheet/KL26P121M48SF4.pdf?fasp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VEND…&lt;/A&gt; , chapter 2.2.2 LVD and POR operating requirements).&lt;/P&gt;&lt;P&gt;How you regulate the supply voltage and how you detect the interrupt service routine invocation? Do you regulate voltage of the KL26Z silicon or the whole FRDM-KL26Z board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 07:19:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/405000#M22550</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-05-14T07:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/405001#M22551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We regulated the supply voltage with a seperate power supply, which was connected to the MCU only.&lt;/P&gt;&lt;P&gt;As indication we switched on an LED in the Interrupt service routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We never got this feature to work, and now abandoned the idea. It would have been a nice feature to have!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt; Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:17:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/405001#M22551</guid>
      <dc:creator>dominikf</dc:creator>
      <dc:date>2015-08-27T12:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/405002#M22552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dominik,&lt;/P&gt;&lt;P&gt;I see two possible reasons of your issue:&lt;/P&gt;&lt;P&gt;- The bandgap buffer is disabled in your configuration of CPU (there is not any statement about the bandgap buffer usage by LVD in the refernce manual but the LVD can use the bandgap buffer for detection of the low voltage).&lt;/P&gt;&lt;P&gt;- The MCU supply voltage is regulated by an independent power source but other circuits (peripherals connected to the MCU) are supplied by a stable source of Vdd (3.3V). The MCU can be powered by these connected devices and the LVD detection circuit are not able detect the low voltage of MCU power supply. You should regulate voltage of the MCU and all connected circuits to detect the low voltage by the LVD device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 11:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/405002#M22552</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-09-01T11:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert settings for Low Voltage Detect Interrupt?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/405003#M22553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hei Marek,&lt;/P&gt;&lt;P&gt;thanks for the input, it is much appreciated.&lt;/P&gt;&lt;P&gt;Indeed the bandgap buffer is disabled. We will try this and report back, although it might take a bit until we have the time to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt; Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 11:56:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Processor-Expert-settings-for-Low-Voltage-Detect-Interrupt/m-p/405003#M22553</guid>
      <dc:creator>dominikf</dc:creator>
      <dc:date>2015-09-01T11:56:26Z</dc:date>
    </item>
  </channel>
</rss>

