<?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: FRDM-MCXA156 Brown out setting or Low voltage setting in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2324716#M4911</link>
    <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237877"&gt;@Celeste_Liu&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response! I appreciate the explanation about the LVD reset behavior and the pointer to the power_mode_switch SDK demo.&lt;BR /&gt;&lt;BR /&gt;However, my actual requirement is slightly different from what was covered. I need to configure the LVD to trigger an interrupt (ISR) instead of (or in addition to) a reset, so that my application can:&lt;BR /&gt;&lt;BR /&gt;1. Detect a low voltage condition at runtime&lt;BR /&gt;2. Handle it gracefully inside an ISR (e.g., save state, log the event, or initiate a controlled shutdown)&lt;BR /&gt;3. Resume or recover without necessarily triggering a full cold reset&lt;BR /&gt;&lt;BR /&gt;Specifically, I would like to know:&lt;BR /&gt;- How to configure the SPC/LVD to generate an interrupt instead of (or before) asserting a reset&lt;BR /&gt;- Which NVIC interrupt vector corresponds to the LVD event on MCXA156/155&lt;BR /&gt;- How to write and register the ISR to capture the LVD event&lt;BR /&gt;- How to clear the LVD interrupt flag inside the ISR&lt;BR /&gt;&lt;BR /&gt;A minimal working C code example demonstrating this interrupt-driven LVD detection on the FRDM-MCXA156 would be extremely helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Puneeth</description>
    <pubDate>Sat, 28 Feb 2026 13:36:33 GMT</pubDate>
    <dc:creator>Puneeth1</dc:creator>
    <dc:date>2026-02-28T13:36:33Z</dc:date>
    <item>
      <title>FRDM-MCXA156 Brown out setting or Low voltage setting</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2322645#M4895</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’m looking for a simple example program that demonstrates &lt;STRONG&gt;brownout detection and handling&lt;/STRONG&gt; in a FRDM-MCXA156 board.&lt;/P&gt;&lt;P&gt;I already understand how brownout works conceptually, but I would like to see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;A practical code example&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;How brownout detection is configured&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;How the system reacts when voltage drops&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;How to safely recover after brownout reset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If possible, please share a minimal working example in c.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 18:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2322645#M4895</guid>
      <dc:creator>Puneeth1</dc:creator>
      <dc:date>2026-02-25T18:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXA156 Brown out setting or Low voltage setting</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2324599#M4910</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257874"&gt;@Puneeth1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your post. You can configure&amp;nbsp;SYS_LVDE/CORE_LVDE/BGMODE&amp;nbsp;bits in&amp;nbsp;ACTIVE_CFG/LP_CFG registers.&lt;/P&gt;
&lt;P&gt;I recommend you refer to our SDK demo power_mode_switch. You can download SDK from&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/select" target="_blank"&gt;Select Board | MCUXpresso SDK Builder&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;In this demo, you can see how to use SPC driver API to enable LVD.&lt;/P&gt;
&lt;P&gt;power_mode_switch.c:&lt;/P&gt;
&lt;P&gt;from line 166:&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Courier New'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Enable &lt;/SPAN&gt;&lt;SPAN&gt;LVD&lt;/SPAN&gt;&lt;SPAN&gt;s and HVDs in active mode. */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;SPC_EnableActiveModeCoreLowVoltageDetect&lt;/SPAN&gt;&lt;SPAN&gt;(APP_SPC, true);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SPC_EnableActiveModeSystemHighVoltageDetect(APP_SPC, true);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SPC_EnableActiveModeSystemLowVoltageDetect(APP_SPC, true);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Courier New'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Disable &lt;/SPAN&gt;&lt;SPAN&gt;LVD&lt;/SPAN&gt;&lt;SPAN&gt;s and HVDs in low power mode to save power. */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SPC_EnableLowPowerModeCoreLowVoltageDetect(APP_SPC, false);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SPC_EnableLowPowerModeSystemHighVoltageDetect(APP_SPC, false);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt; SPC_EnableLowPowerModeSystemLowVoltageDetect(APP_SPC, false);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorCeleste_Liu_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;In fact,&amp;nbsp;the voltage detect monitors enable by default and keeps the MCU in reset until the supply voltage rises above the LVD rising threshold. Whenever the voltage detect monitors are enabled, they trigger a reset condition if the supply voltage is outside the voltage detect trip point.&lt;BR /&gt;SRS[VD] becomes 1 on voltage detect condition. The voltage detect monitors &lt;STRONG&gt;assert a cold reset&lt;/STRONG&gt;(reset the debug logic and mode control logic) in all power domains.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;
&lt;DIV id="tinyMceEditorCeleste_Liu_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;-----------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2026 07:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2324599#M4910</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2026-02-28T07:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXA156 Brown out setting or Low voltage setting</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2324716#M4911</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237877"&gt;@Celeste_Liu&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response! I appreciate the explanation about the LVD reset behavior and the pointer to the power_mode_switch SDK demo.&lt;BR /&gt;&lt;BR /&gt;However, my actual requirement is slightly different from what was covered. I need to configure the LVD to trigger an interrupt (ISR) instead of (or in addition to) a reset, so that my application can:&lt;BR /&gt;&lt;BR /&gt;1. Detect a low voltage condition at runtime&lt;BR /&gt;2. Handle it gracefully inside an ISR (e.g., save state, log the event, or initiate a controlled shutdown)&lt;BR /&gt;3. Resume or recover without necessarily triggering a full cold reset&lt;BR /&gt;&lt;BR /&gt;Specifically, I would like to know:&lt;BR /&gt;- How to configure the SPC/LVD to generate an interrupt instead of (or before) asserting a reset&lt;BR /&gt;- Which NVIC interrupt vector corresponds to the LVD event on MCXA156/155&lt;BR /&gt;- How to write and register the ISR to capture the LVD event&lt;BR /&gt;- How to clear the LVD interrupt flag inside the ISR&lt;BR /&gt;&lt;BR /&gt;A minimal working C code example demonstrating this interrupt-driven LVD detection on the FRDM-MCXA156 would be extremely helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Puneeth</description>
      <pubDate>Sat, 28 Feb 2026 13:36:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2324716#M4911</guid>
      <dc:creator>Puneeth1</dc:creator>
      <dc:date>2026-02-28T13:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXA156 Brown out setting or Low voltage setting</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2325529#M4919</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257874"&gt;@Puneeth1&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;On MCXA156, the Low-Voltage Detect (LVD) function is classified as a power-on reset source. When supply voltage drops below the threshold, it immediately triggers a cold reset. As a result:&lt;/P&gt;
&lt;DIV&gt;
&lt;UL&gt;
&lt;LI&gt;No NVIC interrupt is generated for LVD.&lt;/LI&gt;
&lt;LI&gt;There is no LVD interrupt flag to clear.&lt;/LI&gt;
&lt;LI&gt;After the device restarts, you can only perform post-mortem diagnosis by reading the CMC reset status registers to determine whether the reset was caused by LVD (e.g., SRS[VD] / SSRS[VD]).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In summary, the four requested “LVD interrupt” items are not supported on MCXA156:&lt;/P&gt;
&lt;DIV&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Generate an interrupt from SPC/LVD:&lt;/STRONG&gt; Not supported (LVD follows the cold-reset path only).&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Corresponding NVIC vector:&lt;/STRONG&gt; Not available.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Write/register an LVD ISR:&lt;/STRONG&gt; Not applicable.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Clear an LVD flag inside an ISR:&lt;/STRONG&gt; Not applicable (diagnose after reset by reading &lt;STRONG&gt;SRS/SSRS&lt;/STRONG&gt;).&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore your requirements cannot be fulfilled using the LVD mechanism.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Mar 2026 10:17:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXA156-Brown-out-setting-or-Low-voltage-setting/m-p/2325529#M4919</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2026-03-03T10:17:22Z</dc:date>
    </item>
  </channel>
</rss>

