<?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>S32KのトピックS32K144 CMP Window Mode COUTA</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-CMP-Window-Mode-COUTA/m-p/1621323#M21584</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have encountered some problem when configuring window mode of S32K144 , CMP module.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attached is my test demo. I have used CMP_0 module, the positive input is the DAC, the negative input is the input 0,(logic analyzer channel 1 ,blue line,set freq=50kHz),the window/Sample input is the lptmr1&amp;nbsp;output(logic analyzer channel 3 ,yellow line,set freq=100Hz),the COUTA output is&amp;nbsp;&amp;nbsp;logic analyzer channel 0。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yinq_1-1679626230744.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216095iFAEE2F57C003C1D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yinq_1-1679626230744.png" alt="yinq_1-1679626230744.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yinq_0-1679626171855.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216094i574ECCA5FB996A17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yinq_0-1679626171855.png" alt="yinq_0-1679626171855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yinq_2-1679626795211.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216096i6A630E6461F5CFEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yinq_2-1679626795211.png" alt="yinq_2-1679626795211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yinq_3-1679627097323.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216100i56B6ECC5C0883243/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yinq_3-1679627097323.png" alt="yinq_3-1679627097323.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference to s32k1xx-RM&amp;nbsp; 45.7.5 Windowed mode (#s 5A &amp;amp; 5B),I think COUTA output should output 100Hz waveform when WINDOW is high. When WINDOW is low, output should keep the last state. Please help me check whether there is any problem with the current configuration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 03:09:03 GMT</pubDate>
    <dc:creator>yinq</dc:creator>
    <dc:date>2023-03-24T03:09:03Z</dc:date>
    <item>
      <title>S32K144 CMP Window Mode COUTA</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CMP-Window-Mode-COUTA/m-p/1621323#M21584</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have encountered some problem when configuring window mode of S32K144 , CMP module.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attached is my test demo. I have used CMP_0 module, the positive input is the DAC, the negative input is the input 0,(logic analyzer channel 1 ,blue line,set freq=50kHz),the window/Sample input is the lptmr1&amp;nbsp;output(logic analyzer channel 3 ,yellow line,set freq=100Hz),the COUTA output is&amp;nbsp;&amp;nbsp;logic analyzer channel 0。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yinq_1-1679626230744.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216095iFAEE2F57C003C1D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yinq_1-1679626230744.png" alt="yinq_1-1679626230744.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yinq_0-1679626171855.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216094i574ECCA5FB996A17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yinq_0-1679626171855.png" alt="yinq_0-1679626171855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yinq_2-1679626795211.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216096i6A630E6461F5CFEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yinq_2-1679626795211.png" alt="yinq_2-1679626795211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yinq_3-1679627097323.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216100i56B6ECC5C0883243/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yinq_3-1679627097323.png" alt="yinq_3-1679627097323.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference to s32k1xx-RM&amp;nbsp; 45.7.5 Windowed mode (#s 5A &amp;amp; 5B),I think COUTA output should output 100Hz waveform when WINDOW is high. When WINDOW is low, output should keep the last state. Please help me check whether there is any problem with the current configuration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 03:09:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CMP-Window-Mode-COUTA/m-p/1621323#M21584</guid>
      <dc:creator>yinq</dc:creator>
      <dc:date>2023-03-24T03:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CMP Window Mode COUTA</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CMP-Window-Mode-COUTA/m-p/1624072#M21726</link>
      <description>&lt;P&gt;Hi&amp;nbsp;yinq,&lt;/P&gt;
&lt;P&gt;Sorry for my previous answer, how LPTMR and LPIT define the time of WINDOW=1 is not clear yet. Please use PDB_POnDLY[DLY1][DLY2] to define the time of WINDOW=1 first.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="46.1.4 Pulse-Out Enable Register Implementation.png" style="width: 887px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216806i006481CB2EE55B5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="46.1.4 Pulse-Out Enable Register Implementation.png" alt="46.1.4 Pulse-Out Enable Register Implementation.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="46.3.16 Pulse-Out n Delay register (PDB_POnDLY).png" style="width: 816px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216807iD75DFD867038F535/image-size/large?v=v2&amp;amp;px=999" role="button" title="46.3.16 Pulse-Out n Delay register (PDB_POnDLY).png" alt="46.3.16 Pulse-Out n Delay register (PDB_POnDLY).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Considering you are using S32K1 SDK RTM 3.0.3, you can use the following functions:&lt;BR /&gt;PDB_DRV_SetCmpPulseOutDelayForHigh&lt;BR /&gt;PDB_DRV_SetCmpPulseOutDelayForLow&lt;BR /&gt;PDB_DRV_SetCmpPulseOutEnable&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 09:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CMP-Window-Mode-COUTA/m-p/1624072#M21726</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-03-29T09:28:02Z</dc:date>
    </item>
  </channel>
</rss>

