<?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 why COP_ISR(void) can not work in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490597#M12115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;I use MC9S12XEP100 to test the function cop.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;I have found a cop process function ,when the watchdog timer overflow ,the system can reset ,but it can not step into the &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;COP_ISR(LED can not turn on),Can you help me,thank you !&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;//******************************************************************************&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;// COP reset&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;//******************************************************************************&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;#pragma CODE_SEG NON_BANKED&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;interrupt 2 void COP_ISR(void)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;{&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDRA = 0xff;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTA = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //LEDs on - show we entered the COP_ISR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0; i&amp;lt;60000; i++)&amp;nbsp; //delay&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm nop;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTA = 0xff;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm jmp _Startup;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //jump to power-on reset vector&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // !!! RTI instruction cannot be executed because this is not interrupt !!!&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 08:29:46 GMT</pubDate>
    <dc:creator>明超戴</dc:creator>
    <dc:date>2016-04-08T08:29:46Z</dc:date>
    <item>
      <title>why COP_ISR(void) can not work</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490597#M12115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;I use MC9S12XEP100 to test the function cop.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;I have found a cop process function ,when the watchdog timer overflow ,the system can reset ,but it can not step into the &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;COP_ISR(LED can not turn on),Can you help me,thank you !&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;//******************************************************************************&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;// COP reset&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;//******************************************************************************&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;#pragma CODE_SEG NON_BANKED&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;interrupt 2 void COP_ISR(void)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;{&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDRA = 0xff;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTA = 0x00;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //LEDs on - show we entered the COP_ISR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0; i&amp;lt;60000; i++)&amp;nbsp; //delay&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm nop;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTA = 0xff;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm jmp _Startup;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //jump to power-on reset vector&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // !!! RTI instruction cannot be executed because this is not interrupt !!!&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;"&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 08:29:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490597#M12115</guid>
      <dc:creator>明超戴</dc:creator>
      <dc:date>2016-04-08T08:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: why COP_ISR(void) can not work</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490598#M12116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;amp;#26126;&amp;amp;#36229; &amp;amp;#25140;,&lt;/P&gt;&lt;P&gt;Please check capacitor at RESET pin.&lt;/P&gt;&lt;P&gt;The Too big time constant of RC circuit at RESET pin could interfere with COP/CM reset source detection ability.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short: In the case of a reset, RESET pin will be hold down for 128 OSCCLK cycles. The voltage level at RESET pin will be detected after next 64 OSCCLK cycles. When the low-level voltage is detected, the External Reset source is assumed and POR reset vector is selected.&lt;/P&gt;&lt;P&gt;So, we have to ensure that voltage at RESET pin will achieve high voltage level prior these 64 OSCCLK cycles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if we take the case when we use 16MHz oscillator, 64 SYSCLK cycles presents 4us.&lt;/P&gt;&lt;P&gt;Therefore, if we have 2.2kOhm pull-up resistor at RESET pin, the capacitance at RESET pin should be below approximately 1.8nF. Otherwise, we detect POR / LVR / Illegal Address Reset / External Reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Simply RC cell, RC constant=Tau=R*C represents the time when voltage achieves approximately 2/3 value. Detection level for high value at the pin is also approximately 2/3 value of VCC. So we can use simple calculation: C&amp;lt;64/(R*fOSC). In the calculation, we omitted capacitance and internal pull-up of RESET pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details please check: &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-103737"&gt;https://community.freescale.com/docs/DOC-103737&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: There is one additional option. We could connect Schottky diode between MCU reset pin and external RC circuit (capacitor and pull-up). In the case of system reset (caused by MCU), the external capacitor isn’t discharged and COP/CM detection works correctly even with 100nF capacitor. See attached circuit:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RESET_BDM.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30856i9708DA017011EFAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="RESET_BDM.PNG" alt="RESET_BDM.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2016 14:11:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490598#M12116</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-04-10T14:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: why COP_ISR(void) can not work</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490599#M12117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radek Sestak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thank you for your help ， I will tryand check&amp;nbsp; it 。&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Have a great day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&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;&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; Dai Mingchao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 00:45:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490599#M12117</guid>
      <dc:creator>明超戴</dc:creator>
      <dc:date>2016-04-11T00:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: why COP_ISR(void) can not work</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490600#M12118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radek Sestak thank you for your help，I have tested it ，use &lt;SPAN style="color: #333333; font-family: arial; font-size: 13px;"&gt; appropriate capacitance the system can step into COP_ISR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial; font-size: 13px;"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial; font-size: 13px;"&gt;&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;&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;&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;&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; Daimingchao&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 07:51:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/why-COP-ISR-void-can-not-work/m-p/490600#M12118</guid>
      <dc:creator>明超戴</dc:creator>
      <dc:date>2016-04-14T07:51:35Z</dc:date>
    </item>
  </channel>
</rss>

