<?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: 9S12DJ64 timer module does not generate interrupt on stop?</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DJ64-timer-module-does-not-generate-interrupt-on-stop/m-p/219334#M9199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timer requires clock to run. And since STOP mode shuts off all clocks, timer can't operate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 13:07:11 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2010-08-23T13:07:11Z</dc:date>
    <item>
      <title>9S12DJ64 timer module does not generate interrupt on stop?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DJ64-timer-module-does-not-generate-interrupt-on-stop/m-p/219333#M9198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&amp;nbsp; I seem to be unable to get the timer module to wake up the processor after a STOP instruction.&amp;nbsp; However, after a WAI instruction, the timer will wake up the processor and service the interrupt.&amp;nbsp; Is the timer module not able to generate an interrupt in STOP mode?&lt;BR /&gt;&lt;BR /&gt;The code that initializes the timer channel looks like this and allows me to capture the waveform I have on the IC0 pin just fine:&lt;BR /&gt;&amp;nbsp; clr&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; TIE &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; ;disable interrupts&lt;BR /&gt;&amp;nbsp; movb&amp;nbsp;&amp;nbsp; &amp;nbsp; #%00000101,TSCR2&amp;nbsp;&amp;nbsp; &amp;nbsp;;output compare resolution is 8 us, prescaler=32, 4 MHz clock&lt;BR /&gt;&amp;nbsp; movb &amp;nbsp;&amp;nbsp; &amp;nbsp;#$02,TCTL4&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;init IC0 for falling edge detection&lt;BR /&gt;&amp;nbsp; clr&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; TIOS&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;select channel 0 to act as input capture (IC)&lt;BR /&gt;&amp;nbsp; movb &amp;nbsp;&amp;nbsp; &amp;nbsp;#$80,TSCR1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;enable timer, runs during BDM and in wait, clears flags normally&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The code that I use right before I stop the processor looks like this:&lt;BR /&gt;&amp;nbsp; movb&amp;nbsp; &amp;nbsp;&amp;nbsp; $03,TCTL4&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;;init IC0 for rising and falling edges detection&lt;BR /&gt;&amp;nbsp; bset&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; TIE,#$01&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; ;enable TM0 interrupt&lt;BR /&gt;&amp;nbsp; ldaa&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; TFLG1&lt;BR /&gt;&amp;nbsp; movb&amp;nbsp; &amp;nbsp;&amp;nbsp; #$FF,TFLG1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;clear any interrupts on the timer channels&lt;BR /&gt;&amp;nbsp; andcc&amp;nbsp;&amp;nbsp; &amp;nbsp;#$7F&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ;enable CPU standby mode via STOP&lt;BR /&gt;&amp;nbsp; cli&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;enable global interrupts&lt;BR /&gt;&amp;nbsp; stop&lt;BR /&gt;&lt;BR /&gt;Am I making a mistake leading up to the STOP instruction?&amp;nbsp; No amount of activity on timer channel 0 wakes up the processor.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 04:55:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DJ64-timer-module-does-not-generate-interrupt-on-stop/m-p/219333#M9198</guid>
      <dc:creator>68HC912B32Guy</dc:creator>
      <dc:date>2010-08-23T04:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: 9S12DJ64 timer module does not generate interrupt on stop?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DJ64-timer-module-does-not-generate-interrupt-on-stop/m-p/219334#M9199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timer requires clock to run. And since STOP mode shuts off all clocks, timer can't operate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 13:07:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DJ64-timer-module-does-not-generate-interrupt-on-stop/m-p/219334#M9199</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-08-23T13:07:11Z</dc:date>
    </item>
  </channel>
</rss>

