<?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: COP on KL16 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612178#M36244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read the RM again but still think it's a little bit unclear about COP behaviour when clocked from LPO.&lt;/P&gt;&lt;P&gt;I've done some practical tests and found out that COP reset does not happen even in VLPS longer than 1024ms (tried 2000ms). COP is working since endless loop invokes reset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this behaviour is convenient for me (since I need to "sleep" for more than 1024ms), it's not explicitly stated in RM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2016 08:23:36 GMT</pubDate>
    <dc:creator>petrkalandra</dc:creator>
    <dc:date>2016-10-31T08:23:36Z</dc:date>
    <item>
      <title>COP on KL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612176#M36242</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 little bit confused about how COP watchdog behave in VLPS mode on KL chips (KL16Z in my case).&lt;/P&gt;&lt;P&gt;Accroding to reference manual, the COP couter is zeroed but no hint given about that it is counting or not when clocking is configured to run from 1kHz LPO (since LPO is running in VLPS). Will the COP count (or invoke chip reset) after at most 1024ms spent in VLPS or it will not? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;If the 1 kHz clock source is selected, the COP counter is re-initialized to 0 upon entry to either Debug mode or Stop (including VLPS or LLS) mode. The counter begins from 0 upon exit from Debug mode or Stop mode.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 11:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612176#M36242</guid>
      <dc:creator>petrkalandra</dc:creator>
      <dc:date>2016-10-28T11:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: COP on KL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612177#M36243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the counter of COP module uses counting down mode, when counter reaches up to zero, the COP reset event happens. The timeout is dependent on&amp;nbsp; COPT and COPCLKS bits in SIM_COPC register. If you set the COPT as 2b'11 and set COPCLKS as 1b'0, the COP uses 1KHz LPO clock, the period is (2**10)*1ms=1024ms.&lt;/P&gt;&lt;P&gt;You can use PIT to generate an interrupt, in the ISR, you can feed dog by writting 0x55 and 0xAA to SIM_SRVCOP, it is okay, the PIT period must be less than 1024ms.&lt;/P&gt;&lt;P&gt;Pls refer to section 12.2.17 COP Control Register (SIM_COPC) in reference manual of Kl16.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 04:12:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612177#M36243</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-10-30T04:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: COP on KL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612178#M36244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read the RM again but still think it's a little bit unclear about COP behaviour when clocked from LPO.&lt;/P&gt;&lt;P&gt;I've done some practical tests and found out that COP reset does not happen even in VLPS longer than 1024ms (tried 2000ms). COP is working since endless loop invokes reset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this behaviour is convenient for me (since I need to "sleep" for more than 1024ms), it's not explicitly stated in RM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 08:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612178#M36244</guid>
      <dc:creator>petrkalandra</dc:creator>
      <dc:date>2016-10-31T08:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: COP on KL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612179#M36245</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;I have checked the data sheet of KL16, the LPO clock frequency is from 0.9KHz to 1.1KHz.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 10:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612179#M36245</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-10-31T10:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: COP on KL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612180#M36246</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;that gives 909ms to 1111ms. I used approx. 2000ms and reset did not happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Petr K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 07:40:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612180#M36246</guid>
      <dc:creator>petrkalandra</dc:creator>
      <dc:date>2016-11-01T07:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: COP on KL16</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612181#M36247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Petr,&lt;/P&gt;&lt;P&gt;Can the COP reset the chip if you enable COP and do not feed the COP in VLPS mode? If it is, pls post your code so that I can have a test.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 08:20:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/COP-on-KL16/m-p/612181#M36247</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-11-02T08:20:08Z</dc:date>
    </item>
  </channel>
</rss>

