<?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: COP function ok, but COP interrupt does not occur , at S12XDP512</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190507#M7414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ok. COP&amp;nbsp;is&amp;nbsp;not a interrupt but a reset.&lt;/DIV&gt;&lt;DIV&gt;But&amp;nbsp;I can&amp;nbsp;give the PC a adress to which he can jump,&amp;nbsp;if a COP-timeout will appear&amp;nbsp;.&lt;/DIV&gt;&lt;DIV&gt;And just there (0xFFFA) I have placed a software breakpoint (debugger).&amp;nbsp; The same case a I can repoduce with a reset (Pin-Reset,POR...) at adress (0xFFFE).&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2008 16:30:53 GMT</pubDate>
    <dc:creator>harry_haeusern</dc:creator>
    <dc:date>2008-10-02T16:30:53Z</dc:date>
    <item>
      <title>COP function ok, but COP interrupt does not occur , at S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190505#M7412</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;I have a strange result.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I need&amp;nbsp;a information if a COP reset has occured&amp;nbsp;to generate a errormessage in the EEPROM&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The COPCTL is loaded at startup&amp;nbsp; with RSBCK_M_=1 CR2_=1 CR1_=1 CR0_=1.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In the debugger&amp;nbsp;I see, when&amp;nbsp;the&amp;nbsp;COP is served&amp;nbsp;that&amp;nbsp;no reset occur. &amp;nbsp;When&amp;nbsp;I dont serve it, a reset accur.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I set&amp;nbsp;at the vectoraddress 0xFFFA (COP-interrupt) to a function, on which&amp;nbsp;I set a breakpoint.&amp;nbsp; But when the COP timeout occur, the the cop-ISR is not called.&lt;/DIV&gt;&lt;DIV&gt;I read somewhere in the forum, that COP-ISR could not be service, when a&amp;nbsp;the reset-pin is connected to a 0,1uF , on my board the reset pin is dirctly connected to a voltage-IC with reset output.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How, can I fetch&amp;nbsp;or generate the&amp;nbsp;real COP-ISR??&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 14:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190505#M7412</guid>
      <dc:creator>harry_haeusern</dc:creator>
      <dc:date>2008-10-02T14:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: COP function ok, but COP interrupt does not occur , at S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190506#M7413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;First of all COP is not an interrupt but a reset. That means it doesn't make sense to put breakpoint at COP routine, because on COP reset breakpoints hardware also get reset. Also your chip resets to normal mode and BDM communications are lost.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regarding&amp;nbsp;large cap on /RESET pin you should read XDP512 datasheet, chapter 2.5.1 Description of Reset Operation. Having large RC&amp;nbsp;on /RESET pin COP and CME vectors won't ever trigger.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 15:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190506#M7413</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-10-02T15:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: COP function ok, but COP interrupt does not occur , at S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190507#M7414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ok. COP&amp;nbsp;is&amp;nbsp;not a interrupt but a reset.&lt;/DIV&gt;&lt;DIV&gt;But&amp;nbsp;I can&amp;nbsp;give the PC a adress to which he can jump,&amp;nbsp;if a COP-timeout will appear&amp;nbsp;.&lt;/DIV&gt;&lt;DIV&gt;And just there (0xFFFA) I have placed a software breakpoint (debugger).&amp;nbsp; The same case a I can repoduce with a reset (Pin-Reset,POR...) at adress (0xFFFE).&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 16:30:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190507#M7414</guid>
      <dc:creator>harry_haeusern</dc:creator>
      <dc:date>2008-10-02T16:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: COP function ok, but COP interrupt does not occur , at S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190508#M7415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If you want to know whether the code enters the COP interrupt or not, set an I/O pin or something from inside the isr. Because the debugger will lose track as soon as a reset occurs.&lt;BR /&gt;&lt;BR /&gt;The cap indeed seems to be too large. At least on S12 you can't have 100nF on the reset pin, and I assume the same goes for S12X. Try switching to a 47pF or 100pF.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 18:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190508#M7415</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2008-10-02T18:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: COP function ok, but COP interrupt does not occur , at S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190509#M7416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I tested the ISR, and there I drive a I/O-Pins. It seems to be good. In deed with the debugger this function is not testable.&lt;BR /&gt;&lt;BR /&gt;Thank you Lundin&lt;BR /&gt;&lt;BR /&gt;Harry&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2008 02:38:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190509#M7416</guid>
      <dc:creator>harry_haeusern</dc:creator>
      <dc:date>2008-10-04T02:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: COP function ok, but COP interrupt does not occur , at S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190510#M7417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;But now I have the problem, how to save the information, that a COP-Reset has occured?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I wrote a function which save&amp;nbsp;this info to a EE-Memory.&amp;nbsp;This function is called in&amp;nbsp;the ISR of the COP-and&amp;nbsp;after then&amp;nbsp;jump to&amp;nbsp;Reset adress 0xFFFE.&lt;/DIV&gt;&lt;DIV&gt;The problem ist, that the&amp;nbsp;Controller restarts only when no function is called in the ISR. so&amp;nbsp;that is&amp;nbsp;not possible to catch the cop-event and save it.&lt;/DIV&gt;&lt;DIV&gt;Any other ideas??&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 14:33:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190510#M7417</guid>
      <dc:creator>harry_haeusern</dc:creator>
      <dc:date>2008-10-07T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: COP function ok, but COP interrupt does not occur , at S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190511#M7418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Do you initialize stack pointer, eeprom, and everything else needed for you COP handler? Remember COP in S12X is reset, not interrupt, so you should initialize everything again.&lt;/DIV&gt;&lt;DIV&gt;Also be careful with&amp;nbsp;writing to EE in you COP handler. In case error is permanent and COP timeout happens again and again, you can loose your eeprom. At least verify if error happened already and prevent&amp;nbsp;overwriting the same cell zilions of times.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 18:43:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/COP-function-ok-but-COP-interrupt-does-not-occur-at-S12XDP512/m-p/190511#M7418</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-10-07T18:43:31Z</dc:date>
    </item>
  </channel>
</rss>

