<?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 LPC804 - Movable function in reduced power modes and ADC interrupts in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Movable-function-in-reduced-power-modes-and-ADC/m-p/1604289#M51701</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We are evaluating the reduced power modes in LPC804. In the LPC804 datasheet it is mentioned as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arafathyasar24_0-1677127644400.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212064i950412A629E12B24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arafathyasar24_0-1677127644400.png" alt="arafathyasar24_0-1677127644400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Taking&amp;nbsp;PIO0_10/ADC_7 as an example&lt;/P&gt;&lt;P&gt;1) The term &lt;STRONG&gt;movable function&lt;/STRONG&gt; means,&amp;nbsp;configuring or reinitializing the Pin as&amp;nbsp;PIO0_10 or&amp;nbsp;ADC_7. Is the understanding correct?&lt;/P&gt;&lt;P&gt;2) As the deep sleep and power down mode does not support ADC wakeup, shall I use the pin as &lt;STRONG&gt;ADC7&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;during normal mode&lt;/STRONG&gt; and can configure the same pin as &lt;STRONG&gt;PIO0_10 before entering into deep sleep or power down mode&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;3) Still &lt;STRONG&gt;ADC7&lt;/STRONG&gt;&amp;nbsp;will get input from&amp;nbsp;&lt;STRONG&gt;ADC circuit &lt;/STRONG&gt;and&amp;nbsp;if I configure the pin as&amp;nbsp;&lt;STRONG&gt;PIO0_10&amp;nbsp;&lt;/STRONG&gt;in raising or falling edge &lt;STRONG&gt;will it detect the interrupt?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4) In the LPC804 SDK there is no example for the ADC interrupt with lower and upper threshold, will I get any reference for the same?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Yasar Arafath&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 07:12:33 GMT</pubDate>
    <dc:creator>arafathyasar24</dc:creator>
    <dc:date>2023-02-23T07:12:33Z</dc:date>
    <item>
      <title>LPC804 - Movable function in reduced power modes and ADC interrupts</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Movable-function-in-reduced-power-modes-and-ADC/m-p/1604289#M51701</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We are evaluating the reduced power modes in LPC804. In the LPC804 datasheet it is mentioned as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arafathyasar24_0-1677127644400.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212064i950412A629E12B24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arafathyasar24_0-1677127644400.png" alt="arafathyasar24_0-1677127644400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Taking&amp;nbsp;PIO0_10/ADC_7 as an example&lt;/P&gt;&lt;P&gt;1) The term &lt;STRONG&gt;movable function&lt;/STRONG&gt; means,&amp;nbsp;configuring or reinitializing the Pin as&amp;nbsp;PIO0_10 or&amp;nbsp;ADC_7. Is the understanding correct?&lt;/P&gt;&lt;P&gt;2) As the deep sleep and power down mode does not support ADC wakeup, shall I use the pin as &lt;STRONG&gt;ADC7&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;during normal mode&lt;/STRONG&gt; and can configure the same pin as &lt;STRONG&gt;PIO0_10 before entering into deep sleep or power down mode&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;3) Still &lt;STRONG&gt;ADC7&lt;/STRONG&gt;&amp;nbsp;will get input from&amp;nbsp;&lt;STRONG&gt;ADC circuit &lt;/STRONG&gt;and&amp;nbsp;if I configure the pin as&amp;nbsp;&lt;STRONG&gt;PIO0_10&amp;nbsp;&lt;/STRONG&gt;in raising or falling edge &lt;STRONG&gt;will it detect the interrupt?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4) In the LPC804 SDK there is no example for the ADC interrupt with lower and upper threshold, will I get any reference for the same?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Yasar Arafath&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 07:12:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Movable-function-in-reduced-power-modes-and-ADC/m-p/1604289#M51701</guid>
      <dc:creator>arafathyasar24</dc:creator>
      <dc:date>2023-02-23T07:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 - Movable function in reduced power modes and ADC interrupts</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Movable-function-in-reduced-power-modes-and-ADC/m-p/1604824#M51708</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200146"&gt;@arafathyasar24&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;For a better understanding of this, we recommend you check the UM11065 (LPC804 User Manual).&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Before answering you the questions, first let's define what a movable function and a fixed-pin function are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="lia-align-justify"&gt;&lt;EM&gt;In the UM11065 (LPC804 User Manual) Chapter 8: LPC804 Switch Matrix (SWM) [Section 8.4 General Description] states: "Most functions can be assigned through the switch matrix to any external pin that is not a power or ground pin. These functions are called movable functions." Some of them are: U0_TXD, U0_RXD, PLU_INPUT0, PLU_OUT0, etc.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI class="lia-align-justify"&gt;&lt;EM&gt;Continues with: "A few functions like the analog comparator inputs can only be assigned to one particular external pin with the appropriate electrical characteristics. These functions are called fixed-pin functions." Like: ADC_7, ADC_6, RESETN, SWDIO, SWCLK, etc.&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Now, let's go with your questions:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI class="lia-align-justify"&gt;&lt;EM&gt;The term&amp;nbsp;movable function&amp;nbsp;means,&amp;nbsp;configuring or reinitializing the Pin as&amp;nbsp;PIO0_10 or&amp;nbsp;ADC_7. Is the understanding correct?&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-align-justify"&gt;Even though, there is a difference between the movable functions and the fixed-pins function, the datasheet means not use the pin for another functionality. So indeed, your understanding its correct. You should not configure trough the SWM ADC_7 functionality while using PIO0_10 for a wake-up from deep power-down mode.&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI class="lia-align-justify"&gt;&lt;EM&gt;As the deep sleep and power down mode does not support ADC wakeup, shall I use the pin as&amp;nbsp;ADC7&amp;nbsp;during normal mode&amp;nbsp;and can configure the same pin as&amp;nbsp;PIO0_10 before entering into deep sleep or power down mode?&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-align-justify"&gt;The ADC_7 actually is a fixed-pin function, the UM11065 states: "&lt;EM&gt;If a fixed-pin function is not used, it can be replaced by any other movable function.&lt;/EM&gt;" In subsection 8.4.2. Switch matrix register interface mentions: "&lt;EM&gt;If a fixed-pin function is deselected, any movable function can be assigned to its port and pin.&lt;/EM&gt;" So it might be possible to make the re-configuration you mention.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Related with the deep sleep mode, UM11065 Chapter 12: LPC804 Reduced power modes and power management says: "&lt;EM&gt;…WAKEUP pins can be used to wake up &lt;STRONG&gt;only&lt;/STRONG&gt; from deep power-down mode…&lt;/EM&gt;" not for deep sleep.&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI class="lia-align-justify"&gt;&lt;EM&gt;Still&amp;nbsp;ADC7&amp;nbsp;will get input from&amp;nbsp;ADC circuit&amp;nbsp;and&amp;nbsp;if I configure the pin as&amp;nbsp;PIO0_10&amp;nbsp;in raising or falling edge&amp;nbsp;will it detect the interrupt?&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-align-justify"&gt;As long as you do not use the pin for both functionalities at the same time it should work. In deep power-down mode ADC is off, so both of the functionalities would not work.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_1-1677187302932.png" style="width: 477px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212184iA91777C5D253E14F/image-dimensions/477x259?v=v2" width="477" height="259" role="button" title="RaulRomero_1-1677187302932.png" alt="RaulRomero_1-1677187302932.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[UM11065: Table 173. Peripheral configuration in reduced power modes]&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI class="lia-align-justify"&gt;&lt;EM&gt;In the LPC804 SDK there is no example for the ADC interrupt with lower and upper threshold, will I get any reference for the same?&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-align-justify"&gt;Finally, the &lt;EM&gt;lpc_adc_burst&lt;/EM&gt; and &lt;EM&gt;lpc_adc_interrupt&lt;/EM&gt; examples have a compare threshold situation, that could be useful for you to test.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 21:23:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Movable-function-in-reduced-power-modes-and-ADC/m-p/1604824#M51708</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-02-23T21:23:04Z</dc:date>
    </item>
  </channel>
</rss>

