<?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: LPTMR keep time and generate hardware trigger in VLPS in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711479#M43672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I overlooked the prescaler register.... Well then this is just what I want. I'm not looking for accuracy so this is just perfect. Thank very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 14:57:57 GMT</pubDate>
    <dc:creator>ppd</dc:creator>
    <dc:date>2017-08-31T14:57:57Z</dc:date>
    <item>
      <title>LPTMR keep time and generate hardware trigger in VLPS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711475#M43668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to generate a hardware trigger every 10ms or so from LPTMR to TSI while the MCU is in VLPS. But&amp;nbsp;I also want to know for how long (measured in microseconds) I've been in VLPS once I get out of it. Can I do both of these things&amp;nbsp;at the same time with the LPTMR? If not, is there any other way of achieving this? I'm using a KL05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 14:47:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711475#M43668</guid>
      <dc:creator>ppd</dc:creator>
      <dc:date>2017-08-30T14:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPTMR keep time and generate hardware trigger in VLPS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711476#M43669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use the RTC (you can also run it from the same clock as the LPTMR) but then has no restrictions, such as the amount of time that it can measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FKL_RTC.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/KL_RTC.html&lt;/A&gt;&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, 30 Aug 2017 22:09:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711476#M43669</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-08-30T22:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPTMR keep time and generate hardware trigger in VLPS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711477#M43670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the RTC increments every second (if external an external 32.768kHz clock is used) or every 32 seconds (if the internal LPO clock is used). Not good enough. I need the time in at least multiple of tens of milliseconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid I'm going to have to use TPM with external clock source (for lowest power). Unfortunately this means adding an external crystal (which I don't have right now and the PCB&amp;nbsp;is already very crowded) and accepting an additional ~30uA in current consumption&amp;nbsp;to keep the TPM running in VLPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone having a better idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 04:54:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711477#M43670</guid>
      <dc:creator>ppd</dc:creator>
      <dc:date>2017-08-31T04:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPTMR keep time and generate hardware trigger in VLPS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711478#M43671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RTC has a pre-scaler register called RTC_TPR which counts at the clock rate. This allows 1ms resolution from LPO or 30us resolution with external 32kHz.&lt;/P&gt;&lt;P&gt;&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/27778i6D8F08F0B5F0CA7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have crossed out the 32kHz clock since it actually increments at the "selected" clock rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beware that the LPO is not very accurate so there may be several % of drift.&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>Thu, 31 Aug 2017 11:13:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711478#M43671</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-08-31T11:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPTMR keep time and generate hardware trigger in VLPS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711479#M43672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I overlooked the prescaler register.... Well then this is just what I want. I'm not looking for accuracy so this is just perfect. Thank very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 14:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPTMR-keep-time-and-generate-hardware-trigger-in-VLPS/m-p/711479#M43672</guid>
      <dc:creator>ppd</dc:creator>
      <dc:date>2017-08-31T14:57:57Z</dc:date>
    </item>
  </channel>
</rss>

