<?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 Re: FRDMKL02Z configure synchronized PWM and ADC in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDMKL02Z-configure-synchronized-PWM-and-ADC/m-p/464720#M3522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andree,&lt;/P&gt;&lt;P&gt;1. Yes, it can generate a 100 Hz signal . which freescale example do you mentioned ?&lt;/P&gt;&lt;P&gt;If you install KDS IDE, you can create one PE project ,then you can easily configure the PWM frequency to 100hz :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56949iF2411EB9C6AC5AED/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. About your this question "acquire a sensor signal only when the previous signal is high", do you want&lt;/P&gt;&lt;P&gt;capture the high signal ? You can use the capture mode of Timer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57023i009E8C2BCA3E9C43/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can also use one GPIO input interrupt function. If i misunderstand your meaning , please tell me .&lt;/P&gt;&lt;P&gt;About the synchronize the TPM signal with the ADC ,&amp;nbsp; how about in the TPM interrupt start the ADC .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&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>Thu, 05 May 2016 09:19:49 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-05-05T09:19:49Z</dc:date>
    <item>
      <title>FRDMKL02Z configure synchronized PWM and ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDMKL02Z-configure-synchronized-PWM-and-ADC/m-p/464719#M3521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm new in the discussion forums, and of course I apologise in advance, in case I don't do it right.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, I'm working with the FRDMKL02Z kit, and nowadays I'm using IAR as development tool.&lt;/P&gt;&lt;P&gt;I want to generate a PWM signal (100 Hz and 10% duty cycle), and I realised that there is a similar freescale example using the TPM module. This freescale example works fine with the preconfigured frequency of 120 Khz, but it does not work fine when the frequency is changed to 100 Hz (in this case a 555 Hz signal is sourced).&lt;/P&gt;&lt;P&gt;These are my questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is it possible to generate a 100 Hz (and 10% duty cycle) signal with this module? if yes, how could we configure it?&lt;/LI&gt;&lt;LI&gt;Only one more thing, we would like to acquire a sensor signal only when the previous signal is high, do you have any suggestions? is it possible to synchronize the TPM signal with the ADC?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 09:26:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDMKL02Z-configure-synchronized-PWM-and-ADC/m-p/464719#M3521</guid>
      <dc:creator>albt</dc:creator>
      <dc:date>2016-04-21T09:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMKL02Z configure synchronized PWM and ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDMKL02Z-configure-synchronized-PWM-and-ADC/m-p/464720#M3522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andree,&lt;/P&gt;&lt;P&gt;1. Yes, it can generate a 100 Hz signal . which freescale example do you mentioned ?&lt;/P&gt;&lt;P&gt;If you install KDS IDE, you can create one PE project ,then you can easily configure the PWM frequency to 100hz :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56949iF2411EB9C6AC5AED/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. About your this question "acquire a sensor signal only when the previous signal is high", do you want&lt;/P&gt;&lt;P&gt;capture the high signal ? You can use the capture mode of Timer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57023i009E8C2BCA3E9C43/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can also use one GPIO input interrupt function. If i misunderstand your meaning , please tell me .&lt;/P&gt;&lt;P&gt;About the synchronize the TPM signal with the ADC ,&amp;nbsp; how about in the TPM interrupt start the ADC .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&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>Thu, 05 May 2016 09:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDMKL02Z-configure-synchronized-PWM-and-ADC/m-p/464720#M3522</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-05-05T09:19:49Z</dc:date>
    </item>
  </channel>
</rss>

