<?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>LPC MicrocontrollersのトピックRe: ACMP (comparator) as wake-up from low-power</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1317098#M46044</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;boblees,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for your sharing, yes, your solution is correct.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can see in UM,Page 303:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;The analog references (BIAS) are required only when the analog comparator is a wake-up&lt;BR /&gt;source.&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 06:54:11 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2021-08-03T06:54:11Z</dc:date>
    <item>
      <title>ACMP (comparator) as wake-up from low-power</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1311521#M45931</link>
      <description>&lt;P&gt;I am using the comparator (ACMP) as wake-up source for LPC55[S]0x. The threshold voltage is set to 100mV. &amp;nbsp;When the device is powered up the comparator works as expected, i.e. the comparator output goes positive when the input voltage exceeds the threshold voltage. &amp;nbsp;When in low power mode a 20 uSec pulse is applied which is only detected, i.e. the processor wakes up, when the pulse is over 1 volt. &amp;nbsp;This is way in excess of the threshold of 100mV. &amp;nbsp;The input is applied to ACMP_A.&lt;/P&gt;&lt;P&gt;This occurs both with the VREF being VDDA using the internal voltage ladder and applying an external reference to ACMP_B.&lt;/P&gt;&lt;P&gt;How do I configure the comparator to wake-up the processor when the 20 uSec pulse just exceeds the set threshold rather than having to be way in excess of the threshold.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 21:24:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1311521#M45931</guid>
      <dc:creator>boblees</dc:creator>
      <dc:date>2021-07-21T21:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: ACMP (comparator) as wake-up from low-power</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1312430#M45946</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;boblees,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It seems the 20us is too short, what's the result when you test it on your project, or use the ACMP demo under SDK to test.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 07:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1312430#M45946</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-07-23T07:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: ACMP (comparator) as wake-up from low-power</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1312570#M45949</link>
      <description>&lt;P&gt;Hi Alice&lt;/P&gt;&lt;P&gt;When I test on my project it takes at least 1 volt over the threshold to wake up from power down mode with a 20 uSec pulse. &amp;nbsp;When powered up the comparator works as expected.&lt;/P&gt;&lt;P&gt;Which ACMP example are you referring to? &amp;nbsp;Is there one which shows ACMP waking from power down?&lt;/P&gt;&lt;P&gt;For your information here is the code which sets up the comparator and the power down call.&lt;/P&gt;&lt;P&gt;cmp_config_t PMC_config = {&lt;BR /&gt;.enableHysteresis = false,&lt;BR /&gt;.enableLowPower = false, &amp;nbsp;// doesn't make any difference if this is true or false&lt;BR /&gt;.filterClockDivider = kCMP_FilterClockDivide1,&lt;BR /&gt;.filterSampleMode = kCMP_FilterSampleMode0&lt;BR /&gt;};&lt;BR /&gt;/* Configuration of the DAC sub-module, used in the CMP_SetVREF() function */&lt;BR /&gt;cmp_vref_config_t PMC_dac_config = {&lt;BR /&gt;.vrefSource = KCMP_VREFSourceVDDA,&lt;BR /&gt;.vrefValue = 1U&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;void PMC_init() {&lt;BR /&gt;/* Initialize CMP main sub-module functionality */&lt;BR /&gt;CMP_Init(&amp;amp;PMC_config);&lt;BR /&gt;/* CMP output signal path initialization */&lt;BR /&gt;CMP_EnableFilteredInterruptSource(false);&lt;BR /&gt;/* Set up internal DAC sub-module, that can be used as input 0 of the CMP both inputs. */&lt;BR /&gt;CMP_SetVREF(&amp;amp;PMC_dac_config);&lt;BR /&gt;/* Initialize CMP main sub-module functionality */&lt;BR /&gt;CMP_SetInputChannels(kCMP_Input1, kCMP_InputVREF);&lt;BR /&gt;}&lt;/P&gt;&lt;DIV&gt;POWER_DisablePD(kPDRUNCFG_PD_COMP);&lt;/DIV&gt;&lt;DIV&gt;EnableIRQ(ACMP_IRQn);&lt;/DIV&gt;&lt;DIV&gt;CMP_EnableInterrupt(kCMP_EdgeFalling);&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;POWER_EnterPowerDown(kPDRUNCFG_PD_FRO32K | kPDRUNCFG_PD_COMP,&lt;/DIV&gt;&lt;DIV&gt;0x40DF,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;WAKEUP_ACMP | WAKEUP_GPIO_GLOBALINT0 | WAKEUP_GPIO_GLOBALINT1,&lt;/DIV&gt;&lt;DIV&gt;LOWPOWER_CPURETCTRL_ENA_ENABLE);&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Jul 2021 11:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1312570#M45949</guid>
      <dc:creator>boblees</dc:creator>
      <dc:date>2021-07-23T11:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: ACMP (comparator) as wake-up from low-power</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1313936#M45974</link>
      <description>&lt;P&gt;Hi again Alice&lt;/P&gt;&lt;P&gt;Having re-read UM11424 many times, especially section 14, I finally tried adding (1UL &amp;lt;&amp;lt; 1) (BIAS) to the exclude_from_pd parameter and the wake-up now works as expected. i.e. &amp;gt; comparator reference (100mV) with 20uS pulse and the device wakes up. &amp;nbsp;The missing magic appears to be that analogue bias needs to remain powered up. &amp;nbsp;This is less than clear in UM11424 in the examples and is totally missing from fsl_power.h in&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;* @brief Analog components power modes control during low power modes&lt;BR /&gt;*/&lt;BR /&gt;typedef enum pd_bits&lt;BR /&gt;{&lt;BR /&gt;kPDRUNCFG_PD_BODCORE = (1UL &amp;lt;&amp;lt; 2),&lt;BR /&gt;kPDRUNCFG_PD_BODVBAT = (1UL &amp;lt;&amp;lt; 3),&lt;BR /&gt;kPDRUNCFG_PD_FRO1M = (1UL &amp;lt;&amp;lt; 4),&lt;BR /&gt;kPDRUNCFG_PD_FRO192M = (1UL &amp;lt;&amp;lt; 5),&lt;BR /&gt;kPDRUNCFG_PD_FRO32K = (1UL &amp;lt;&amp;lt; 6),&lt;BR /&gt;kPDRUNCFG_PD_XTAL32K = (1UL &amp;lt;&amp;lt; 7),&lt;BR /&gt;kPDRUNCFG_PD_XTAL32M = (1UL &amp;lt;&amp;lt; 8),&lt;BR /&gt;kPDRUNCFG_PD_PLL0 = (1UL &amp;lt;&amp;lt; 9),&lt;BR /&gt;kPDRUNCFG_PD_PLL1 = (1UL &amp;lt;&amp;lt; 10),&lt;BR /&gt;kPDRUNCFG_PD_COMP = (1UL &amp;lt;&amp;lt; 13),&lt;BR /&gt;kPDRUNCFG_PD_GPADC = (1UL &amp;lt;&amp;lt; 15),&lt;BR /&gt;kPDRUNCFG_PD_LDOGPADC = (1UL &amp;lt;&amp;lt; 19),&lt;BR /&gt;kPDRUNCFG_PD_LDOXO32M = (1UL &amp;lt;&amp;lt; 20),&lt;BR /&gt;kPDRUNCFG_PD_LDOFLASHNV = (1UL &amp;lt;&amp;lt; 21),&lt;BR /&gt;kPDRUNCFG_PD_RNG = (1UL &amp;lt;&amp;lt; 22),&lt;BR /&gt;kPDRUNCFG_PD_PLL0_SSCG = (1UL &amp;lt;&amp;lt; 23),&lt;BR /&gt;/*&lt;BR /&gt;This enum member has no practical meaning,it is used to avoid MISRA issue,&lt;BR /&gt;user should not trying to use it.&lt;BR /&gt;*/&lt;BR /&gt;kPDRUNCFG_ForceUnsigned = 0x80000000U,&lt;BR /&gt;} pd_bit_t;&lt;/P&gt;&lt;P&gt;as you can see&amp;nbsp;kPDRUNCFG_PD_BIAS is not defined which clearly it should be. &amp;nbsp;This is with MCUXpresso 11.3.1. I know 11.4 has just been released and I haven't installed it yet to determine if this still exists as an omission.&lt;/P&gt;&lt;P&gt;So my&amp;nbsp;exclude_from_pd =&amp;nbsp;&lt;SPAN&gt;kPDRUNCFG_PD_COMP | (1UL &amp;lt;&amp;lt; 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm that my solution is correct?&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 13:36:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1313936#M45974</guid>
      <dc:creator>boblees</dc:creator>
      <dc:date>2021-07-27T13:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: ACMP (comparator) as wake-up from low-power</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1317098#M46044</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;boblees,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for your sharing, yes, your solution is correct.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can see in UM,Page 303:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;The analog references (BIAS) are required only when the analog comparator is a wake-up&lt;BR /&gt;source.&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 06:54:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ACMP-comparator-as-wake-up-from-low-power/m-p/1317098#M46044</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-08-03T06:54:11Z</dc:date>
    </item>
  </channel>
</rss>

