<?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 MKL17Z256 TPM with OSCERCLK in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL17Z256-TPM-with-OSCERCLK/m-p/639315#M38643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL style="margin-top: 0cm;"&gt;&lt;LI style="margin-left: 0cm;"&gt;I am using&amp;nbsp;a 32.768 kHz &lt;STRONG&gt;ABRACON ABS25-32.768KHZ-T&lt;/STRONG&gt;&amp;nbsp;crystal (same as the&amp;nbsp;FRDM-KL03Z) connected to pins&amp;nbsp;EXTAL0 /&amp;nbsp;XTAL0&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;The crystal &amp;nbsp;has a CL of&amp;nbsp;12.5pF. I am configuring a load capacitance of&amp;nbsp;21pF&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;TPM is configured for&amp;nbsp;&lt;SPAN&gt;OSCERCLK clock&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;When I execute the application in KDS with the PEMicro debugger I have no problem generating the proper PWM output&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;If I execute the flashed application with no debugger there is no PWM signal generated&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume there is some kind of initialization being done while executing with the debugger that Processor Expert or myself are not doing. If the TPM is clocked with &lt;SPAN&gt;MCGIRCLK there is no problem while debugging or stand-alone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 21:40:23 GMT</pubDate>
    <dc:creator>aarondiamant</dc:creator>
    <dc:date>2017-02-15T21:40:23Z</dc:date>
    <item>
      <title>MKL17Z256 TPM with OSCERCLK</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL17Z256-TPM-with-OSCERCLK/m-p/639315#M38643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL style="margin-top: 0cm;"&gt;&lt;LI style="margin-left: 0cm;"&gt;I am using&amp;nbsp;a 32.768 kHz &lt;STRONG&gt;ABRACON ABS25-32.768KHZ-T&lt;/STRONG&gt;&amp;nbsp;crystal (same as the&amp;nbsp;FRDM-KL03Z) connected to pins&amp;nbsp;EXTAL0 /&amp;nbsp;XTAL0&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;The crystal &amp;nbsp;has a CL of&amp;nbsp;12.5pF. I am configuring a load capacitance of&amp;nbsp;21pF&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;TPM is configured for&amp;nbsp;&lt;SPAN&gt;OSCERCLK clock&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;When I execute the application in KDS with the PEMicro debugger I have no problem generating the proper PWM output&lt;/LI&gt;&lt;LI style="margin-left: 0cm;"&gt;If I execute the flashed application with no debugger there is no PWM signal generated&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume there is some kind of initialization being done while executing with the debugger that Processor Expert or myself are not doing. If the TPM is clocked with &lt;SPAN&gt;MCGIRCLK there is no problem while debugging or stand-alone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:40:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL17Z256-TPM-with-OSCERCLK/m-p/639315#M38643</guid>
      <dc:creator>aarondiamant</dc:creator>
      <dc:date>2017-02-15T21:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: MKL17Z256 TPM with OSCERCLK</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL17Z256-TPM-with-OSCERCLK/m-p/639316#M38644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working now.&lt;/P&gt;&lt;P&gt;The problem was that Cpu.c calls&amp;nbsp;&lt;STRONG&gt;TPM_DRV_PwmStart(tpmTmr1_IDX, &amp;amp;tpmTmr1_ChnConfig0, 0U);&lt;/STRONG&gt; and I was calling it again in main.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When debugging, by default execution stops in main.c at&amp;nbsp;&lt;STRONG&gt;PE_low_level_init();&lt;/STRONG&gt;. Apparently if there is enough time between calls to&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;PM_DRV_PwmStart(tpmTmr1_IDX, &amp;amp;tpmTmr1_ChnConfig0, 0U);&lt;/STRONG&gt; there is "no problem". So when executing from flash with no debugger, the 2 calls happen very quickly and the TPM doesn't work. Removing the call from main.c solves the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 01:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL17Z256-TPM-with-OSCERCLK/m-p/639316#M38644</guid>
      <dc:creator>aarondiamant</dc:creator>
      <dc:date>2017-02-16T01:56:07Z</dc:date>
    </item>
  </channel>
</rss>

