<?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: Customising ISR of Watchdog Interrupt in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233173#M9395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone help with this thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 11:12:03 GMT</pubDate>
    <dc:creator>santhoshsl</dc:creator>
    <dc:date>2013-08-06T11:12:03Z</dc:date>
    <item>
      <title>Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233172#M9394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using mc9s12xdp512 controller for our project development.&lt;/P&gt;&lt;P&gt;As part of our development, we are now planning to have Diagnostics for our system.&lt;/P&gt;&lt;P&gt;So as part of this we want to capture and log Watchdog Reset.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this I tried to write my own ISR or function and tried to assign this to vector table at 0xFFFA. But compiler gave error saying this Vector location is already assigned with System Reset point.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So can someone let me know, is there any way to capture and log failure that Watchdog reset has happened.&lt;/P&gt;&lt;P&gt;Or can you let me know how we can customize the ISR of watchdog?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 12:09:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233172#M9394</guid>
      <dc:creator>santhoshsl</dc:creator>
      <dc:date>2013-07-31T12:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233173#M9395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone help with this thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 11:12:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233173#M9395</guid>
      <dc:creator>santhoshsl</dc:creator>
      <dc:date>2013-08-06T11:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233174#M9396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you pleas check the PRM file, as well as the source code for interrupt vector? Whether address 0xFFFA is allocated twice? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code for COP vector in PE stationery, hope it helps! If not, could you please attach a simple project to help us reproduce the error?&lt;/P&gt;&lt;P&gt;static const tIsrFunc _ResetVectorTable[] @0xFFFAU = { /* Reset vector table */&lt;/P&gt;&lt;P&gt;/*lint -restore Enable MISRA rule (1.1) checking. */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Reset handler name&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; Address Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;_EntryPoint,&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; /* 0xFFFA&amp;nbsp; ivVcop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unused by PE */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;_EntryPoint,&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; /* 0xFFFC&amp;nbsp; ivVclkmon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unused by PE */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;_EntryPoint&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; /* 0xFFFE&amp;nbsp; ivVreset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used by PE */&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 04:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233174#M9396</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2013-08-07T04:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233175#M9397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;COP watchdog reset is hardware reset. It cannot be debugging via BDM because BDM communication/synchronization is lost during reset. I would like recommend simple LEDs for debugging watchdog reset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attachment you can find simple example code for COP watchdog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot handle this event as standard Interrupt. Standard Interrupt ends by RTI assembler command. COP reset interrupt routine must ending by jump to main program (there is no place where program can return).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like notice that code in COP_ISR runs before Start12.c code therefore variables and stack are not initialized. So, I would like to recommend use simplest code as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External circuitry connected to the RESET pin should not include a large capacitance that would interfere with the ability of this signal to rise to a valid logic 1 within 64 SYSCLK cycles after the low drive is released. See chapter 2.5 Resets at S12XD RM(page 113). &lt;/P&gt;&lt;P&gt;For detecting COP reset it is necessary that voltage level at RESET pin achieve high level during 64 SYSCLK cycles after RESET pin release. After reset, SYSCLK value is equal to OSCCLK. If we take case when we use 16MHz oscillator, 64 SYSCLK cycles presents 4us. &lt;/P&gt;&lt;P&gt;So, if we have 2.2kOhm pull-up resistor at RESET pin, 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 time when voltage achieve approximately 2/3 value. Safety detection level for high value at pin is also approximately 2/3 value of VCC. So we can use simply calculation. C&amp;lt;64/(R*fOSC). In calculation we omitted capacitance and internal pull-up of RESET pin. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 14:23:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233175#M9397</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2013-08-07T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233176#M9398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fiona,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your inputs and sorry for delay in my reply.&lt;/P&gt;&lt;P&gt;I couldnot find the COP vector code you mentioned above. I searched in Startup.c and entire project. But couldnot find.&lt;/P&gt;&lt;P&gt;Attached is the project i am trying this with.&lt;/P&gt;&lt;P&gt;Can you please help me with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 13:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233176#M9398</guid>
      <dc:creator>santhoshsl</dc:creator>
      <dc:date>2013-08-13T13:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233177#M9399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Radek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your elaborate inputs and sorry for my delay in reply.&lt;/P&gt;&lt;P&gt;I used the code sent by you by adding code to update COPCTL with some value and LED on.&lt;/P&gt;&lt;P&gt;I am using s12x DP512 evaluation board and i think it doesnot have higher capacitence. So there should be no issue with this to reset pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with the project attached with this reply, i was not able to see the System Reset by COP and COP ISR execution.&lt;/P&gt;&lt;P&gt;Can you please help me with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 13:24:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233177#M9399</guid>
      <dc:creator>santhoshsl</dc:creator>
      <dc:date>2013-08-13T13:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233178#M9400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which evaluation board you are using?&lt;/P&gt;&lt;P&gt;Evaluation board typically use 100nF capacitor at RESET pin (This too much for COP reset detection).&lt;/P&gt;&lt;P&gt;If you using SK-S12XDP512 (EVB9S12XDP512), please disassemble C213 (top side of PCB, near to CRYSTAL).&lt;/P&gt;&lt;P&gt;If you using DEMO9S12XDT512, please disassemble C36 (bottom side of PCB, near to RESET button).&lt;/P&gt;&lt;P&gt;If you using APS12XDT512(CSMB12XDT512), please disassemble C46 (bottom side of PCB, near to RESET button).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233178#M9400</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2013-08-14T08:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233179#M9401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="207558" data-username="RadekS" href="https://community.nxp.com/people/RadekS" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Radek Sestak&lt;/A&gt;&lt;SPAN style="color: #5e89c1; background-color: #ffffff; font-weight: 500;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #5e89c1; background-color: #ffffff; font-weight: 500;"&gt;&lt;SPAN&gt;Do you have 9S12XEP 100 &amp;nbsp;COP Reset Example?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:26:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233179#M9401</guid>
      <dc:creator>tafengchung</dc:creator>
      <dc:date>2017-07-24T09:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233180#M9402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tafeng,&lt;/P&gt;&lt;P&gt;Sure, please see attached example codes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please be aware that COP reset source detection may be affected by external capacitance at RESET pin. For more details, please look at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-103737"&gt;S12 FAMILY DEVICES COP RECOGNITION CONSIDERATIONS_v2.0.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other examples for S12XE:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-95116"&gt;S12X Examples Pack&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329209"&gt;LAMA's S12XE unofficial examples&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 07:24:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233180#M9402</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2017-07-25T07:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Customising ISR of Watchdog Interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233181#M9403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sestak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks for your great support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 01:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Customising-ISR-of-Watchdog-Interrupt/m-p/233181#M9403</guid>
      <dc:creator>tafengchung</dc:creator>
      <dc:date>2017-07-26T01:22:38Z</dc:date>
    </item>
  </channel>
</rss>

