<?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 Re: help: timer doesn't run in simulator but runs in emulator in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128020#M811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would then suggest you to upgrade to V4.5.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I could successfully reach the timer overflow interrupt with V4.5 using the attached project.&lt;/DIV&gt;&lt;DIV&gt;I am not able to test that on V3.1 as I do not have the NE64 service pack installed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2006 16:02:51 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-08-29T16:02:51Z</dc:date>
    <item>
      <title>help: timer doesn't run in simulator but runs in emulator</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128015#M806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi&lt;/DIV&gt;&lt;DIV&gt;I am using Metrowerks code warrior V3.1.&lt;/DIV&gt;&lt;DIV&gt;I have one very simple timer overflow interrupt routine written.&lt;/DIV&gt;&lt;DIV&gt;This timer TCNT does not run in simulator but it runs in emulator.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;any setting in the simulator to make the timer run?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;regards&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 15:36:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128015#M806</guid>
      <dc:creator>Wind</dc:creator>
      <dc:date>2006-08-24T15:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: help: timer doesn't run in simulator but runs in emulator</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128016#M807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Which MCU (derivative) are you trying to simulate?&lt;/P&gt;&lt;P&gt;We may not have simulation for all peripherals.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 21:47:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128016#M807</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-08-24T21:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: help: timer doesn't run in simulator but runs in emulator</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128017#M808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi crazyCat,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using MC9s12NE64.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 08:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128017#M808</guid>
      <dc:creator>Wind</dc:creator>
      <dc:date>2006-08-25T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: help: timer doesn't run in simulator but runs in emulator</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128018#M809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I assume you are trying to use the PIT to generate interrupt.&lt;BR /&gt;I looked in V4.5 reference manual.&lt;BR /&gt;Periodic Interrupt Timer (PIT) is not simulated. That is the reason your interrupt is not generated in the simulator. &lt;BR /&gt;&lt;BR /&gt;Anyway when running your application in the simulator. Did you see a messaged "writing to unimplemented register at pc = ..."?&lt;BR /&gt;This is basically how the simulator tells you you are trying to use a non-simulated device.&lt;BR /&gt;&lt;BR /&gt;CrasyCat&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 15:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128018#M809</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-08-25T15:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: help: timer doesn't run in simulator but runs in emulator</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128019#M810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;sorry that I didn't make my statement clear. actually I posted this problem in the forum few days ago with the subject: &lt;FONT color="#6633FF"&gt;timer overflow interrupt&lt;/FONT&gt;. Since no one reply to that forum and I find out that it is the simulator issue, I post it again here as new thread.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I just implemented a very simple timer overflow interrupt.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;below is the sorce code:&lt;/DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;#include &amp;lt;hidef.h&amp;gt;      /* common defines and macros */#include &amp;lt;MC9S12NE64.h&amp;gt;     /* derivative information */#pragma LINK_INFO DERIVATIVE "1"volatile unsigned int count;void main(void) {  /* put your own code here */   TSCR1=0X80;//enable timer   TSCR2=0x85;  //select prescler bus clock/32  TFLG2=0x80;// clear timer flag   EnableInterrupts;   for(;;)   {    } /* wait forever */}#pragma CODE_SEG NON_BANKEDinterrupt void _Timerovf(void) { TFLG2 = 0x80;// clear the interrupt flag   count++; //increment counter   }   #pragma CODE_SEG DEFAULT&lt;/PRE&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;you quote:&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#6633CC"&gt;Anyway when running your application in the simulator. Did you see a messaged "writing to unimplemented register at pc = ..."?&lt;BR /&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There is no message showing.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2006 20:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128019#M810</guid>
      <dc:creator>Wind</dc:creator>
      <dc:date>2006-08-26T20:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: help: timer doesn't run in simulator but runs in emulator</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128020#M811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would then suggest you to upgrade to V4.5.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I could successfully reach the timer overflow interrupt with V4.5 using the attached project.&lt;/DIV&gt;&lt;DIV&gt;I am not able to test that on V3.1 as I do not have the NE64 service pack installed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 16:02:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/help-timer-doesn-t-run-in-simulator-but-runs-in-emulator/m-p/128020#M811</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-08-29T16:02:51Z</dc:date>
    </item>
  </channel>
</rss>

