<?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中的主题 Real-time Interrupt on HC12 and Pulse Accumulator</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Real-time-Interrupt-on-HC12-and-Pulse-Accumulator/m-p/129508#M1197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the real-time interrupt on the HC12. Currently, it interrupts every 32 ms and after about 5 seconds it toggles Port A. However, when it gets to the part where it toggles Port A, I got a pulse accumulator overflow exception. Do I need to do anything with the pulse accumulator to use the real-time interrupt? I just set the RTI Control Register and I set the RTI Flag whenever the interrupt is called to clear the interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhome.comcast.net%2F%7Ecwinter%2FRTI_Test.asm" rel="nofollow" target="_blank"&gt;http://home.comcast.net/~cwinter/RTI_Test.asm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first time the label TOGGLE is called, the PA overflows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all and any help.&lt;/SPAN&gt;&lt;P&gt;Message Edited by cjw on &lt;SPAN class="date_text"&gt;03-21-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;06:12 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2006 08:08:19 GMT</pubDate>
    <dc:creator>cjw</dc:creator>
    <dc:date>2006-03-22T08:08:19Z</dc:date>
    <item>
      <title>Real-time Interrupt on HC12 and Pulse Accumulator</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Real-time-Interrupt-on-HC12-and-Pulse-Accumulator/m-p/129508#M1197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the real-time interrupt on the HC12. Currently, it interrupts every 32 ms and after about 5 seconds it toggles Port A. However, when it gets to the part where it toggles Port A, I got a pulse accumulator overflow exception. Do I need to do anything with the pulse accumulator to use the real-time interrupt? I just set the RTI Control Register and I set the RTI Flag whenever the interrupt is called to clear the interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhome.comcast.net%2F%7Ecwinter%2FRTI_Test.asm" rel="nofollow" target="_blank"&gt;http://home.comcast.net/~cwinter/RTI_Test.asm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first time the label TOGGLE is called, the PA overflows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all and any help.&lt;/SPAN&gt;&lt;P&gt;Message Edited by cjw on &lt;SPAN class="date_text"&gt;03-21-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;06:12 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 08:08:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Real-time-Interrupt-on-HC12-and-Pulse-Accumulator/m-p/129508#M1197</guid>
      <dc:creator>cjw</dc:creator>
      <dc:date>2006-03-22T08:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time Interrupt on HC12 and Pulse Accumulator</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Real-time-Interrupt-on-HC12-and-Pulse-Accumulator/m-p/129509#M1198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Nevermind, I figured it out. Apparently, since I am using Acc. X for my offset, I had to reinitalize it once the ISR is called, since X will be pushed to stack and who knows what it is set to after that. It's fixed now.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 08:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Real-time-Interrupt-on-HC12-and-Pulse-Accumulator/m-p/129509#M1198</guid>
      <dc:creator>cjw</dc:creator>
      <dc:date>2006-03-22T08:40:17Z</dc:date>
    </item>
  </channel>
</rss>

