<?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: Why does the Kinetis K10 Low-Power Timer only count when I try writing to LPTMR0_CNR? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-the-Kinetis-K10-Low-Power-Timer-only-count-when-I-try/m-p/594645#M34874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan Phillips&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the LPTMR chapter of the Reference Manual for kinetis K10, in the 4.5 section "LPTMR counter", they explain why you need to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1330iFB37081060B780D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answer your question, please tell me if you have other question&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&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 &lt;STRONG&gt;Correct Answer&lt;/STRONG&gt; button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 23:55:43 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2016-08-11T23:55:43Z</dc:date>
    <item>
      <title>Why does the Kinetis K10 Low-Power Timer only count when I try writing to LPTMR0_CNR?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-the-Kinetis-K10-Low-Power-Timer-only-count-when-I-try/m-p/594644#M34873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a project that's almost done and we're going to use the LPTMR (low-power timer) as a counter with a pulse input. When I go to read the LPTMR_CNR like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lptmrCounta = LPTMR0_CNR;&lt;/P&gt;&lt;P&gt;lptmrCountb = LPTMR0_CNR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not work. All I get is a 0 no matter how many times I create a pulse. However, when I try to write to the CNR first, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPTMR0_CNR = 0;&lt;/P&gt;&lt;P&gt;lptmrCounta = LPTMR0_CNR;&lt;/P&gt;&lt;P&gt;lptmrCountb = LPTMR0_CNR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works every time. The documentation shows that the CNR is read only and it says nothing about writing to it before reading it. So why does it work only when I try to write to it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 20:57:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-the-Kinetis-K10-Low-Power-Timer-only-count-when-I-try/m-p/594644#M34873</guid>
      <dc:creator>ryan1</dc:creator>
      <dc:date>2016-08-11T20:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Kinetis K10 Low-Power Timer only count when I try writing to LPTMR0_CNR?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-the-Kinetis-K10-Low-Power-Timer-only-count-when-I-try/m-p/594645#M34874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan Phillips&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the LPTMR chapter of the Reference Manual for kinetis K10, in the 4.5 section "LPTMR counter", they explain why you need to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1330iFB37081060B780D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answer your question, please tell me if you have other question&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&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 &lt;STRONG&gt;Correct Answer&lt;/STRONG&gt; button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 23:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-the-Kinetis-K10-Low-Power-Timer-only-count-when-I-try/m-p/594645#M34874</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-08-11T23:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the Kinetis K10 Low-Power Timer only count when I try writing to LPTMR0_CNR?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-the-Kinetis-K10-Low-Power-Timer-only-count-when-I-try/m-p/594646#M34875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you point me to where you got the new version of the reference manual? The one on the product page (&lt;A href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/k-series-performance-m4/k1x-mainstream/kinetis-k10-72-mhz-mixed-signal-integration-microcontrollers-mcus-based-on-arm-cortex-m4-core:K10_72?fpsp=1&amp;amp;tab=Documentation_Tab" title="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/k-series-performance-m4/k1x-mainstream/kinetis-k10-72-mhz-mixed-signal-integration-microcontrollers-mcus-based-on-arm-cortex-m4-core:K10_72?fpsp=1&amp;amp;tab=Documentation_Tab"&gt;ARM Cortex-M4|Kinetis K10 72 MHz 32-bit MCUs|NXP)&lt;/A&gt; is Rev 1.1 from December of 2012 but it says it was modified in June of last year. Rev 1.1 does not include the note about the CNR being written to before reading it. it just says 2 read accesses are recommended:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CNR cannot be initialized, but can be read at any time. Reading the CNR at the time&lt;/P&gt;&lt;P&gt;it is incrementing may return invalid data due to synchronization of the read data bus. If it&lt;/P&gt;&lt;P&gt;is necessary for software to read the CNR, it is recommended that two read accesses are&lt;/P&gt;&lt;P&gt;performed and software verifies that the same data was returned for both reads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 11:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-the-Kinetis-K10-Low-Power-Timer-only-count-when-I-try/m-p/594646#M34875</guid>
      <dc:creator>ryan1</dc:creator>
      <dc:date>2016-08-12T11:46:59Z</dc:date>
    </item>
  </channel>
</rss>

