<?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 S32K3 LPCMP window mode operation in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-LPCMP-window-mode-operation/m-p/2196571#M54033</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;
&lt;P&gt;One of our customer needs some suggestions based on LPCMP Windowed mode.&lt;/P&gt;
&lt;P&gt;Use case is, consider &lt;STRONG&gt;two input signals(12V power lines)&lt;/STRONG&gt; are connected to the microcontroller pins in &lt;STRONG&gt;LPCMP0(in0 &amp;amp; in1 channels).&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Need to &lt;STRONG&gt;monitor the voltage levels of both input signals&lt;/STRONG&gt; to check the normal operating voltage(12V-15V).&lt;/P&gt;
&lt;P&gt;Can &lt;STRONG&gt;Windowed mode(out of window) voltage detection&lt;/STRONG&gt; be used to monitor the normal operating(12V - 15V)&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Please Note:&amp;nbsp;&lt;FONT color="#000000"&gt;Lower and higher references need to be configured using DAC output internally for each input.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Unable to find any reference code related to this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;To summarize:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;FONT color="#000000"&gt;1) Is it is possible to do&amp;nbsp;Windowed mode(out of window) voltage detection in S32K3 LPCMP?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;FONT color="#000000"&gt;2) If so how we can configure for&amp;nbsp;Lower and higher references for the input pins?&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;FONT color="#000000"&gt;3) What configuration will be ideal for windowed mode operation ? Could not able to see option for upper limit &amp;amp; lower limit value in .mex file?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Krish1510_0-1761906063974.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363488i51B07B38CEC8B9BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Krish1510_0-1761906063974.png" alt="Krish1510_0-1761906063974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Waiting for the response!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks &amp;amp; regards,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Krishnakumar V&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Oct 2025 10:25:14 GMT</pubDate>
    <dc:creator>Krish1510</dc:creator>
    <dc:date>2025-10-31T10:25:14Z</dc:date>
    <item>
      <title>S32K3 LPCMP window mode operation</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-LPCMP-window-mode-operation/m-p/2196571#M54033</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;
&lt;P&gt;One of our customer needs some suggestions based on LPCMP Windowed mode.&lt;/P&gt;
&lt;P&gt;Use case is, consider &lt;STRONG&gt;two input signals(12V power lines)&lt;/STRONG&gt; are connected to the microcontroller pins in &lt;STRONG&gt;LPCMP0(in0 &amp;amp; in1 channels).&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Need to &lt;STRONG&gt;monitor the voltage levels of both input signals&lt;/STRONG&gt; to check the normal operating voltage(12V-15V).&lt;/P&gt;
&lt;P&gt;Can &lt;STRONG&gt;Windowed mode(out of window) voltage detection&lt;/STRONG&gt; be used to monitor the normal operating(12V - 15V)&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Please Note:&amp;nbsp;&lt;FONT color="#000000"&gt;Lower and higher references need to be configured using DAC output internally for each input.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Unable to find any reference code related to this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;To summarize:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;FONT color="#000000"&gt;1) Is it is possible to do&amp;nbsp;Windowed mode(out of window) voltage detection in S32K3 LPCMP?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;FONT color="#000000"&gt;2) If so how we can configure for&amp;nbsp;Lower and higher references for the input pins?&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;FONT color="#000000"&gt;3) What configuration will be ideal for windowed mode operation ? Could not able to see option for upper limit &amp;amp; lower limit value in .mex file?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Krish1510_0-1761906063974.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363488i51B07B38CEC8B9BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Krish1510_0-1761906063974.png" alt="Krish1510_0-1761906063974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Waiting for the response!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks &amp;amp; regards,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Krishnakumar V&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 10:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-LPCMP-window-mode-operation/m-p/2196571#M54033</guid>
      <dc:creator>Krish1510</dc:creator>
      <dc:date>2025-10-31T10:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 LPCMP window mode operation</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-LPCMP-window-mode-operation/m-p/2198520#M54129</link>
      <description>&lt;P&gt;Thank you for your interest in our products and for contributing to our community.&lt;/P&gt;
&lt;P&gt;For LPCMP there is just available the &lt;EM&gt;LpCmp_Icu_Ip_BlinkLed_S32K388&lt;/EM&gt; RTD example. Which is configured in &lt;EM&gt;continuous mode&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;The LPCMP needs 2 signals to compare (&lt;EM&gt;INP&lt;/EM&gt; and &lt;EM&gt;INM&lt;/EM&gt;), for your application you need to compare an external input with the internal DAC (which its voltage is configurable).&lt;/P&gt;
&lt;P&gt;As you want to compare 2 external signals, each one with respect the internal DAC. It is recommended to use 2 LPCMP instances. Please consult &lt;EM&gt;Table 1. S32K3xx chip's feature comparison&lt;/EM&gt; of datasheet to see how many instances are available in the S32K3 derivative you are using.&lt;/P&gt;
&lt;P&gt;If you have just one instance available, please consider that there is no any RTD function to change the &lt;EM&gt;inputmux&lt;/EM&gt; during run time. So most probably you need to de-init, change inputmux and re-init the LPCMP instance.&lt;/P&gt;
&lt;P&gt;On the other hand, there are no upper/lower limits, the threshold is defined by the DAC voltage level.&lt;/P&gt;
&lt;P&gt;Please also consider that for &lt;EM&gt;windowed mode&lt;/EM&gt;, you need to route the &lt;EM&gt;WINDOW/SAMPLE&lt;/EM&gt; signal thought TRGMUX.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Leo__0-1762288217259.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363980iFCFBCD96E6BEA96E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Leo__0-1762288217259.png" alt="_Leo__0-1762288217259.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope this information is helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 20:32:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-LPCMP-window-mode-operation/m-p/2198520#M54129</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-11-04T20:32:16Z</dc:date>
    </item>
  </channel>
</rss>

