<?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: What is the frequency range for external clock inputs for KL02?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578477#M34320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Because the lptmr's time base can be between 900 and 1100us, I see those variances in my clock. It's actually quite a bit, up to 10% error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need something more accurate so I am planning to use one of the TPMs to generate a periodic time base, ideally a 1ms interrupt. If I use the 47.972352MHz system clock and set a TPM to output-compare mode with a compare value of 47972, I would expect to get about a 1ms time base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my problem: I started by using the output-compare driver example. Compare value is set to 0x1000 and I see a 366Hz signal at the output. But when I change that compare value, the output frequency stays the same. &lt;BR /&gt;What am I doing wrong here?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 00:22:48 GMT</pubDate>
    <dc:creator>timjones22</dc:creator>
    <dc:date>2016-07-11T00:22:48Z</dc:date>
    <item>
      <title>What is the frequency range for external clock inputs for KL02?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578473#M34316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a controller with a clock accuracy better than what the internal clocks can deliver so I need to connect an external clock signal.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the frequency range of an external clock at EXTAL0?&lt;/LI&gt;&lt;LI&gt;I am currently using a FRDM evaluation kit. Is there any example code available, how to set the KL02 up to run on the higher frequency. I understand that default settings are using the external 32.768kHz crystal in conjunction with the internal clock generator&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 00:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578473#M34316</guid>
      <dc:creator>timjones22</dc:creator>
      <dc:date>2016-06-28T00:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: What is the frequency range for external clock inputs for KL02?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578474#M34317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;If you want to set KL02 run on the higher frequency (such as below red clock route), the frequency range of an external clock at EXTAL0 should meet the "ffll_ref FLL reference frequency range" in &lt;A href="http://cache.nxp.com/files/32bit/doc/data_sheet/KL02P32M48SF0.pdf?fpsp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;KL02P32M48SF0.pdf&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clocking diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60478i9B08BBFAF7F738E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clocking diagram.png" alt="Clocking diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FLL reference frequency range.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60489i6513269A720F385B/image-size/large?v=v2&amp;amp;px=999" role="button" title="FLL reference frequency range.png" alt="FLL reference frequency range.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Example code can be found after download &lt;A href="http://cache.nxp.com/files/32bit/software_tools/KINETIS-EXPERT-TOOL.html?fpsp=1&amp;amp;WT_TYPE=Software%20Development%20Kits&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=html&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.html"&gt;SDK_2.0_MKL02Z32xxx4&lt;/A&gt; package( for example: ...\SDK_2.0_MKL02Z32xxx4\boards\frdmkl02z\driver_examples\mcg)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="driver_examples.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60526iCF75A35C4A0EC435/image-size/large?v=v2&amp;amp;px=999" role="button" title="driver_examples.png" alt="driver_examples.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Select Configuration.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60520i31294BDF04C606C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select Configuration.png" alt="Select Configuration.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Build SDK Package and download.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60535i78DE64499317F617/image-size/large?v=v2&amp;amp;px=999" role="button" title="Build SDK Package and download.png" alt="Build SDK Package and download.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need read the "Kinetis SDK API Reference Manual MKL02Z4_v2.0.0.pdf".( It's in ...\SDK_2.0_MKL02Z32xxx4\docs folder.)&lt;/P&gt;&lt;P&gt;If you have never used Kinetis SDK2.0, "Getting Started with Kinetis SDK (KSDK) v.2.0.pdf" is recommand read first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 09:01:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578474#M34317</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-06-30T09:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is the frequency range for external clock inputs for KL02?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578475#M34318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that explains it. Did a bit more reading in the meantime and hope to have a slightly better understanding by now.&lt;/P&gt;&lt;P&gt;I was actually thinking of something like using a 24-48MHz oscillator at Extal0 and routing it straight through with MCGOUTCLK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I read out of the SDK examples, they are all using the external 32.768kHz as clock source and generating a 47.972352MHz system clock, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, my initial problem still exists: when I am running LPTMR driver example the time is not exactly 1s but about 1.0007s. Which is no real issue on a 1s timebase. But when I switched to 1ms by changing LPTMR_USEC_COUNT to 1000[us], the time base was 1.7ms, which is far out of range.&lt;/P&gt;&lt;P&gt;Looks like I got something wrong with the IRQ rather then system clock?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 22:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578475#M34318</guid>
      <dc:creator>timjones22</dc:creator>
      <dc:date>2016-06-30T22:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the frequency range for external clock inputs for KL02?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578476#M34319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;1. I think you can using a 24-48MHz oscillator at Extal0 and routing it straight through with MCGOUTCLK.(such as below red clock route)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Figure 5-1. Clocking diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3137i464433A3EBA5B4C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Figure 5-1. Clocking diagram.png" alt="Figure 5-1. Clocking diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="External reference.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26544i579CCEA9785BCEFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="External reference.png" alt="External reference.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. correct&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3218iEC12A1132E457731/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock.png" alt="Clock.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="OUTDIV1 SIM_CLKDIV1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3268i64A4B43CB37A3EB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="OUTDIV1 SIM_CLKDIV1.png" alt="OUTDIV1 SIM_CLKDIV1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. It is not caused by system clock, this example use 1kHz LPO as clock source of LPTMR. You need set the LPTMRx_CMR=0x00 to get a 1ms IRQ. Please try to change LPTMR_USEC_COUNT=999, or use LPTMR_SetTimerPeriod(LPTMR0,0);&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPTMRx_CMR.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26924i119FFCF435CD449A/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPTMRx_CMR.png" alt="LPTMRx_CMR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPTMR_USEC_COUNT.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3310i65E7D9F382AAC172/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPTMR_USEC_COUNT.png" alt="LPTMR_USEC_COUNT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Observe the waveform on LED_Red (Pin7 J8 FRDM-KL02Z). The example toggle that pin in LPTMR_LED_HANDLER().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 05:00:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578476#M34319</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-07-01T05:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: What is the frequency range for external clock inputs for KL02?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578477#M34320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Because the lptmr's time base can be between 900 and 1100us, I see those variances in my clock. It's actually quite a bit, up to 10% error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need something more accurate so I am planning to use one of the TPMs to generate a periodic time base, ideally a 1ms interrupt. If I use the 47.972352MHz system clock and set a TPM to output-compare mode with a compare value of 47972, I would expect to get about a 1ms time base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my problem: I started by using the output-compare driver example. Compare value is set to 0x1000 and I see a 366Hz signal at the output. But when I change that compare value, the output frequency stays the same. &lt;BR /&gt;What am I doing wrong here?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 00:22:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578477#M34320</guid>
      <dc:creator>timjones22</dc:creator>
      <dc:date>2016-07-11T00:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the frequency range for external clock inputs for KL02?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578478#M34321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found it. Just realised that I have to alter MOD to set different frequencies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 00:30:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578478#M34321</guid>
      <dc:creator>timjones22</dc:creator>
      <dc:date>2016-07-11T00:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: What is the frequency range for external clock inputs for KL02?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578479#M34322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;The TPM period when using up counting is (MOD + 0x0001) × period of the TPM counter clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Example of the output compare mode when the match toggles the channel.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36203iA5CD9F5C7981198C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example of the output compare mode when the match toggles the channel.png" alt="Example of the output compare mode when the match toggles the channel.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 01:29:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-is-the-frequency-range-for-external-clock-inputs-for-KL02/m-p/578479#M34322</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-07-12T01:29:42Z</dc:date>
    </item>
  </channel>
</rss>

