<?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 Simple RTC Interrupt Question in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-RTC-Interrupt-Question/m-p/207969#M17658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably very simple but I am new to this. I have a MC12311 IC and I am trying to add an RTC interrupt to my code by manipulating the Linker_QE32 file. My interrupt is written directly before the main loop as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;void &lt;SPAN style="font-size: 2;"&gt;&lt;STRONG&gt;RTC_ISR&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7F0055; font-size: 2;"&gt;void&lt;/STRONG&gt;&lt;SPAN style=": ; font-size: 2;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTCSC = RTCSC | 0x80; //clear flag&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that I need to add information to the linker file to specifiy that it is vector number is 24 and its address is 0xFFCE &amp;amp; FFCF. The bottom of the Linker_QE32 file specifies the startup vector, so I added the RTC vector as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;VECTOR&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 2;"&gt;0 _Startup&lt;/SPAN&gt; &lt;SPAN style=": ; color: #CC0000; font-size: 2;"&gt;/* reset vector: default entry point for a C/C++ application. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;VECTOR &lt;SPAN style="font-size: 2;"&gt;24&amp;nbsp;RTC_ISR &lt;SPAN style=": ; color: #CC0000; font-size: 2;"&gt;/* I added this line!!. */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, upon compiling, I get an error:&lt;/P&gt;&lt;P&gt;"Vector allocated at absolute address 0xFFCE overlaps with sections placed in segment RES_IRQ_VECTOR_TABLE_FLASH"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what I am doing wrong? Can anyone suggest what I should try next?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Feb 2012 04:51:05 GMT</pubDate>
    <dc:creator>koehler916</dc:creator>
    <dc:date>2012-02-19T04:51:05Z</dc:date>
    <item>
      <title>Simple RTC Interrupt Question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-RTC-Interrupt-Question/m-p/207969#M17658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably very simple but I am new to this. I have a MC12311 IC and I am trying to add an RTC interrupt to my code by manipulating the Linker_QE32 file. My interrupt is written directly before the main loop as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;void &lt;SPAN style="font-size: 2;"&gt;&lt;STRONG&gt;RTC_ISR&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7F0055; font-size: 2;"&gt;void&lt;/STRONG&gt;&lt;SPAN style=": ; font-size: 2;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTCSC = RTCSC | 0x80; //clear flag&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that I need to add information to the linker file to specifiy that it is vector number is 24 and its address is 0xFFCE &amp;amp; FFCF. The bottom of the Linker_QE32 file specifies the startup vector, so I added the RTC vector as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;VECTOR&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 2;"&gt;0 _Startup&lt;/SPAN&gt; &lt;SPAN style=": ; color: #CC0000; font-size: 2;"&gt;/* reset vector: default entry point for a C/C++ application. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;VECTOR &lt;SPAN style="font-size: 2;"&gt;24&amp;nbsp;RTC_ISR &lt;SPAN style=": ; color: #CC0000; font-size: 2;"&gt;/* I added this line!!. */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, upon compiling, I get an error:&lt;/P&gt;&lt;P&gt;"Vector allocated at absolute address 0xFFCE overlaps with sections placed in segment RES_IRQ_VECTOR_TABLE_FLASH"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what I am doing wrong? Can anyone suggest what I should try next?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 04:51:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-RTC-Interrupt-Question/m-p/207969#M17658</guid>
      <dc:creator>koehler916</dc:creator>
      <dc:date>2012-02-19T04:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Simple RTC Interrupt Question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-RTC-Interrupt-Question/m-p/207970#M17659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After working on this issue over the weekend, I figured out the problem. There was a file called isrvectors.c is the PLM&amp;gt;SOURCE&amp;gt;COMMON&amp;gt;SYS folder that had a vector table.&amp;nbsp; The linker file did not have to be modified, but the interrupt function had to look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;#ifdef &lt;FONT size="2"&gt;MEMORY_MODEL_BANKED&lt;/FONT&gt; &lt;FONT color="#3F7F5F" size="2"&gt;&lt;FONT color="#3F7F5F" size="2"&gt;//Place it in NON_BANKED memory&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;#pragma &lt;FONT size="2"&gt;CODE_SEG __NEAR_SEG NON_BANKED&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;#else&lt;/P&gt;&lt;P align="left"&gt;#pragma &lt;FONT size="2"&gt;CODE_SEG DEFAULT&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3F7F5F" size="2"&gt;&lt;FONT color="#3F7F5F" size="2"&gt;// end MEMORY_MODEL_BANKED&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;INTERRUPT_KEYWORD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;FONT color="#7F0055" size="2"&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT size="2"&gt;&lt;STRONG&gt;RTC_ISR&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;FONT color="#7F0055" size="2"&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;{&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTCSC = RTCSC | 0x80;&lt;/P&gt;&lt;P align="left"&gt;}&lt;/P&gt;&lt;P&gt;#pragma &lt;FONT size="2"&gt;CODE_SEG DEFAULT&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 23:46:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-RTC-Interrupt-Question/m-p/207970#M17659</guid>
      <dc:creator>koehler916</dc:creator>
      <dc:date>2012-02-20T23:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple RTC Interrupt Question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-RTC-Interrupt-Question/m-p/207971#M17660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，i am student from china.In china,there are no one do some project with MC12311.MC12311 is the latest chip in china,freesacale do not&amp;nbsp; sell the chip until 2013 . so it is so difficult for us to develop projects about MC12311. We just have MC12311 twr.&amp;nbsp;We do not know how &amp;nbsp;to create a new project with codewarrior 10.1 ,because there are no MC12311 option. Can you tell us how to create the first project about MC12311 with CW 10.2 and can you give us a complete project (UART,RF etc),thank you!&lt;/P&gt;&lt;P&gt;My e-mail is&amp;nbsp; &lt;A href="mailto:iamstone@qq.com" rel="nofollow" target="_blank"&gt;iamstone@qq.com&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 16:46:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-RTC-Interrupt-Question/m-p/207971#M17660</guid>
      <dc:creator>stonejing</dc:creator>
      <dc:date>2012-07-04T16:46:53Z</dc:date>
    </item>
  </channel>
</rss>

