<?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 Core watchdog timer - M52259 in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Core-watchdog-timer-M52259/m-p/147115#M3374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OS : MQX 3.2&lt;BR /&gt;Controller : M52259&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the core watchdog timer for MCF52259.&lt;BR /&gt;I have the following queries:&lt;BR /&gt;1) The timer interrupt flag always remains 1. The reference manual says that writing a 1 to this bit in CWCR register would clear the interrupt request.&lt;BR /&gt;The code used is as given below:&lt;BR /&gt;//disable the timer&lt;BR /&gt;MCF_SCM_CWCR &amp;amp;= 0x7F;&lt;BR /&gt;//service the timer&lt;BR /&gt;MCF_SCM_CWSR = 0x55;&lt;BR /&gt;MCF_SCM_CWSR = 0xAA;&lt;BR /&gt;//clear the interrupt request&lt;BR /&gt;MCF_SCM_CWCR = 0x01;&lt;BR /&gt;MCF_SCM_CWCR |= 0x01;&lt;/P&gt;&lt;P&gt;Both the statements above makes the value of CWCR to be 0x01. The interrupt request is not cleared.&lt;/P&gt;&lt;P&gt;How can I clear it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) The reference manual says a value of '010' for CWT in CWCR gives a timeperiod of 2^13 bus clock frequency. If the bus frequency is 48Mhz, what would be the timeout period?&lt;/P&gt;&lt;P&gt;Will it be time = (48*10^6) / (2^13) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 13:53:15 GMT</pubDate>
    <dc:creator>lel_chen</dc:creator>
    <dc:date>2009-10-15T13:53:15Z</dc:date>
    <item>
      <title>Core watchdog timer - M52259</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Core-watchdog-timer-M52259/m-p/147115#M3374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OS : MQX 3.2&lt;BR /&gt;Controller : M52259&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the core watchdog timer for MCF52259.&lt;BR /&gt;I have the following queries:&lt;BR /&gt;1) The timer interrupt flag always remains 1. The reference manual says that writing a 1 to this bit in CWCR register would clear the interrupt request.&lt;BR /&gt;The code used is as given below:&lt;BR /&gt;//disable the timer&lt;BR /&gt;MCF_SCM_CWCR &amp;amp;= 0x7F;&lt;BR /&gt;//service the timer&lt;BR /&gt;MCF_SCM_CWSR = 0x55;&lt;BR /&gt;MCF_SCM_CWSR = 0xAA;&lt;BR /&gt;//clear the interrupt request&lt;BR /&gt;MCF_SCM_CWCR = 0x01;&lt;BR /&gt;MCF_SCM_CWCR |= 0x01;&lt;/P&gt;&lt;P&gt;Both the statements above makes the value of CWCR to be 0x01. The interrupt request is not cleared.&lt;/P&gt;&lt;P&gt;How can I clear it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) The reference manual says a value of '010' for CWT in CWCR gives a timeperiod of 2^13 bus clock frequency. If the bus frequency is 48Mhz, what would be the timeout period?&lt;/P&gt;&lt;P&gt;Will it be time = (48*10^6) / (2^13) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 13:53:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Core-watchdog-timer-M52259/m-p/147115#M3374</guid>
      <dc:creator>lel_chen</dc:creator>
      <dc:date>2009-10-15T13:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Core watchdog timer - M52259</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Core-watchdog-timer-M52259/m-p/147116#M3375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest using the BWT (backup watchdog timer) when working with the M52259. This is an improved watchdog timer over the core watchdog timer, which has some deficiencies, making it not 100% reliable:&lt;/P&gt;&lt;P&gt;See the following for details &lt;A href="http://www.utasker.com/forum/index.php?topic=505.0" rel="nofollow" target="_self"&gt;http://www.utasker.com/forum/index.php?topic=505.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_self"&gt;www.uTasker.com&lt;/A&gt;&lt;BR /&gt;- OS, TCP/IP stack, USB, device drivers and simulator for M521X, M521XX, M5221X, M5222X, M5223X, M5225X. One package does them all - "&lt;EM&gt;&lt;SPAN&gt;Embedding it better...&lt;/SPAN&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 07:49:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Core-watchdog-timer-M52259/m-p/147116#M3375</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2009-10-16T07:49:04Z</dc:date>
    </item>
  </channel>
</rss>

