<?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: CPU RESET on MC9S12XDP512 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127658#M726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Sorry Pang,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For code, you will have to refer to the Application Notes available for the S12X.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes, if a low level is applied on the RESET pin of the microcontroller, it goes immediately into reset. This is not negociable nor can be changed. This is internally hard coded.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban. {in bed now}&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2007 04:22:26 GMT</pubDate>
    <dc:creator>Alban</dc:creator>
    <dc:date>2007-03-23T04:22:26Z</dc:date>
    <item>
      <title>CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127651#M719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi everyone,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have an application with MC9S12XDP512 under&amp;nbsp;CW4.6. The power supply will monitor power surge or power outage.&amp;nbsp;&amp;nbsp;When it occurs, it will&amp;nbsp;send&amp;nbsp;ACFAIL signal to XIRQ/PE0 and trigger&amp;nbsp;my&amp;nbsp;ISR to&amp;nbsp;deal with&amp;nbsp;this power surge.&amp;nbsp;25ms&amp;nbsp;after ACFAIL, the power supply starts&amp;nbsp;sending&amp;nbsp;external&amp;nbsp;RESET signal&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My questions,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. Will this external RESET cause CPU to restart immediately whenever RESET is raised?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1.&amp;nbsp;I don't want CPU&amp;nbsp;to be&amp;nbsp;reset&amp;nbsp;within 2 seconds since my board has super capacitor to hold power&amp;nbsp;for about 5 minutes. I want to restart my application after 2 seconds power outage which is considered to be long-term power surge.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Do you need to do something in my ACFAIL ISR&amp;nbsp;to set CRG so that&amp;nbsp;my application will keep running before 2&amp;nbsp;seconds&amp;nbsp;elapse.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any inputs will be&amp;nbsp;greatly appreciated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks a lot for prompt reply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pang&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 22:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127651#M719</guid>
      <dc:creator>Pang</dc:creator>
      <dc:date>2007-03-22T22:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127652#M720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Pang,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Prompt reply provided.&lt;/DIV&gt;&lt;DIV&gt;1. Reset pin put low creates immediate Reset. It is asynchronous.&lt;/DIV&gt;&lt;DIV&gt;As soon as you generate a Reset, one way or another, the MCU goes into reset immediately. Up to your software to be quick to do a Reset.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2. Not really sure what you want to do. If there is no change in the clock, the MCU continues to run.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 01:39:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127652#M720</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-03-23T01:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127653#M721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alban,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;First, Thanks a lot for your quick reply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There are different RESETs. Only can System RESET cause MCU to restart. My application will deal with this situation:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The power supply generates ACFAIL, then trigger my ACFAIL ISR in which I need backup up my data and log this as short/long-term power outage. 25ms after ACFAIL low, power supply sends EXTERNAL RESET (instead of SYSTEM RESET) to MCU and tell MCU to restart.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To my knowledge, when RESET in Hight (I am not sure that it means EXTERN RESET or SYSTEM RESET), MCU&amp;nbsp;goes to RESTART.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My question, How can&amp;nbsp;we prevent MCU from being&amp;nbsp;restarted&amp;nbsp;when EXTERNAL RESET&amp;nbsp;in&amp;nbsp;High before 2 seconds elapse, which means, If power&amp;nbsp;goes&amp;nbsp;down than 2&amp;nbsp;seconds,&amp;nbsp;my application will think&amp;nbsp;it is right time to restart no&amp;nbsp;matter whenever powerback.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please let me know if not clear.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Andy&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 02:34:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127653#M721</guid>
      <dc:creator>Pang</dc:creator>
      <dc:date>2007-03-23T02:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127654#M722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hey Andy,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The RESET pin is active low, which means a ZERO on the pin will create an immediate reset of the microcontroller.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To delay a MCU Reset, here is what you can do.&lt;/DIV&gt;&lt;DIV&gt;You connect the reset request from your power supply circuit to XIRQ or IRQ.&lt;/DIV&gt;&lt;DIV&gt;In the IRQ or XIRQ ISR you can start a TIMer which after 2 seconds elapse generates the MCU reset (via writing wrong value to the COP for instance).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Did I understand what you mean ?&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 02:44:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127654#M722</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-03-23T02:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127655#M723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear Alan,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Power Supply sends out two separate signals: ACFAIL and RESET.&amp;nbsp; ACFAIL -&amp;gt; XIRQ, RESET from power supply -&amp;gt; RESET pin (MCU).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When MCU receives RESET in LOW, it will not restart until RESET in High. Is this correct? if it is true, what I want to do, in XIRQ ISR, how can I ignore this EXTERNAL RESET signal so that it won't generate internal reset (SYSTEM RESET) since XIRQ has 25ms to prevent INTERNAL RESET from triggering.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would like to say in XIRQ:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;COPCTL = 0x01;&lt;/DIV&gt;&lt;DIV&gt;ARMCOP = 0x55;&lt;/DIV&gt;&lt;DIV&gt;ARMCOP = 0xAA; // start COP&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As here, I need to know to prevent Internal RESET from triggering. (need your help)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then I need to watch EXTERNAL RESET signal from Power Supply. Is there a way to watch this pin?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If it is high&amp;nbsp;less than&amp;nbsp;two seconds, I will disable COP, otherwise, I will let it go --- restart from COP reset&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My understanding may be wrong. Thanks for corrections.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pang&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 03:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127655#M723</guid>
      <dc:creator>Pang</dc:creator>
      <dc:date>2007-03-23T03:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127656#M724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;Pang,&lt;BR /&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;HR /&gt;Pang wrote:&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When MCU receives RESET in LOW, it will not restart until RESET in High. Is this correct?&lt;/DIV&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;True&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Pang wrote:&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;it is true, what I want to do, in XIRQ ISR, how can I ignore this EXTERNAL RESET signal so that it won't generate internal reset (SYSTEM RESET) since XIRQ has 25ms to prevent INTERNAL RESET from triggering.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would like to say in XIRQ:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;COPCTL = 0x01;&lt;/DIV&gt;&lt;DIV&gt;ARMCOP = 0x55;&lt;/DIV&gt;&lt;DIV&gt;ARMCOP = 0xAA; // start COP&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As here, I need to know to prevent Internal RESET from triggering. (need your help)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then I need to watch EXTERNAL RESET signal from Power Supply. Is there a way to watch this pin?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If it is high&amp;nbsp;less than&amp;nbsp;two seconds, I will disable COP, otherwise, I will let it go --- restart from COP reset&lt;/DIV&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;What the power supply calls a reset is just a normal signal for the MCU. There will not be an MCU internal reset if you link the power supply signal to the IRQ, XIRQ or Timer.&lt;/DIV&gt;&lt;DIV&gt;By using an &lt;STRONG&gt;Input Capture&lt;/STRONG&gt;, you can watch the &lt;STRONG&gt;lenght&lt;/STRONG&gt; of the external signal.&lt;/DIV&gt;&lt;DIV&gt;Then, if the lenght is higher than 2 seconds, you can take whatever action you want, like resetting the MCU.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Al&lt;STRONG&gt;b&lt;/STRONG&gt;an.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 03:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127656#M724</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-03-23T03:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127657#M725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alan,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could you show me how to use input Capture in this MCU?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;According to what you told, what if EXTERN RESET from power supply is directly connect to RESET MCU pin? Does this mean that there is no way to control INTERNAL RESET caused by this EXTERNAL RESET?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope I am wrong.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pang&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 04:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127657#M725</guid>
      <dc:creator>Pang</dc:creator>
      <dc:date>2007-03-23T04:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127658#M726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Sorry Pang,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For code, you will have to refer to the Application Notes available for the S12X.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes, if a low level is applied on the RESET pin of the microcontroller, it goes immediately into reset. This is not negociable nor can be changed. This is internally hard coded.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban. {in bed now}&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 04:22:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127658#M726</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-03-23T04:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127659#M727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;This is not directly related to the OP's question, but&amp;nbsp; it can save you a lot of trouble when dealing with asynchronous power failures-&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rewrite the start-up code to initialize the wdt and&amp;nbsp;do the i/o mapping right where the reset vector(s) point(s) to. Don't leave any window of code execution&amp;nbsp;for an uninitialized WDT if the supply can go out of spec in this window.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 22:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127659#M727</guid>
      <dc:creator>YeOldeBDM</dc:creator>
      <dc:date>2007-03-26T22:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127660#M728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi YeoldeBDM,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am not qute sure to understand your idea. Do you have an example&amp;nbsp;and show me how to deal with short term power surge in Start-up code?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks a lot, my friend.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pang&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 01:11:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127660#M728</guid>
      <dc:creator>Pang</dc:creator>
      <dc:date>2007-03-30T01:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: CPU RESET on MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127661#M729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was sawing some tips in the forum about the watchdog timer and I have some questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actually&lt;BR /&gt;I'm working with the HCS12 microcontroller and I need to use the&lt;BR /&gt;watchdog timer in order to do&amp;nbsp; reset. I've configurated the COPCTL&lt;BR /&gt;register with 71 &lt;FONT color="#ff0000"&gt;(COPCTL=71)&lt;/FONT&gt; the program&lt;BR /&gt;stay in a infinite for loop showing a caracter ascii in the&lt;BR /&gt;hyperterminal until the watchdog finish. The problem is:&amp;nbsp; after the&lt;BR /&gt;watchdog timer has finished the program doesn't reset o may be yes, but&lt;BR /&gt;I can't see more caracters in the hyperterminal until I do a manual&lt;BR /&gt;reset.&amp;nbsp; I've attached the program. I hope that you can help me. many&lt;BR /&gt;thanks.&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
This is the main function:



 void main(void) {
  /* put your own code here */

  char msn[20]={"Hola"};
  char msn1[5]={"."}; 
  word cont1X;
  word cont2X;

  cont2X=0;
  while(cont2X&amp;lt;=5000)
  {
    cont2X++;
    cont1X=0;
    while(cont1X&amp;lt;=100)
    {
      asm BRN *;
      cont1X++;    
    }    
  }

  SCI0BD = 12;

  SCI0CR1 = 0x00;

  SCI0CR2 = 0x04;

  vfnSCITxMsg(msn);
  COPCTL=71;
  
  for(;;) {
  cont2X=0;
  while(cont2X&amp;lt;=5000)
  {
    cont2X++;
    cont1X=0;
    while(cont1X&amp;lt;=100)
    {
      asm BRN *;
      cont1X++;    
    }    
  }
  vfnSCITxMsg(msn1);
  } /* loop forever */
  /* please make sure that you never leave main */
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 21:59:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CPU-RESET-on-MC9S12XDP512/m-p/127661#M729</guid>
      <dc:creator>wilero17</dc:creator>
      <dc:date>2009-08-25T21:59:06Z</dc:date>
    </item>
  </channel>
</rss>

