<?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 mcf5485 general purpose timer watchdog changing CNt after timer started in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5485-general-purpose-timer-watchdog-changing-CNt-after-timer/m-p/885005#M13709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Looking at the&amp;nbsp;datasheet MCF5485, for the &lt;STRONG&gt;GMSn&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; register for GPT 0 which&amp;nbsp;I would like to&amp;nbsp;use for the watchdog:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Bits &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name &amp;nbsp;&amp;nbsp;&amp;nbsp; Description&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: -0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;12 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Counter enable. Enables or resets the internal counter during internal timer modes only. CE must be set to enable these modes. If cleared, counter is held in reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;0 Timer counter held in reset&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;1 Timer counter enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;This bit is secondary to the timer mode select bits (TMS). If TMS is1XX, internal timer modes are&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;enabled. CE can then enable or reset the internal counter without changing the TMS field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;GPIO operation is also available in this mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;SPAN style="color: #000000;"&gt;The &lt;STRONG&gt;GCIRn&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; register holds the prescaler and the CNT:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Bits &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name &amp;nbsp;&amp;nbsp;&amp;nbsp; Description&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;31–16 &amp;nbsp;&amp;nbsp;&amp;nbsp; PRE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prescaler. Prescale amount applied to internal counter (in clocks).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Note that in addition to other enable bits and field settings, the PRE field must be written as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;non-zero to enable counter operation for all modes except the simple GPIO mode. A prescale of&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;0x0001 means one clock per count increment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;15–0 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CNT &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count value. Sets number of prescaled counts applied to reference events, as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;IC—Field has no effect, internal counter starts at 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;OC—Number of prescaled counts counted before creating output event.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;PWM—Number of prescaled counts defining the PWM output period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Internal Timer—Number of prescaled counts counted before timer (or watchdog) expires.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 1in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Reading this register only returns the programmed&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;My question centers around being able to change the timer period for the watchdog to a different value after initialization and startup of the watchdog.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;If I change the &lt;STRONG style="font-size: small; font-family: Arial; "&gt;GCIRn&lt;/STRONG&gt; register CNT value, will it restart the timeout, or will the current value timeout finish first?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Writing a 0 to CE will hold the internal WD timer in reset. So I think if you want to reset the WD timer and set a new CNT value in the GCIRn register and then enable the timer counter with the CE bit, you could. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;But maybe there is someone more familiar with the chip that could confirm this? I am looking for the correct sequence to follow.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2019 20:23:26 GMT</pubDate>
    <dc:creator>flach_raymond</dc:creator>
    <dc:date>2019-02-22T20:23:26Z</dc:date>
    <item>
      <title>mcf5485 general purpose timer watchdog changing CNt after timer started</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5485-general-purpose-timer-watchdog-changing-CNt-after-timer/m-p/885005#M13709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Looking at the&amp;nbsp;datasheet MCF5485, for the &lt;STRONG&gt;GMSn&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; register for GPT 0 which&amp;nbsp;I would like to&amp;nbsp;use for the watchdog:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Bits &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name &amp;nbsp;&amp;nbsp;&amp;nbsp; Description&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: -0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;12 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Counter enable. Enables or resets the internal counter during internal timer modes only. CE must be set to enable these modes. If cleared, counter is held in reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;0 Timer counter held in reset&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;1 Timer counter enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;This bit is secondary to the timer mode select bits (TMS). If TMS is1XX, internal timer modes are&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;enabled. CE can then enable or reset the internal counter without changing the TMS field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;GPIO operation is also available in this mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;SPAN style="color: #000000;"&gt;The &lt;STRONG&gt;GCIRn&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; register holds the prescaler and the CNT:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Bits &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name &amp;nbsp;&amp;nbsp;&amp;nbsp; Description&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;31–16 &amp;nbsp;&amp;nbsp;&amp;nbsp; PRE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prescaler. Prescale amount applied to internal counter (in clocks).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Note that in addition to other enable bits and field settings, the PRE field must be written as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;non-zero to enable counter operation for all modes except the simple GPIO mode. A prescale of&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;0x0001 means one clock per count increment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;15–0 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CNT &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count value. Sets number of prescaled counts applied to reference events, as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;IC—Field has no effect, internal counter starts at 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;OC—Number of prescaled counts counted before creating output event.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;PWM—Number of prescaled counts defining the PWM output period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Internal Timer—Number of prescaled counts counted before timer (or watchdog) expires.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt 1in;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Reading this register only returns the programmed&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;My question centers around being able to change the timer period for the watchdog to a different value after initialization and startup of the watchdog.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;If I change the &lt;STRONG style="font-size: small; font-family: Arial; "&gt;GCIRn&lt;/STRONG&gt; register CNT value, will it restart the timeout, or will the current value timeout finish first?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;Writing a 0 to CE will hold the internal WD timer in reset. So I think if you want to reset the WD timer and set a new CNT value in the GCIRn register and then enable the timer counter with the CE bit, you could. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 9pt; font-family: 'Arial','sans-serif'; "&gt;But maybe there is someone more familiar with the chip that could confirm this? I am looking for the correct sequence to follow.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:23:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5485-general-purpose-timer-watchdog-changing-CNt-after-timer/m-p/885005#M13709</guid>
      <dc:creator>flach_raymond</dc:creator>
      <dc:date>2019-02-22T20:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: mcf5485 general purpose timer watchdog changing CNt after timer started</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5485-general-purpose-timer-watchdog-changing-CNt-after-timer/m-p/885006#M13710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'll have to reverse-engineer the timer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be very careful when writing registers with the timer running. It might not behave the same way every time. It might give you intermittent problems in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would read the following to say "Set TMS to zero before changing anything",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;TMS: Timer mode select (and module enable).&lt;BR /&gt;000 Timer module not enabled. All timer operation is completely disabled. Control and status&lt;BR /&gt;registers are still accessible. This mode should be entered when the timer is to be re-configured,.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;There are other possible complications. Some peripheral registers can only be written 32-bits at a time. Trying to perform 8 or 16 bit writes doesn't work, and can write garbage into the other fields. With other peripherals, writing to part of the register is essential for proper operation. For instance, for the PIT used in other Coldfire chips it is essential to perform byte-writes to the PCSR during interrupt service or the timing is reset. But nothing in the Reference has ever said that. The Register Definitions file only describes the PCSR as 16-bits, so that has always been misleading. You just have to spend a few days working this out for yourself, or you could read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/71442?commentID=71442#comment-71442" title="https://community.nxp.com/message/71442?commentID=71442#comment-71442"&gt;https://community.nxp.com/message/71442?commentID=71442#comment-71442&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So are the GPT registers 32-bits only, 32/16 or 3216/8? It doesn't say anywhere that I can find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 23:41:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5485-general-purpose-timer-watchdog-changing-CNt-after-timer/m-p/885006#M13710</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2019-02-25T23:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: mcf5485 general purpose timer watchdog changing CNt after timer started</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5485-general-purpose-timer-watchdog-changing-CNt-after-timer/m-p/885007#M13711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I am going to run into issues, like you said. I think the best approach at this point will be for me to rewrite the watchdog timer software to work around the&amp;nbsp;register limitations, and&amp;nbsp;set the watchdog timeout to a fixed value at startup, say, 1 second, and having the interface handle longer duration timeouts by resetting the timer for the duration of the desired longer timeout period. Thank you for your reply. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 14:28:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5485-general-purpose-timer-watchdog-changing-CNt-after-timer/m-p/885007#M13711</guid>
      <dc:creator>flach_raymond</dc:creator>
      <dc:date>2019-02-26T14:28:06Z</dc:date>
    </item>
  </channel>
</rss>

