<?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>Kinetis MicrocontrollersのトピックRe: Measure phase between 2 signals (5kHz)</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measure-phase-between-2-signals-5kHz/m-p/802010#M48760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Input Capture Mode of Timer/PWM Module (TPM) can be used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31.4.4 Input Capture Mode.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78209i1F28A6A5E49C783B/image-size/large?v=v2&amp;amp;px=999" role="button" title="31.4.4 Input Capture Mode.png" alt="31.4.4 Input Capture Mode.png" /&gt;&lt;/span&gt;&lt;BR /&gt;For example:&lt;BR /&gt;calculate it by the frequency of TPMx_CNT, the value of TPMx_C0V and TPMx_C1V.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78179iC2B22F90C6DA4C8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2018 06:30:37 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2018-11-27T06:30:37Z</dc:date>
    <item>
      <title>Measure phase between 2 signals (5kHz)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measure-phase-between-2-signals-5kHz/m-p/802008#M48758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to do a simple job: Use a FRDM-KL46Z board to measure time (phase)&amp;nbsp; between 2 digital oscillations: first signal is 5kHz @50% duty, 3.3V amplitude generated onboard via PWM,&amp;nbsp; the second signal is shifted (delayed) from the first.&lt;/P&gt;&lt;P&gt;This is an investigation on how to demodulate signals from a LVDT, first signal is the 5KHz fed into the primary coil, the second signal is form the secondary winding, the displacement is proportional with phase shift of the secondary from the primary signal...&lt;/P&gt;&lt;P&gt;Using a logic analyzer I can see the signals, the phase of the second seems to follow the LVDT displacement, I only have to measure it somehow with the FRDM KL46Z board.&lt;/P&gt;&lt;P&gt;I am not sure how to do this with the counters/timers available in FRDM-KL46Z board? I managed to generate the PWM for the primary, just need to feed both in some digital inputs and measure phase between these 2 signals...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion is welcome&lt;/P&gt;&lt;P&gt;Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:10:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measure-phase-between-2-signals-5kHz/m-p/802008#M48758</guid>
      <dc:creator>computersrl</dc:creator>
      <dc:date>2018-11-26T09:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Measure phase between 2 signals (5kHz)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measure-phase-between-2-signals-5kHz/m-p/802009#M48759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See the two methods in chapter 7 and 8 of&amp;nbsp; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/docs/uTasker/uTaskerHWTimers.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerHWTimers.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use the first (port DMA triggering) so that you have high resolution time stamps of a number of edges of the two input signals so that you can then determine frequency, mark-space-ratio (if needed) and accurate phase shift between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measure-phase-between-2-signals-5kHz/m-p/802009#M48759</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-11-26T15:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measure phase between 2 signals (5kHz)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measure-phase-between-2-signals-5kHz/m-p/802010#M48760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Input Capture Mode of Timer/PWM Module (TPM) can be used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31.4.4 Input Capture Mode.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78209i1F28A6A5E49C783B/image-size/large?v=v2&amp;amp;px=999" role="button" title="31.4.4 Input Capture Mode.png" alt="31.4.4 Input Capture Mode.png" /&gt;&lt;/span&gt;&lt;BR /&gt;For example:&lt;BR /&gt;calculate it by the frequency of TPMx_CNT, the value of TPMx_C0V and TPMx_C1V.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78179iC2B22F90C6DA4C8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 06:30:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measure-phase-between-2-signals-5kHz/m-p/802010#M48760</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-11-27T06:30:37Z</dc:date>
    </item>
  </channel>
</rss>

