<?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: MC9S12XET256 Timer enable TSCR1</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264477#M9799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ladislav,&lt;/P&gt;&lt;P&gt;thanks for the information. Knowing this is good for me so that I can exclude some of the possible source of bugs in my implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;Huck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 07:32:22 GMT</pubDate>
    <dc:creator>hucklim</dc:creator>
    <dc:date>2014-01-30T07:32:22Z</dc:date>
    <item>
      <title>MC9S12XET256 Timer enable TSCR1</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264475#M9797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a general question. I am using the ECT timer in MC9S12XET256. To enable the timer I set the TSCR1 to 0x80 (setting 1 to the TEN bit).&lt;/P&gt;&lt;P&gt;My question is, if I were to set the timer enable multiple time without disabling the timer in between, like below, is there any side-effect in terms of timer accuracy etc...?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECT_TSCR1 = 0x80&amp;nbsp;&amp;nbsp; //enable timer &lt;/P&gt;&lt;P&gt;//do something&lt;/P&gt;&lt;P&gt;ECT_TSCR1 = 0x80&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;Huck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 09:17:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264475#M9797</guid>
      <dc:creator>hucklim</dc:creator>
      <dc:date>2014-01-29T09:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XET256 Timer enable TSCR1</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264476#M9798</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;writing the same value to the register or memory has no effect neither on the content nor on the accuracy of the timer..&lt;/P&gt;&lt;P&gt;The exception is writing to the interrupt flag status register where interrutp flag 1 is being cleared by writin 1 to the corresponding bits.&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status register is 0B01010101&lt;/P&gt;&lt;P&gt;writing value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0B00000101&lt;/P&gt;&lt;P&gt;will result int the status register's value 0B01010000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 14:09:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264476#M9798</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2014-01-29T14:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XET256 Timer enable TSCR1</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264477#M9799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ladislav,&lt;/P&gt;&lt;P&gt;thanks for the information. Knowing this is good for me so that I can exclude some of the possible source of bugs in my implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;Huck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 07:32:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264477#M9799</guid>
      <dc:creator>hucklim</dc:creator>
      <dc:date>2014-01-30T07:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XET256 Timer enable TSCR1</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264478#M9800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like only to add. Never use following code, for example status |= 0B00000101; for clearing status register when you want to clear bit 0 and 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The instruction is internally performed as read modify write so the result is:&lt;/P&gt;&lt;P&gt;Let status register is 0B01010101 and you want to clear bit 2 and 0 and you use code as presented above (status |= 0B00000101; ).&lt;/P&gt;&lt;P&gt;Internal procedure performs following:&lt;/P&gt;&lt;P&gt;read : temp = 0B01010101&lt;/P&gt;&lt;P&gt;modify : temp = temp | 0B00000101&lt;/P&gt;&lt;P&gt;write : 0B01010101 -&amp;gt; status&lt;/P&gt;&lt;P&gt;The result is that all bits in the status regfister are cleared. This is standard mistake I have met a lot of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you wave to write direct number with corresponding bits (bits you want clear) set to 1 to clear them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 19:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264478#M9800</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2014-02-02T19:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XET256 Timer enable TSCR1</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264479#M9801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ladislav,&lt;/P&gt;&lt;P&gt;thanks for the extra tips for clearing the status register. I will surely have to watch out for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;Huck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 07:33:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XET256-Timer-enable-TSCR1/m-p/264479#M9801</guid>
      <dc:creator>hucklim</dc:creator>
      <dc:date>2014-02-03T07:33:00Z</dc:date>
    </item>
  </channel>
</rss>

