<?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>S12 / MagniV MicrocontrollersのトピックRe: Clearing TCNT counter to 0</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2321923#M20856</link>
    <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;MC9S12ZVLA128&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Feb 2026 13:11:29 GMT</pubDate>
    <dc:creator>Pallavi</dc:creator>
    <dc:date>2026-02-24T13:11:29Z</dc:date>
    <item>
      <title>Clearing TCNT counter to 0</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2318409#M20852</link>
      <description>&lt;P&gt;Hello Everyone. I need a support to clear TCNT register to 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While control comes from boot to App, I need clear TCNT register to 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I aware that , TNCT can't be cleared in normal mode. From google, i understand that below 2 are methods available.&lt;/P&gt;&lt;P&gt;Method 1: Using Timer Channel 7 (Hardware Reset) : As I want to clear TCNT only once, I didn’t try this method.&lt;/P&gt;&lt;P&gt;Method 2:&amp;nbsp; System/Module Reset (Force Clear)&amp;nbsp; : I have tried this way .&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Clear the&amp;nbsp;TEN&amp;nbsp;bit (Timer Enable) in the&amp;nbsp;TSCR1&amp;nbsp;(Timer System Control Register 1) to turn off the timer. TSCR1_TEN =0;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Set the&amp;nbsp;TEN&amp;nbsp;bit to re-enable it (TSCR1_TEN =1 ;). This should clear TCNT&amp;nbsp;to 0000. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this method is not working . Please help me out to solve this issue&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 06:01:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2318409#M20852</guid>
      <dc:creator>Pallavi</dc:creator>
      <dc:date>2026-02-16T06:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing TCNT counter to 0</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2318991#M20854</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259939"&gt;@Pallavi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you please specify the MCU?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 11:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2318991#M20854</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-02-17T11:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing TCNT counter to 0</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2321923#M20856</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;MC9S12ZVLA128&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 13:11:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2321923#M20856</guid>
      <dc:creator>Pallavi</dc:creator>
      <dc:date>2026-02-24T13:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing TCNT counter to 0</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2323810#M20857</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259939"&gt;@Pallavi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Unfortunately, there is no option to clear the counter on S12ZVLA.&lt;/P&gt;
&lt;P&gt;However, why would you need to clear it? What would be the use case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 14:28:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2323810#M20857</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-02-26T14:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing TCNT counter to 0</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2324145#M20858</link>
      <description>&lt;P&gt;TCNT has incremented in bootloader before control comes to app. In app, i am calling 10ms, task depending onTCNTcount.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of now I am reading the current count and calling 10ms task from that count value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of that I thought of clearing TCNT when control comes to app and then schedule 10ms task.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 06:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2324145#M20858</guid>
      <dc:creator>Pallavi</dc:creator>
      <dc:date>2026-02-27T06:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing TCNT counter to 0</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2324199#M20859</link>
      <description>&lt;P&gt;You are doing it correctly, this is how output compare is updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 08:29:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2324199#M20859</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-02-27T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing TCNT counter to 0</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2324804#M20860</link>
      <description>&lt;P&gt;Thank you Daniel for confirming.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2026 05:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-TCNT-counter-to-0/m-p/2324804#M20860</guid>
      <dc:creator>Pallavi</dc:creator>
      <dc:date>2026-03-02T05:37:37Z</dc:date>
    </item>
  </channel>
</rss>

