<?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: Code for 1ms with LPTMR module</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627976#M37720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the later reply.&lt;/P&gt;&lt;P&gt;I am on vacation now and will be back to office at Oct. 8th. I will check this issue when I am back to office.&lt;/P&gt;&lt;P&gt;Thank you for the patience. Sorry for that may bring any inconvenience to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2016 12:53:47 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2016-10-03T12:53:47Z</dc:date>
    <item>
      <title>Code for 1ms withTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627966#M37710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to generate delay for my MICRO S32KXX for 1 ms second.&lt;/P&gt;&lt;P&gt;I have gone through number of post, which are related to LPTMR module to generate delay for application .&lt;/P&gt;&lt;P&gt;I also followed up the LPTMR module in K60P144M micro and tried here to write the code for generation dealy for 1 ms.&lt;/P&gt;&lt;P&gt;I want to use OSC0ERCLK clock for LPTMR module, my crystal is of 8 MHz.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached my code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;I have written the above code (attached as LPTMR_Code) for K60P144 as reference ,to implement code for my micro S32KXXX.Please give your feedback. if i have written right.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 15:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627966#M37710</guid>
      <dc:creator>yashkumar</dc:creator>
      <dc:date>2016-09-17T15:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627967#M37711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer below code to use LPTMR generate 1ms delay. The LPTMR module refer clock is LPO 1KHz clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/********************************************************************/&lt;BR /&gt;/*&lt;BR /&gt;&amp;nbsp;* Initialize the low power time to provide a delay measured in ms.&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* Parameters:&lt;BR /&gt;&amp;nbsp;*&amp;nbsp; count_val&amp;nbsp;&amp;nbsp; number of ms to delay&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* Returns:&lt;BR /&gt;&amp;nbsp;* None&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;void time_delay_ms(uint32 count_val)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; /* Make sure the clock to the LPTMR is enabled */&lt;BR /&gt;&amp;nbsp; SIM_SCGC5|=SIM_SCGC5_LPTIMER_MASK; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* Set the compare value to the number of ms to delay */&lt;BR /&gt;&amp;nbsp; LPTMR0_CMR = count_val; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* Set up LPTMR to use 1kHz LPO with no prescaler as its clock source */&lt;BR /&gt;&amp;nbsp; LPTMR0_PSR = LPTMR_PSR_PCS(1)|LPTMR_PSR_PBYP_MASK; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* Start the timer */&lt;BR /&gt;&amp;nbsp; LPTMR0_CSR |= LPTMR_CSR_TEN_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Wait for counter to reach compare value */&lt;BR /&gt;&amp;nbsp; while (!(LPTMR0_CSR &amp;amp; LPTMR_CSR_TCF_MASK));&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* Clear Timer Compare Flag */&lt;BR /&gt;&amp;nbsp; LPTMR0_CSR &amp;amp;= ~LPTMR_CSR_TEN_MASK;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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>Sun, 18 Sep 2016 07:40:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627967#M37711</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-09-18T07:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627968#M37712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui_Ma,&lt;/P&gt;&lt;P&gt;Thanks for reply, actually i have to work on S32K144 . This micro series&amp;nbsp; is new for me and i found that the LPTMR module in S32K144 mod is same as in K60P144&amp;nbsp; only different in clocking sources. In my application i have to provide delay using LPTMR module , LPTMR module should use the clock given by external crystal .&lt;/P&gt;&lt;P&gt;Please give your comment ,if i have written code right way. because i am little bit unconfident in clock configuration and also i think use of System Oscillator (external clock/internal reference) involves number of register ,which help me in understanding of clock configuration with accurate value in involved register .And so that i can be more confident enabling&amp;nbsp; the register of LPTMR right way to achieve desire time period&amp;nbsp; and also i can provide various time period with the help of various input clock option .&lt;/P&gt;&lt;P&gt;&amp;nbsp;Also i have one doubt what is the meaning of below line, as i have not seen this SIM module being used in above "clocking diagram (Fig:5.1) ". i know this enable or disable the LPTMR clock , but how this SIM module(circuit) is involve in clock provided by LPO in your written code also in my code&amp;nbsp; where i m using clock as oscillator clock .I have gone through this reference manual but not able to understand .&lt;/P&gt;&lt;P&gt;SIM_SCGC5|=SIM_SCGC5_LPTIMER_MASK;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 16:46:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627968#M37712</guid>
      <dc:creator>yashkumar</dc:creator>
      <dc:date>2016-09-18T16:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627969#M37713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you let me know which version of S32K144 reference manual&amp;nbsp; file you are using?&lt;/P&gt;&lt;P&gt;I check the S32K144 RM, the LPTMR clock source was controlled by PCC LPTMR0 register.&lt;/P&gt;&lt;P&gt;Customer need select the OSCCLK in PCS bits of PCC_LPTMR0 and configure LPTMR0_PSR register to get 1KHz clock.&lt;/P&gt;&lt;P&gt;The K60 product using SIM register to control clock enable to LPTRM module, while S32K144 using PCC_LPTMR0 register to control module clock enable.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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>Mon, 19 Sep 2016 02:19:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627969#M37713</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-09-19T02:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627970#M37714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you provide me reference manual here S32K144RM revision version 1 or any link where i can get it. I had tried but not found any where .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 10:22:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627970#M37714</guid>
      <dc:creator>yashkumar</dc:creator>
      <dc:date>2016-09-19T10:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627971#M37715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The S32K144 product is not released so far. The related reference manual need to sign NDA agreement at first.&lt;/P&gt;&lt;P&gt;So, please contact with your&lt;A href="http://www.nxp.com/about/about-nxp/worldwide-locations/worldwide-sales-offices/distributor-network:DISTRIBUTORS"&gt; local NXP distributor&lt;/A&gt; about NDA agreement issue.&lt;/P&gt;&lt;P&gt;Thank you for the understanding.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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>Tue, 20 Sep 2016 00:53:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627971#M37715</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-09-20T00:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627972#M37716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! for your support , I can understand &amp;nbsp;I have one more doubt :&lt;/P&gt;&lt;P&gt;In LPTMR compare mode,When the CNR equals the value of the CMR and increments, the following events occur:&lt;BR /&gt;• CSR[TCF] is set.&lt;BR /&gt;• LPTMR interrupt is generated if CSR[TIE] is also set.&lt;BR /&gt;• LPTMR hardware trigger is generated.&lt;BR /&gt;• CNR is reset if CSR[TFC] is clear&lt;/P&gt;&lt;P&gt;In above, hardware trigger is generated on micro pin. I want to disable this triggering on micro pin, &lt;BR /&gt;in case if i do not want signal on this pin to avoid triggering any module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 05:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627972#M37716</guid>
      <dc:creator>yashkumar</dc:creator>
      <dc:date>2016-09-21T05:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627973#M37717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LPTMR hardware trigger doesn't output to MCU pin, which just as trigger source to MCU internal modules, such as ADC module and etc.&lt;/P&gt;&lt;P&gt;The MCU modules could ignore the LPTMR hardware trigger with register setting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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, 21 Sep 2016 06:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627973#M37717</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-09-21T06:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627974#M37718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;Thanks for help again.So we need to care if i am using ADC module also in my project .Should i study&amp;nbsp;Trigger MUX Control (TRGMUX) module and its register for disabling the trigger out put from LPTMR to the adc.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 08:33:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627974#M37718</guid>
      <dc:creator>yashkumar</dc:creator>
      <dc:date>2016-09-30T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627975#M37719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And i have ,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On more point :&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;Which module controls the interrupt , generated by LPTMR , LPIT and FTM module ,if these modules are working as interrupt source .For this i have studied the &lt;STRONG&gt;3.2 Nested Vectored Interrupt Controller (NVIC)&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Configuration of reference manual ,&lt;/STRONG&gt; but here is on LPTMR module only for time&amp;nbsp;specific&amp;nbsp;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to know also for LPIT and FTM module. Also I have gone through the NVIC of cotex-M4 &amp;nbsp;on ARM site, but not found there specific to theses modules.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 08:34:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627975#M37719</guid>
      <dc:creator>yashkumar</dc:creator>
      <dc:date>2016-09-30T08:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms with LPTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627976#M37720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the later reply.&lt;/P&gt;&lt;P&gt;I am on vacation now and will be back to office at Oct. 8th. I will check this issue when I am back to office.&lt;/P&gt;&lt;P&gt;Thank you for the patience. Sorry for that may bring any inconvenience to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 12:53:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627976#M37720</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-10-03T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Code for 1ms withTMR module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627977#M37721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LPTMR is capable of triggering each ADC via TRGMUX. The TRGMUX ADC registers default value is trigger source disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each module has related interrupt enable bit, for example Low Power Timer Control Status Register (CSR) [TIE] bit control if the LPTMR interrupt enable or disable. While, it also need to enabled related interrupt at NVIC. &lt;BR /&gt;If you could contact with your local NXP FAE/Sales to get S32K144 Reference Manual of Preliminary - 0N77P Mask document (NDA agreement)?&lt;BR /&gt;If so, you could find the whole interrupt vector assignments table at Table 3-4 of below reference manual:&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/3038i506599ABEF13893F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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>Sat, 08 Oct 2016 05:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-for-1ms-withTMR-module/m-p/627977#M37721</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-10-08T05:46:34Z</dc:date>
    </item>
  </channel>
</rss>

