<?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のトピックTimer</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134366#M2056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Just playing with timers and they seem increment every two clock cylces, is this right, i thought it was every 4 or maybe 1.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 May 2006 22:19:11 GMT</pubDate>
    <dc:creator>ernestsnaith</dc:creator>
    <dc:date>2006-05-02T22:19:11Z</dc:date>
    <item>
      <title>Timer</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134366#M2056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Just playing with timers and they seem increment every two clock cylces, is this right, i thought it was every 4 or maybe 1.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 22:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134366#M2056</guid>
      <dc:creator>ernestsnaith</dc:creator>
      <dc:date>2006-05-02T22:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timer</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134367#M2057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Perhaps you could be more specific if you want to know why. There are registers which control how many bus cycles per increment of TCNT. You could also specify what MCU&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 00:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134367#M2057</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2006-05-03T00:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timer</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134368#M2058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Sorry, its a 9s12xdt512, using low power pierce oscillator at 4MHz. I have set the prescaler to the 128 max and set an LED to flash when the timer is over 0xF000. I was curious to see if i understood the timer so i timed how long the LED cycle took, it turned out to be 4.2 seconds. I thought it should be 1/ 4,000,000(clock) / 65536 (max timer value) all * 128 = 2.1 second&lt;/P&gt;&lt;P&gt;register wise i set TSCR2 to 0x07 and TSCR1 to 0x80&lt;/P&gt;&lt;P&gt;Message Edited by ernestsnaith on &lt;SPAN class="date_text"&gt;05-02-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;03:10 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 03:06:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134368#M2058</guid>
      <dc:creator>ernestsnaith</dc:creator>
      <dc:date>2006-05-03T03:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timer</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134369#M2059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;If you have a 4MHz crystal the bus speed (and source of the timer clock) is 2MHz so your maths is correct. If you need the S12X to go faster you should enable the PLL.&lt;BR /&gt;You can have a larger prescaler on the timer by using the precision mode (see this thread: &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=861" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=861&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;(Alban created link)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;05-03-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:10 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 03:19:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer/m-p/134369#M2059</guid>
      <dc:creator>Steve</dc:creator>
      <dc:date>2006-05-03T03:19:24Z</dc:date>
    </item>
  </channel>
</rss>

