<?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: KLO3: Using TPM0 to trigger TPM1? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KLO3-Using-TPM0-to-trigger-TPM1/m-p/669082#M41116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sara Stout-Grandy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As you know, the TPM counter has two modes of operations:&lt;/P&gt;&lt;P&gt;• up counting ： SC[CPWMS] = 0.&lt;BR /&gt;• up-down counting ：SC[CPWMS] = 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, if you want to force the TPM1 counter reload the data. What data you want to reload?&lt;/P&gt;&lt;P&gt;&amp;nbsp; The TPMx_CNT register, Writing any value to COUNT also clears the counter.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you just want to reload the TPM1 COUNT to 0 when the TPM0 overflow, you can write the TPM1 COUNT directly in the TPM0 overflow interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you want to modify the MOD register, please refer to the reference manual to operate it:&lt;/P&gt;&lt;P&gt;31.5.8.1 MOD Register Update&lt;BR /&gt;If (CMOD[1:0] = 0:0) then MOD register is updated when MOD register is written.&lt;BR /&gt;If (CMOD[1:0] ≠ 0:0), then MOD register is updated according to the CPWMS bit, that&lt;BR /&gt;is:&lt;BR /&gt;• If the selected mode is not CPWM then MOD register is updated after MOD register&lt;BR /&gt;was written and the TPM counter changes from MOD to zero.&lt;BR /&gt;• If the selected mode is CPWM then MOD register is updated after MOD register was&lt;BR /&gt;written and the TPM counter changes from MOD to (MOD – 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&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;Kerry&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>Fri, 14 Jul 2017 02:08:40 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-07-14T02:08:40Z</dc:date>
    <item>
      <title>KLO3: Using TPM0 to trigger TPM1?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KLO3-Using-TPM0-to-trigger-TPM1/m-p/669081#M41115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the KL03 on KDS. I'm trying create a BPSK output signal that is essentially an output from the TPM1 timer which would ideally flip phase based on an interrupt from TPM0 whenever required. To do this, I want to use the TPM0 overflow interrupt as a trigger source for the TPM1 timer to force it to reload it's counter and hence flip its phase. Is that possible? My attempts at it so far have not worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do you know if it is possible to trigger one timer off of an event generated on the other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:15:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KLO3-Using-TPM0-to-trigger-TPM1/m-p/669081#M41115</guid>
      <dc:creator>sarastout-grand</dc:creator>
      <dc:date>2017-07-13T13:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: KLO3: Using TPM0 to trigger TPM1?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KLO3-Using-TPM0-to-trigger-TPM1/m-p/669082#M41116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sara Stout-Grandy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As you know, the TPM counter has two modes of operations:&lt;/P&gt;&lt;P&gt;• up counting ： SC[CPWMS] = 0.&lt;BR /&gt;• up-down counting ：SC[CPWMS] = 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, if you want to force the TPM1 counter reload the data. What data you want to reload?&lt;/P&gt;&lt;P&gt;&amp;nbsp; The TPMx_CNT register, Writing any value to COUNT also clears the counter.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you just want to reload the TPM1 COUNT to 0 when the TPM0 overflow, you can write the TPM1 COUNT directly in the TPM0 overflow interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you want to modify the MOD register, please refer to the reference manual to operate it:&lt;/P&gt;&lt;P&gt;31.5.8.1 MOD Register Update&lt;BR /&gt;If (CMOD[1:0] = 0:0) then MOD register is updated when MOD register is written.&lt;BR /&gt;If (CMOD[1:0] ≠ 0:0), then MOD register is updated according to the CPWMS bit, that&lt;BR /&gt;is:&lt;BR /&gt;• If the selected mode is not CPWM then MOD register is updated after MOD register&lt;BR /&gt;was written and the TPM counter changes from MOD to zero.&lt;BR /&gt;• If the selected mode is CPWM then MOD register is updated after MOD register was&lt;BR /&gt;written and the TPM counter changes from MOD to (MOD – 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&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;Kerry&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>Fri, 14 Jul 2017 02:08:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KLO3-Using-TPM0-to-trigger-TPM1/m-p/669082#M41116</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-14T02:08:40Z</dc:date>
    </item>
  </channel>
</rss>

