<?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: TPM period (double time)</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323482#M14728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mesure the period with the help of an oscilloscope. Blue LED is set during 2ms and clear 2ms too. So there is a 4ms of period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like Mark said above, a divider by 2 on MCGIRCLK could be the reason of this unexpected double times period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;Have a great day too :smileyhappy: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 11:25:31 GMT</pubDate>
    <dc:creator>mr_max</dc:creator>
    <dc:date>2014-07-23T11:25:31Z</dc:date>
    <item>
      <title>TPM period (double time)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323478#M14724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello :smileyhappy:, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to use TPM0 timer with FRDM-KL25Z in order to create simple delay method but there is something I don't understand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TPM0 work well after initialization but its period isn't like what I expected. If I test a &lt;EM&gt;n&lt;/EM&gt; second delay, the delay loop will be 2&lt;EM&gt;n &lt;/EM&gt;seconds. Double of time ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a quick configuration for 1ms delay : &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I loaded 1000 to MOD register. &lt;/LI&gt;&lt;LI&gt;MCGIRCLK is routed to TPM modul and run @4MHz (fast IRC).&lt;/LI&gt;&lt;LI&gt;Prescale /4.&amp;nbsp; -&amp;gt; input module counter&amp;nbsp; = 1MHz &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; If I read KL25Z reference manual. The period of TMP0 in up counting mode is =&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;(MOD+1)* Period of timer module counter clock = 1001*(1/1MHz) = 1ms. (Am I right ?) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture d’écran 2014-07-22 à 18.43.46.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45180i32066C299470D5AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2014-07-22 à 18.43.46.png" alt="Capture d’écran 2014-07-22 à 18.43.46.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;What going on with TPM0 ?!&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;note : &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;I'm using Keil v5 (no PE). &lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;GPIO_pin(); is custom method &lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;My code&lt;/SPAN&gt; : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 10pt; font-family: 'courier new', courier;"&gt;#include "MKL25Z4.h"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;#include "GPIO.h"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;#define PTB_18 0x40000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;#define PTB_19 0x80000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 10pt; font-family: 'courier new', courier;"&gt;#define PTD_01 0x02&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 10pt; font-family: 'courier new', courier;"&gt;int main (void)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; static int i;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; SystemInit();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; MCG-&amp;gt;C2 |= MCG_C2_IRCS_MASK;//Fast internal reference clock (4MHz) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; SystemCoreClockUpdate();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; SIM-&amp;gt;SCGC5 = SIM_SCGC5_PORTB_MASK|SIM_SCGC5_PORTD_MASK;//Clock gate PORTB et D activé &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; PORTB-&amp;gt;PCR[18] = PORT_PCR_MUX(0x01);//MUX Pin 18 PTB config en GPIO (Alt 1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; PORTB-&amp;gt;PCR[19] = PORT_PCR_MUX(0x01);//MUX Pin 19 PTB config en GPIO (Alt 1) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; PORTD-&amp;gt;PCR[1] = PORT_PCR_MUX(0x01);//MUX Pin 1 PTD config en GPIO (Alt 1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; GPIO_config(_PTB,(PTB_18|PTB_19),OUT);//Config direction Port B pin 18,19 output&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; GPIO_config(_PTD,PTD_01,OUT);//Config direction Port D pin 1 output&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; GPIO_pin(_PTB,(PTB_18|PTB_19),_PDOR);//Init port B (LED R,V OFF)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; GPIO_pin(_PTD,PTD_01,_PDOR);//init port D (LED B OFF)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; //OSC INT = 4MHz &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; //TPM0 init&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; SIM-&amp;gt;SCGC6 |= SIM_SCGC6_TPM0_MASK;//TPM0 clock activé&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; SIM-&amp;gt;SOPT2 |= SIM_SOPT2_TPMSRC(0x03);//TPM clock source -&amp;gt; MCGIRCLK = 4MHz&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; TPM0-&amp;gt;SC = TPM_SC_CMOD(0x00);//LPTPM desactivé &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; TPM0-&amp;gt;SC |= TPM_SC_PS(0x01);//Prescaler /4 =&amp;gt; 4MHz/4 = 1MHz =&amp;gt; T = 1µs&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; //TPM0-&amp;gt;SC &amp;amp;= !TPM_SC_CPWMS_MASK;//Compte de zéro à MOD reg&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; TPM0-&amp;gt;MOD = TPM_MOD_MOD(10);//1000*1µs = 1ms&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; TPM0-&amp;gt;SC |= TPM_SC_TOF_MASK;//Reset TOF bit&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; TPM0-&amp;gt;SC |= TPM_SC_CMOD(0x01);//LPTPM activé compteur interne &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; while(1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; GPIO_pin(_PTD,1,_PCOR);//Set blue LED&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; while((TPM0-&amp;gt;SC &amp;amp; TPM_SC_TOF_MASK)!=TPM_SC_TOF_MASK);//Poll TOF bit &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; TPM0-&amp;gt;SC |= TPM_SC_TOF_MASK;//clear TOF &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt; GPIO_pin(_PTD,1,_PSOR);//clear bleu LED&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; while((TPM0-&amp;gt;SC &amp;amp; TPM_SC_TOF_MASK)!=TPM_SC_TOF_MASK);//Poll TOF bit &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; TPM0-&amp;gt;SC |= TPM_SC_TOF_MASK;//clear TOF &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 10pt; font-family: 'courier new', courier;"&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 16:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323478#M14724</guid>
      <dc:creator>mr_max</dc:creator>
      <dc:date>2014-07-22T16:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: TPM period (double time)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323479#M14725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maxime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that selecting MCGIRCLK as TPM clock actually connects to MCGIRCLK/2. This is not just for the KL25 but for all KL devices.&lt;/P&gt;&lt;P&gt;If you select the slow internal clock (32kHz) as reference instead of the fast internal clock (4MHz) the effect is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that you need to set half the value that you would set if the clock was (really) MCGIRCLK. (that is, perform the calculations for MCGIRCLK/2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of the OSCERCLK, MCGFLLCLK or MCGPPLCLK/2 sources the calculation is correct, which is what leads me to believe that there is an extra divide by 2 in the MCGIRCLK path that is not mentioned in the user manuals.&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>Tue, 22 Jul 2014 20:10:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323479#M14725</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-07-22T20:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: TPM period (double time)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323480#M14726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxtime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you measure the period? did you get it from the blue LED? Per your code, this LED was&amp;nbsp; toggled in the TOF event of TPM, so the period of waveform on blue LED would be double time of TPM period, for example, this LED was turned on for 1ms, and then turned off for the next 1ms, and so on. so that you will observe a 2ms period waveform on the blue LED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;B.R&lt;BR /&gt;Kan&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>Wed, 23 Jul 2014 05:54:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323480#M14726</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-07-23T05:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: TPM period (double time)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323481#M14727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, maybe there is a divider. If I set prescale by 2 instead of 4, my delay method is correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why Freescale didn't show it in to the user manual ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 11:13:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323481#M14727</guid>
      <dc:creator>mr_max</dc:creator>
      <dc:date>2014-07-23T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: TPM period (double time)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323482#M14728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mesure the period with the help of an oscilloscope. Blue LED is set during 2ms and clear 2ms too. So there is a 4ms of period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like Mark said above, a divider by 2 on MCGIRCLK could be the reason of this unexpected double times period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;Have a great day too :smileyhappy: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 11:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323482#M14728</guid>
      <dc:creator>mr_max</dc:creator>
      <dc:date>2014-07-23T11:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: TPM period (double time)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323483#M14729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information! Actually there is no divider by 2 on MCGIRCLK,&amp;nbsp; but there is a divider named as FCRDIV following the 4MHz IRC and right before it becomes MCGIRCLK, and the default value for FCRDIV is 1 meaning that Divide Factor is 2. so I am suspecting if you didn't change the value in MCG_SC[FCRDIV] in your application code so that MCGIRCLK is 2MHz for your case, and therefore you would meet such issue. Would you please help to confirm that? Please kindly refer to the following for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45194iC02947299BFD90F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1-1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45195iB7BD0F4C7C9F2FE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="1-1.png" alt="1-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45196i37AC6F14F9BB8DDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;B.R&lt;BR /&gt;Kan&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>Wed, 23 Jul 2014 13:11:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323483#M14729</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-07-23T13:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: TPM period (double time)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323484#M14730</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;&lt;/P&gt;&lt;P&gt;I made a mistake by writing that divide by 2 was generally in the MCGIRCLK path because it is &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; in the slow IRC path but only in the fast IRC, whereby the default value of the FCRDIV explains the fact.&lt;/P&gt;&lt;P&gt;If the FCRDIV value is written to 0 the TPM clock is then 4MHz rather than 2MHz and the calculations are all as expected.&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>Wed, 23 Jul 2014 13:34:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323484#M14730</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-07-23T13:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: TPM period (double time)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323485#M14731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write ! I didn't notice it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Kan. It's work very well now :smileyhappy: , I can go further now with &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;UART, I2C and then I2S (on FRDM-KL26Z and Sparkfun Codec Shield). Can't wait to start it ! &lt;/SPAN&gt;:smileygrin:&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 13:56:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TPM-period-double-time/m-p/323485#M14731</guid>
      <dc:creator>mr_max</dc:creator>
      <dc:date>2014-07-23T13:56:58Z</dc:date>
    </item>
  </channel>
</rss>

